1 |
commit: 639e35cef48dad863ca73aa00c30df753032c982 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 29 23:40:15 2018 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 29 23:40:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=639e35ce |
7 |
|
8 |
app-shells/fish: revbump 3.0.0, with proper fix for ncurses[tinfo] |
9 |
|
10 |
Closes: https://bugs.gentoo.org/673942 |
11 |
Package-Manager: Portage-2.3.53, Repoman-2.3.12 |
12 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
13 |
|
14 |
app-shells/fish/fish-3.0.0-r1.ebuild | 73 ++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 73 insertions(+) |
16 |
|
17 |
diff --git a/app-shells/fish/fish-3.0.0-r1.ebuild b/app-shells/fish/fish-3.0.0-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..e9917b07a6c |
20 |
--- /dev/null |
21 |
+++ b/app-shells/fish/fish-3.0.0-r1.ebuild |
22 |
@@ -0,0 +1,73 @@ |
23 |
+# Copyright 1999-2018 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit cmake-utils readme.gentoo-r1 |
29 |
+ |
30 |
+DESCRIPTION="Friendly Interactive SHell" |
31 |
+HOMEPAGE="http://fishshell.com/" |
32 |
+ |
33 |
+MY_PV="${PV/_beta/b}" |
34 |
+MY_P="${PN}-${MY_PV}" |
35 |
+ |
36 |
+if [[ ${PV} == "9999" ]]; then |
37 |
+ inherit git-r3 |
38 |
+ EGIT_REPO_URI="https://github.com/${PN}-shell/${PN}-shell.git" |
39 |
+else |
40 |
+ SRC_URI="https://github.com/${PN}-shell/${PN}-shell/releases/download/${MY_PV}/${MY_P}.tar.gz" |
41 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" |
42 |
+fi |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+ |
47 |
+IUSE="doc nls test" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-libs/libpcre2-10.21[pcre32] |
51 |
+ sys-devel/bc |
52 |
+ sys-libs/ncurses:0=[unicode] |
53 |
+" |
54 |
+ |
55 |
+DEPEND="${RDEPEND} |
56 |
+ doc? ( app-doc/doxygen ) |
57 |
+ nls? ( sys-devel/gettext ) |
58 |
+ test? ( dev-tcltk/expect ) |
59 |
+" |
60 |
+ |
61 |
+S="${WORKDIR}/${MY_P}" |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ # workaround for https://github.com/fish-shell/fish-shell/issues/4883 |
65 |
+ sed -i 's#${TEST_INSTALL_DIR}/${CMAKE_INSTALL_PREFIX}#${TEST_INSTALL_DIR}#' \ |
66 |
+ cmake/Tests.cmake || die |
67 |
+ cmake-utils_src_prepare |
68 |
+} |
69 |
+ |
70 |
+src_configure() { |
71 |
+ local mycmakeargs=( |
72 |
+ -DCMAKE_INSTALL_BINDIR="${EPREFIX}/bin" |
73 |
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" |
74 |
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc" |
75 |
+ -DCURSES_NEED_NCURSES=ON |
76 |
+ -DINTERNAL_WCWIDTH=OFF |
77 |
+ -DBUILD_DOCS="$(usex doc)" |
78 |
+ -DWITH_GETTEXT="$(usex nls)" |
79 |
+ ) |
80 |
+ cmake-utils_src_configure |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ cmake-utils_src_install |
85 |
+ keepdir /usr/share/fish/vendor_{completions,conf,functions}.d |
86 |
+ readme.gentoo_create_doc |
87 |
+} |
88 |
+ |
89 |
+src_test() { |
90 |
+ cmake-utils_src_make -j1 test |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ readme.gentoo_print_elog |
95 |
+} |