1 |
commit: ad573219ef8c0b319084bb0c4fafa669b7619ea8 |
2 |
Author: Georgy Yakovlev <ya <AT> sysdump <DOT> net> |
3 |
AuthorDate: Sat Dec 23 06:48:43 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 28 15:54:04 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad573219 |
7 |
|
8 |
app-shells/fish: bump to 2.7.1, fix src_test() deps |
9 |
|
10 |
src_test() required expect to be available. |
11 |
added test to IUSE and a conditional to be able to run tests. |
12 |
|
13 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
14 |
Closes: https://github.com/gentoo/gentoo/pull/6608 |
15 |
|
16 |
app-shells/fish/Manifest | 1 + |
17 |
app-shells/fish/fish-2.7.1.ebuild | 80 +++++++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 81 insertions(+) |
19 |
|
20 |
diff --git a/app-shells/fish/Manifest b/app-shells/fish/Manifest |
21 |
index bc6ffceef7d..5e816f0e78c 100644 |
22 |
--- a/app-shells/fish/Manifest |
23 |
+++ b/app-shells/fish/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST fish-2.6.0.tar.gz 3575346 BLAKE2B 8697dc6e50836d93d0ed22663e86016fec8e567cd4e129ea92008f52da6dd629bf11b70719beabe5c08bd3d7ba43d8017441f103d49a82c0faec3bc749e83764 SHA512 d4ded5ce24600e85673a7bb016e9dc36bce999b27f40e6b1ce0b9ca49a421be2d444d9d2b6f178f6eee963e59daa4a65df4c3de2a8086a610486f758fcfb0ed1 |
26 |
DIST fish-2.7.0.tar.gz 5760470 BLAKE2B 8b3b905b6118cbcb988cedb1e80bcaf0e69d3d27aa355421f11b4ae8d26f2bb8c8b05cf31b30035f2235a063d3385d0a999b73e505df906a35ca6f034410061e SHA512 1b43a8eb25c08d1bf2870d51e1c5328438ea05a21d9a122345d765190ded7a6e335b4e1d3b92a6f7f764190321f471e3cda7bf7e995521b4c98beffc745880e9 |
27 |
+DIST fish-2.7.1.tar.gz 5760550 BLAKE2B 71568a3a17f4222b05a314464a61fceb241409a7d42c46249486ca742ef0cf990c46d693bcc22521c18f58a558e6aab35759d0da6eb62ee6611a2a7946fe714d SHA512 45ee3453404c5d6c56d307b4cd19197de862f9f42d7fa06461acec56dea7146db5675cf6419dd5f72e939b3e4b1955d3761098df1de89a8cebe47645eb6f7a4b |
28 |
|
29 |
diff --git a/app-shells/fish/fish-2.7.1.ebuild b/app-shells/fish/fish-2.7.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..c2a3ea0e6f1 |
32 |
--- /dev/null |
33 |
+++ b/app-shells/fish/fish-2.7.1.ebuild |
34 |
@@ -0,0 +1,80 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+MY_PV="${PV/_beta/b}" |
41 |
+MY_P="${PN}-${MY_PV}" |
42 |
+ |
43 |
+DESCRIPTION="fish is the Friendly Interactive SHell" |
44 |
+HOMEPAGE="http://fishshell.com/" |
45 |
+SRC_URI="https://github.com/${PN}-shell/${PN}-shell/releases/download/${MY_PV}/${MY_P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+[[ "${PV}" = *_* ]] || \ |
50 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
51 |
+IUSE="nls test" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ >=dev-libs/libpcre2-10.21[pcre32] |
55 |
+ sys-libs/ncurses:0= |
56 |
+" |
57 |
+DEPEND=" |
58 |
+ ${RDEPEND} |
59 |
+ sys-devel/bc |
60 |
+ nls? ( sys-devel/gettext ) |
61 |
+ test? ( dev-tcltk/expect ) |
62 |
+" |
63 |
+ |
64 |
+S="${WORKDIR}/${MY_P}" |
65 |
+ |
66 |
+src_configure() { |
67 |
+ # Set things up for fish to be a default shell. |
68 |
+ # It has to be in /bin in case /usr is unavailable. |
69 |
+ # Also, all of its utilities have to be in /bin. |
70 |
+ econf \ |
71 |
+ --bindir="${EPREFIX}"/bin \ |
72 |
+ --without-included-pcre2 \ |
73 |
+ $(use_with nls gettext) |
74 |
+} |
75 |
+ |
76 |
+src_compile() { |
77 |
+ emake V=1 |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ emake DESTDIR="${D}" V=1 install |
82 |
+} |
83 |
+ |
84 |
+src_test() { |
85 |
+ emake V=1 test |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ elog "fish is now installed on your system." |
90 |
+ elog "To run fish, type 'fish' in your terminal." |
91 |
+ elog |
92 |
+ elog "It is advised not to set fish as a default login shell." |
93 |
+ elog "see bug #545830 for more details." |
94 |
+ elog "Executing fish using ~/.bashrc is an alternative" |
95 |
+ elog "see https://wiki.gentoo.org/wiki/Fish#Caveats for details" |
96 |
+ elog |
97 |
+ elog "To set your colors, run 'fish_config'" |
98 |
+ elog "To scan your man pages for completions, run 'fish_update_completions'" |
99 |
+ elog "To autocomplete command suggestions press Ctrl + F or right arrow key." |
100 |
+ elog |
101 |
+ elog "Please add a \"BROWSER\" variable to ${PN}'s environment pointing to the" |
102 |
+ elog "browser of your choice to get acces to ${PN}'s help system:" |
103 |
+ elog " BROWSER=\"/usr/bin/firefox\"" |
104 |
+ elog |
105 |
+ elog "In order to get lzma and xz support for man-page completion please" |
106 |
+ elog "emerge one of the following packages:" |
107 |
+ elog " dev-python/backports-lzma" |
108 |
+ elog " >=dev-lang/python-3.3" |
109 |
+ elog |
110 |
+ elog "If you have issues with cut'n'paste in X-terminals, install the" |
111 |
+ elog "x11-misc/xsel package." |
112 |
+ elog |
113 |
+ elog "Have fun!" |
114 |
+} |