1SUMMARY="The friendly interactive shell"
2DESCRIPTION="Fish is a shell geared towards interactive use. Its features are \
3focused on user friendliness and discoverability. The language syntax \
4is simple but incompatible with other shell languages."
5HOMEPAGE="https://ridiculousfish.com/shell/"
6COPYRIGHT="2005-2018 Axel Liljencrantz"
7LICENSE="GNU GPL v2"
8REVISION="2"
9SOURCE_URI="https://github.com/fish-shell/fish-shell/releases/download/$portVersion/fish-$portVersion.tar.xz"
10CHECKSUM_SHA256="a6d45b3dc5a45dd31772e7f8dfdfecabc063986e8f67d60bd7ca60cc81db6928"
11PATCHES="fish-$portVersion.patchset"
12
13ARCHITECTURES="all !x86_gcc2"
14SECONDARY_ARCHITECTURES="x86"
15
16GLOBAL_WRITABLE_FILES="
17	settings/fish/config.fish keep-old
18	"
19
20PROVIDES="
21	fish$secondaryArchSuffix = $portVersion
22	cmd:fish$secondaryArchSuffix = $portVersion
23	cmd:fish_indent$secondaryArchSuffix = $portVersion
24	cmd:fish_key_reader$secondaryArchSuffix = $portVersion
25	"
26REQUIRES="
27	haiku$secondaryArchSuffix
28	cmd:gettext$secondaryArchSuffix
29	lib:libexecinfo$secondaryArchSuffix
30	lib:libiconv$secondaryArchSuffix
31	lib:libintl$secondaryArchSuffix
32	lib:libncursesw$secondaryArchSuffix
33	lib:libpcre2_32$secondaryArchSuffix
34	"
35
36BUILD_REQUIRES="
37	haiku${secondaryArchSuffix}_devel
38	devel:libexecinfo$secondaryArchSuffix
39	devel:libgettextlib$secondaryArchSuffix
40	devel:libiconv$secondaryArchSuffix
41	devel:libncursesw$secondaryArchSuffix
42	devel:libpcre2_32$secondaryArchSuffix
43	"
44BUILD_PREREQUIRES="
45	cmd:cmake
46	cmd:gcc$secondaryArchSuffix
47	cmd:make
48	"
49
50defineDebugInfoPackage fish$secondaryArchSuffix \
51	"$binDir"/fish \
52	"$binDir"/fish_indent \
53	"$binDir"/fish_key_reader
54
55BUILD()
56{
57	mkdir -p build && cd build
58	cmake .. \
59		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
60		$cmakeDirArgs
61
62	make $jobArgs
63}
64
65INSTALL()
66{
67	make install
68}
69
70TEST()
71{
72	make test
73}
74