1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="Friendly Interactive SHell"
10 HOMEPAGE="http://fishshell.com/"
11 SRC_URI="https://github.com/${PN}-shell/${PN}-shell/releases/download/${MY_PV}/${MY_P}.tar.gz"
15 [[ "${PV}" = *_* ]] || \
16 KEYWORDS="amd64 ~arm arm64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
18 RESTRICT="!test? ( test )"
21 >=dev-libs/libpcre2-10.21[pcre32]
27 nls? ( sys-devel/gettext )
28 test? ( dev-tcltk/expect )
31 PATCHES=( "${FILESDIR}/${P}-fix-printf-o-handling-on-ppc.patch"
32 "${FILESDIR}/fix-histfile-test-on-ppc.patch" )
34 S="${WORKDIR}/${MY_P}"
37 # Set things up for fish to be a default shell.
38 # It has to be in /bin in case /usr is unavailable.
39 # Also, all of its utilities have to be in /bin.
41 --bindir="${EPREFIX}"/bin \
42 --without-included-pcre2 \
43 $(use_with nls gettext)
51 emake DESTDIR="${D}" V=1 install
55 if has_version ~${CATEGORY}/${P} ; then
56 emake -j1 V=1 SHOW_INTERACTIVE_LOG=1 test
58 ewarn "Some tests only work when the package is already installed"
63 elog "fish is now installed on your system."
64 elog "To run fish, type 'fish' in your terminal."
66 elog "It is advised not to set fish as a default login shell."
67 elog "see bug #545830 for more details."
68 elog "Executing fish using ~/.bashrc is an alternative"
69 elog "see https://wiki.gentoo.org/wiki/Fish#Caveats for details"
71 elog "To set your colors, run 'fish_config'"
72 elog "To scan your man pages for completions, run 'fish_update_completions'"
73 elog "To autocomplete command suggestions press Ctrl + F or right arrow key."
75 elog "Please add a \"BROWSER\" variable to ${PN}'s environment pointing to the"
76 elog "browser of your choice to get acces to ${PN}'s help system:"
77 elog " BROWSER=\"/usr/bin/firefox\""
79 elog "In order to get lzma and xz support for man-page completion please"
80 elog "emerge one of the following packages:"
81 elog " dev-python/backports-lzma"
82 elog " >=dev-lang/python-3.3"
84 elog "If you have issues with cut'n'paste in X-terminals, install the"
85 elog "x11-misc/xsel package."