1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake readme.gentoo-r1
8 DESCRIPTION="Friendly Interactive SHell"
9 HOMEPAGE="http://fishshell.com/"
14 if [[ ${PV} == "9999" ]]; then
16 EGIT_REPO_URI="https://github.com/${PN}-shell/${PN}-shell.git"
18 SRC_URI="https://github.com/${PN}-shell/${PN}-shell/releases/download/${MY_PV}/${MY_P}.tar.gz"
19 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
26 RESTRICT="!test? ( test )"
29 >=dev-libs/libpcre2-10.32[pcre32]
31 sys-libs/ncurses:0=[unicode]
35 doc? ( app-doc/doxygen )
36 nls? ( sys-devel/gettext )
37 test? ( dev-tcltk/expect )
40 S="${WORKDIR}/${MY_P}"
43 # workaround for https://github.com/fish-shell/fish-shell/issues/4883
44 sed -i 's#${TEST_INSTALL_DIR}/${CMAKE_INSTALL_PREFIX}#${TEST_INSTALL_DIR}#' \
45 cmake/Tests.cmake || die
51 -DCMAKE_INSTALL_BINDIR="${EPREFIX}/bin"
52 -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
53 -DCURSES_NEED_NCURSES=ON
54 -DBUILD_DOCS="$(usex doc)"
55 -DWITH_GETTEXT="$(usex nls)"
62 keepdir /usr/share/fish/vendor_{completions,conf,functions}.d
63 readme.gentoo_create_doc
71 readme.gentoo_print_elog