Files
haikuports/app-shells/fish/fish-2.6.0.recipe
2017-11-04 18:06:15 +01:00

76 lines
1.8 KiB
Bash

SUMMARY="The friendly interactive shell"
DESCRIPTION="Fish is a shell geared towards interactive use. Its features are \
focused on user friendliness and discoverability. The language syntax \
is simple but incompatible with other shell languages."
HOMEPAGE="http://ridiculousfish.com/shell/"
COPYRIGHT="2005-2017 Axel Liljencrantz"
LICENSE="GNU GPL v2"
REVISION="4"
SOURCE_URI="https://github.com/fish-shell/fish-shell/releases/download/$portVersion/fish-$portVersion.tar.gz"
CHECKSUM_SHA256="7ee5bbd671c73e5323778982109241685d58a836e52013e18ee5d9f2e638fdfb"
SOURCE_DIR="fish-$portVersion"
PATCHES="fish-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
fish$secondaryArchSuffix = $portVersion
cmd:fish$secondaryArchSuffix = $portVersion
cmd:fish_indent$secondaryArchSuffix = $portVersion
cmd:fish_key_reader$secondaryArchSuffix = $portVersion
#cmd:mimedb$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libexecinfo$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libncursesw$secondaryArchSuffix
lib:libpcre2_32$secondaryArchSuffix
cmd:gettext$secondaryArchSuffix
cmd:python
cmd:ul
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= r1~alpha4_pm_hrev51519-1
devel:libexecinfo$secondaryArchSuffix
devel:libgettextlib$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libncursesw$secondaryArchSuffix
devel:libpcre2_32$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
"
GLOBAL_WRITABLE_FILES="
settings/fish/config.fish keep-old
"
BUILD()
{
export CFLAGS="-D_BSD_SOURCE"
export CXXFLAGS=$CFLAGS
export LIBS="-lnetwork -lexecinfo"
runConfigure ./configure \
--without-included-pcre2
make $jobArgs
}
INSTALL()
{
make install
strip $binDir/*
}
TEST()
{
make test
}