Files
haikuports/app-shells/fish/fish-2.4.0.recipe

83 lines
1.9 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-2016 Axel Liljencrantz"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://github.com/fish-shell/fish-shell/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="5b7680232cadcadeba42e38aac33bfd4d12333e70342d3d3485ad5d329b1f465"
SOURCE_DIR="fish-shell-$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
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libexecinfo$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libncursesw$secondaryArchSuffix
devel:libgettextlib$secondaryArchSuffix
devel:libpcre2_32$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:which
cmd:sed
#cmd:doxygen >= 1.6.3
"
GLOBAL_WRITABLE_FILES="
settings/fish/config.fish keep-old
"
BUILD()
{
autoreconf -vfi
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
}