Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/fish/files/, app-shells/fish/
Date: Thu, 13 Dec 2018 05:04:46
Message-Id: 1544677472.94f30802351d007b1b0a0e7a7bd357ea0467b473.gyakovlev@gentoo
1 commit: 94f30802351d007b1b0a0e7a7bd357ea0467b473
2 Author: Georgy Yakovlev <ya <AT> sysdump <DOT> net>
3 AuthorDate: Sat Apr 7 18:36:20 2018 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 13 05:04:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94f30802
7
8 app-shells/fish: add 3.0_beta1 and live cmake-based ebuilds
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 app-shells/fish/Manifest | 1 +
14 app-shells/fish/files/README.gentoo | 19 +++++++++
15 app-shells/fish/fish-3.0_beta1.ebuild | 72 +++++++++++++++++++++++++++++++++++
16 app-shells/fish/fish-9999.ebuild | 72 +++++++++++++++++++++++++++++++++++
17 4 files changed, 164 insertions(+)
18
19 diff --git a/app-shells/fish/Manifest b/app-shells/fish/Manifest
20 index 477ae5e35a1..85645e50d3b 100644
21 --- a/app-shells/fish/Manifest
22 +++ b/app-shells/fish/Manifest
23 @@ -1,2 +1,3 @@
24 DIST fish-2.6.0.tar.gz 3575346 BLAKE2B 8697dc6e50836d93d0ed22663e86016fec8e567cd4e129ea92008f52da6dd629bf11b70719beabe5c08bd3d7ba43d8017441f103d49a82c0faec3bc749e83764 SHA512 d4ded5ce24600e85673a7bb016e9dc36bce999b27f40e6b1ce0b9ca49a421be2d444d9d2b6f178f6eee963e59daa4a65df4c3de2a8086a610486f758fcfb0ed1
25 DIST fish-2.7.1.tar.gz 5760550 BLAKE2B 71568a3a17f4222b05a314464a61fceb241409a7d42c46249486ca742ef0cf990c46d693bcc22521c18f58a558e6aab35759d0da6eb62ee6611a2a7946fe714d SHA512 45ee3453404c5d6c56d307b4cd19197de862f9f42d7fa06461acec56dea7146db5675cf6419dd5f72e939b3e4b1955d3761098df1de89a8cebe47645eb6f7a4b
26 +DIST fish-3.0b1.tar.gz 6471932 BLAKE2B d65ed7e7f4de1f967f5f2090b01be86b778a46f8e5c112daf99234bc584e01992c466976d6547814f84730d1092e39bc3f2bfa55592e71bf1a93a42fb8846b34 SHA512 f13c4ca9e62ecdd6afc4961cb4f6ec5d4b7f51b9c3b3ba97f280b7a9ed2cdeb9be193ff58b9f556b01af0815b78ab540f25c473a253651c96db03f8cb1652dde
27
28 diff --git a/app-shells/fish/files/README.gentoo b/app-shells/fish/files/README.gentoo
29 new file mode 100644
30 index 00000000000..421d070ac57
31 --- /dev/null
32 +++ b/app-shells/fish/files/README.gentoo
33 @@ -0,0 +1,19 @@
34 +fish is now installed on your system.
35 +To run fish, type 'fish' in your terminal.
36 +
37 +It is advised not to set fish as a default login shell.
38 +see https://bugs.gentoo.org/545830 for more details.
39 +Executing fish using ~/.bashrc is an alternative
40 +see https://wiki.gentoo.org/wiki/Fish#Caveats for details
41 +
42 +To set your colors, run 'fish_config'
43 +To scan your man pages for completions, run 'fish_update_completions'
44 +To autocomplete command suggestions press Ctrl + F or right arrow key.
45 +
46 +Please add a "BROWSER" variable to fish environment pointing to the
47 +browser of your choice to get acces to fish help system:
48 + BROWSER="/usr/bin/firefox"
49 +
50 +If you have issues with cut'n'paste in X-terminals, install the x11-misc/xsel package.
51 +
52 +Have fun!
53
54 diff --git a/app-shells/fish/fish-3.0_beta1.ebuild b/app-shells/fish/fish-3.0_beta1.ebuild
55 new file mode 100644
56 index 00000000000..cc6e0bba617
57 --- /dev/null
58 +++ b/app-shells/fish/fish-3.0_beta1.ebuild
59 @@ -0,0 +1,72 @@
60 +# Copyright 1999-2018 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=7
64 +
65 +inherit cmake-utils readme.gentoo-r1
66 +
67 +DESCRIPTION="Friendly Interactive SHell"
68 +HOMEPAGE="http://fishshell.com/"
69 +
70 +MY_PV="${PV/_beta/b}"
71 +MY_P="${PN}-${MY_PV}"
72 +
73 +if [[ ${PV} == "9999" ]]; then
74 + inherit git-r3
75 + EGIT_REPO_URI="https://github.com/${PN}-shell/${PN}-shell.git"
76 +else
77 + SRC_URI="https://github.com/${PN}-shell/${PN}-shell/releases/download/${MY_PV}/${MY_P}.tar.gz"
78 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
79 +fi
80 +
81 +LICENSE="GPL-2"
82 +SLOT="0"
83 +
84 +IUSE="doc nls test"
85 +
86 +RDEPEND="
87 + >=dev-libs/libpcre2-10.21[pcre32]
88 + sys-devel/bc
89 + sys-libs/ncurses:0=
90 +"
91 +
92 +DEPEND="${RDEPEND}
93 + doc? ( app-doc/doxygen )
94 + nls? ( sys-devel/gettext )
95 + test? ( dev-tcltk/expect )
96 +"
97 +
98 +S="${WORKDIR}/${MY_P}"
99 +
100 +src_prepare() {
101 + # workaround for https://github.com/fish-shell/fish-shell/issues/4883
102 + sed -i 's#${TEST_INSTALL_DIR}/${CMAKE_INSTALL_PREFIX}#${TEST_INSTALL_DIR}#' \
103 + cmake/Tests.cmake || die
104 + cmake-utils_src_prepare
105 +}
106 +
107 +src_configure() {
108 + local mycmakeargs=(
109 + -DCMAKE_INSTALL_BINDIR="${EPREFIX}/bin"
110 + -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
111 + -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
112 + -DINTERNAL_WCWIDTH=OFF
113 + -DBUILD_DOCS="$(usex doc)"
114 + -DWITH_GETTEXT="$(usex nls)"
115 + )
116 + cmake-utils_src_configure
117 +}
118 +
119 +src_install() {
120 + cmake-utils_src_install
121 + keepdir /usr/share/fish/vendor_{completions,conf,functions}.d
122 + readme.gentoo_create_doc
123 +}
124 +
125 +src_test() {
126 + cmake-utils_src_make -j1 test
127 +}
128 +
129 +pkg_postinst() {
130 + readme.gentoo_print_elog
131 +}
132
133 diff --git a/app-shells/fish/fish-9999.ebuild b/app-shells/fish/fish-9999.ebuild
134 new file mode 100644
135 index 00000000000..cc6e0bba617
136 --- /dev/null
137 +++ b/app-shells/fish/fish-9999.ebuild
138 @@ -0,0 +1,72 @@
139 +# Copyright 1999-2018 Gentoo Authors
140 +# Distributed under the terms of the GNU General Public License v2
141 +
142 +EAPI=7
143 +
144 +inherit cmake-utils readme.gentoo-r1
145 +
146 +DESCRIPTION="Friendly Interactive SHell"
147 +HOMEPAGE="http://fishshell.com/"
148 +
149 +MY_PV="${PV/_beta/b}"
150 +MY_P="${PN}-${MY_PV}"
151 +
152 +if [[ ${PV} == "9999" ]]; then
153 + inherit git-r3
154 + EGIT_REPO_URI="https://github.com/${PN}-shell/${PN}-shell.git"
155 +else
156 + SRC_URI="https://github.com/${PN}-shell/${PN}-shell/releases/download/${MY_PV}/${MY_P}.tar.gz"
157 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
158 +fi
159 +
160 +LICENSE="GPL-2"
161 +SLOT="0"
162 +
163 +IUSE="doc nls test"
164 +
165 +RDEPEND="
166 + >=dev-libs/libpcre2-10.21[pcre32]
167 + sys-devel/bc
168 + sys-libs/ncurses:0=
169 +"
170 +
171 +DEPEND="${RDEPEND}
172 + doc? ( app-doc/doxygen )
173 + nls? ( sys-devel/gettext )
174 + test? ( dev-tcltk/expect )
175 +"
176 +
177 +S="${WORKDIR}/${MY_P}"
178 +
179 +src_prepare() {
180 + # workaround for https://github.com/fish-shell/fish-shell/issues/4883
181 + sed -i 's#${TEST_INSTALL_DIR}/${CMAKE_INSTALL_PREFIX}#${TEST_INSTALL_DIR}#' \
182 + cmake/Tests.cmake || die
183 + cmake-utils_src_prepare
184 +}
185 +
186 +src_configure() {
187 + local mycmakeargs=(
188 + -DCMAKE_INSTALL_BINDIR="${EPREFIX}/bin"
189 + -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
190 + -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
191 + -DINTERNAL_WCWIDTH=OFF
192 + -DBUILD_DOCS="$(usex doc)"
193 + -DWITH_GETTEXT="$(usex nls)"
194 + )
195 + cmake-utils_src_configure
196 +}
197 +
198 +src_install() {
199 + cmake-utils_src_install
200 + keepdir /usr/share/fish/vendor_{completions,conf,functions}.d
201 + readme.gentoo_create_doc
202 +}
203 +
204 +src_test() {
205 + cmake-utils_src_make -j1 test
206 +}
207 +
208 +pkg_postinst() {
209 + readme.gentoo_print_elog
210 +}