Files
haikuports/app-shells/fish/fish-2.7.0.recipe
2017-11-23 20:47:23 +01:00

75 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="1"
SOURCE_URI="https://github.com/fish-shell/fish-shell/releases/download/$portVersion/fish-$portVersion.tar.gz"
CHECKSUM_SHA256="3a76b7cae92f9f88863c35c832d2427fb66082f98e92a02203dc900b8fa87bcb"
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
"
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
}