1 |
commit: 7cca8ab466f778169e676c9467d3b9b418245221 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 30 08:02:50 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 30 08:02:50 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cca8ab4 |
7 |
|
8 |
app-shells/zsh: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
app-shells/zsh/Manifest | 4 - |
14 |
app-shells/zsh/files/zprofile-3 | 38 ------- |
15 |
app-shells/zsh/zsh-5.5.ebuild | 212 ---------------------------------------- |
16 |
app-shells/zsh/zsh-5.6.1.ebuild | 212 ---------------------------------------- |
17 |
4 files changed, 466 deletions(-) |
18 |
|
19 |
diff --git a/app-shells/zsh/Manifest b/app-shells/zsh/Manifest |
20 |
index cf8983f5a39..39f116b416a 100644 |
21 |
--- a/app-shells/zsh/Manifest |
22 |
+++ b/app-shells/zsh/Manifest |
23 |
@@ -1,8 +1,4 @@ |
24 |
-DIST zsh-5.5-doc.tar.xz 3216400 BLAKE2B 3d07b336222b08d7deff0ded6f603a47bcdcec978e6ad9c244b25f5249e07c22768ba30e67f02c8ebf4a0a8104997d0aa8959de7e3c39a428dca0b013c56e9b1 SHA512 0bde166bc4a4b8ea7512bd9d3ede53478959cb76ded65488b9a8993734cf2a8ffedcd38254fbf6ff73a5841289cb65715579744b10748afb038c9d93a01f987b |
25 |
DIST zsh-5.5.1-doc.tar.xz 3216632 BLAKE2B ef1274799604d74eb9cec3c29927703c98bb63bde3aa5ce4880eda45420fe1eb79c54a693fe529c9e79161f924a76bc2a650253216c7b1e565af65f1ac3c0d91 SHA512 e240f6c6aa2efb941c2baaaf749c66c9e304ba54ce2be90586671ba47e380aac89315516e5dce41fa0ae1d8fccfc36f61ed1400b6aab3382927e2715a77d62e6 |
26 |
DIST zsh-5.5.1.tar.gz 4578700 BLAKE2B b58fc763bc64e8ed6de0db2e0fd454aef995fcc86b18c2ffd4b39e037ce1cdeb04e6e2a44b2495ca89218af41ad1dd7d29e429d21fbab39377d95e62d249732e SHA512 c4f7327a3f5480bd9a169fb07e34812e0106fa9de3b5f7d38bb0db85a3e4d01b9a4a8f35553da03a15d7d819108305cfaa2811c945273e2cac84512219e69ebb |
27 |
-DIST zsh-5.5.tar.gz 4576506 BLAKE2B 4f5923d519b0c96475f4832cf0e5cabc1432e765d201c992903ead45b175d5bc76410ebe248c2bd01ad75a5b5939bc5bc58e9263bb4501f9b2c1f5b4d7755896 SHA512 aafa29e1bc29d35fb5822ad4ca5f4c64b1e4a4e3f9bff70e9e5976918fa9e7906467bd11f69291e694dfa77efa1e5433d7839fc668aa572228623f1c131c381f |
28 |
-DIST zsh-5.6.1-doc.tar.xz 3199032 BLAKE2B 02b1eff0c1c0c49108f044f45f3d10f5d3c09bb1f52631e0090a06e1e87ae29e5b85e51f78f8aec918bcdb5122b0ac6dfcfda591f9f80de3ee54280917999356 SHA512 a3b64c01ce817d31c48bd8da7342af2a2adb116e6f58dab84f9c79fc9e687c4d83b2e5a2375ffe070376adc609b3f4f4f4114e5fd77f6f0b75859c5c30f7c752 |
29 |
-DIST zsh-5.6.1.tar.xz 3076732 BLAKE2B aaddea57cb3b926277fd90dd38a2a313ffb4e5222b24efe50b2baccb3b09af096a0107eed86746a5160f4112f8c91c3fa04f9bf86470607244d44f272379ec09 SHA512 45a60b864482a276277d8443f6faf41a2f63e11ab89a4ec0276c897971f34a874393f79c118af915b8f325a1b0265a457a1a82e8d33530f7fb797ece9c2adb7b |
30 |
DIST zsh-5.6.2-doc.tar.xz 3198932 BLAKE2B 7e701bb12e0114b7d9847caad1146fa3d538f8f6d859a765037660fb18341f1c79002811a42ec795e41eb2bbe899e12d4bcd055ea5c66e7b73bd488bdf8bbb55 SHA512 5102314e2857b032c6e6b4b715c261970b2f0c28663aff99fb87f7bb6c3971f88f8e8892ed349793570beae3fb68ff7923c82e99a3c1bb485e4639f01caaad4a |
31 |
DIST zsh-5.6.2.tar.xz 3077368 BLAKE2B 8c6ce22436f9f51eff809c779efad02f4a0730b4431630ab305abc9f1ef722698f7c565d0aa421b0d94c21f2c830f9d529709fd62a4205be1a20acf0f94a845a SHA512 f0a49e41b55eb478692ab5471d7c9828956b7e96bc82944202b0ef1c49a889b21a0e7682aa5f59fd0054ebfd866c2244c8a622e7aa46c13038af5c226c48a3a2 |
32 |
|
33 |
diff --git a/app-shells/zsh/files/zprofile-3 b/app-shells/zsh/files/zprofile-3 |
34 |
deleted file mode 100644 |
35 |
index 6c223a5ef15..00000000000 |
36 |
--- a/app-shells/zsh/files/zprofile-3 |
37 |
+++ /dev/null |
38 |
@@ -1,38 +0,0 @@ |
39 |
-# /etc/zsh/zprofile |
40 |
- |
41 |
-# Load environment settings from profile.env, which is created by |
42 |
-# env-update from the files in /etc/env.d |
43 |
-if [ -e /etc/profile.env ] ; then |
44 |
- . /etc/profile.env |
45 |
-fi |
46 |
- |
47 |
-# You should override these in your ~/.zprofile (or equivalent) for per-user |
48 |
-# settings. For system defaults, you can add a new file in /etc/profile.d/. |
49 |
-export EDITOR=${EDITOR:-/bin/nano} |
50 |
-export PAGER=${PAGER:-/usr/bin/less} |
51 |
- |
52 |
-# 077 would be more secure, but 022 is generally quite realistic |
53 |
-umask 022 |
54 |
- |
55 |
-# Set up PATH depending on whether we're root or a normal user. |
56 |
-# There's no real reason to exclude sbin paths from the normal user, |
57 |
-# but it can make tab-completion easier when they aren't in the |
58 |
-# user's PATH to pollute the executable namespace. |
59 |
-# |
60 |
-# It is intentional in the following line to use || instead of -o. |
61 |
-# This way the evaluation can be short-circuited and calling whoami is |
62 |
-# avoided. |
63 |
-if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then |
64 |
- PATH="${ROOTPATH}" |
65 |
-fi |
66 |
-export PATH |
67 |
-unset ROOTPATH |
68 |
- |
69 |
-shopts=$- |
70 |
-setopt nullglob |
71 |
-for sh in /etc/profile.d/*.sh ; do |
72 |
- [ -r "$sh" ] && . "$sh" |
73 |
-done |
74 |
-unsetopt nullglob |
75 |
-set -$shopts |
76 |
-unset sh shopts |
77 |
|
78 |
diff --git a/app-shells/zsh/zsh-5.5.ebuild b/app-shells/zsh/zsh-5.5.ebuild |
79 |
deleted file mode 100644 |
80 |
index 0d1b94fa1ce..00000000000 |
81 |
--- a/app-shells/zsh/zsh-5.5.ebuild |
82 |
+++ /dev/null |
83 |
@@ -1,212 +0,0 @@ |
84 |
-# Copyright 1999-2018 Gentoo Foundation |
85 |
-# Distributed under the terms of the GNU General Public License v2 |
86 |
- |
87 |
-EAPI=6 |
88 |
- |
89 |
-inherit flag-o-matic prefix |
90 |
- |
91 |
-if [[ ${PV} == 9999* ]] ; then |
92 |
- inherit git-r3 autotools |
93 |
- EGIT_REPO_URI="git://git.code.sf.net/p/zsh/code" |
94 |
-else |
95 |
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
96 |
- SRC_URI="https://www.zsh.org/pub/${P}.tar.gz |
97 |
- https://www.zsh.org/pub/old/${P}.tar.gz |
98 |
- doc? ( https://www.zsh.org/pub/${P}-doc.tar.xz )" |
99 |
-fi |
100 |
- |
101 |
-DESCRIPTION="UNIX Shell similar to the Korn shell" |
102 |
-HOMEPAGE="https://www.zsh.org/" |
103 |
- |
104 |
-LICENSE="ZSH gdbm? ( GPL-2 )" |
105 |
-SLOT="0" |
106 |
-IUSE="caps debug doc examples gdbm maildir pcre static unicode" |
107 |
- |
108 |
-RDEPEND=" |
109 |
- >=sys-libs/ncurses-5.1:0= |
110 |
- static? ( >=sys-libs/ncurses-5.7-r4:0=[static-libs] ) |
111 |
- caps? ( sys-libs/libcap ) |
112 |
- pcre? ( |
113 |
- >=dev-libs/libpcre-3.9 |
114 |
- static? ( >=dev-libs/libpcre-3.9[static-libs] ) |
115 |
- ) |
116 |
- gdbm? ( sys-libs/gdbm:= ) |
117 |
- !<sys-apps/baselayout-2.4.1 |
118 |
-" |
119 |
-DEPEND="sys-apps/groff |
120 |
- ${RDEPEND}" |
121 |
-PDEPEND=" |
122 |
- examples? ( app-doc/zsh-lovers ) |
123 |
-" |
124 |
-if [[ ${PV} == 9999* ]] ; then |
125 |
- DEPEND+=" app-text/yodl |
126 |
- doc? ( |
127 |
- sys-apps/texinfo |
128 |
- app-text/texi2html |
129 |
- virtual/latex-base |
130 |
- )" |
131 |
-fi |
132 |
- |
133 |
-src_prepare() { |
134 |
- if [[ ${PV} != 9999* ]]; then |
135 |
- # fix zshall problem with soelim |
136 |
- ln -s Doc man1 || die |
137 |
- mv Doc/zshall.1 Doc/zshall.1.soelim || die |
138 |
- soelim Doc/zshall.1.soelim > Doc/zshall.1 || die |
139 |
- |
140 |
- # add openrc specific options for init.d completion |
141 |
- eapply "${FILESDIR}"/${PN}-5.3-init.d-gentoo.diff |
142 |
- fi |
143 |
- |
144 |
- eapply_user |
145 |
- |
146 |
- if [[ ${PV} == 9999* ]] ; then |
147 |
- sed -i "/^VERSION=/s/=.*/=${PV}/" Config/version.mk || die |
148 |
- eautoreconf |
149 |
- fi |
150 |
-} |
151 |
- |
152 |
-src_configure() { |
153 |
- local myconf=( |
154 |
- --bindir="${EPREFIX}"/bin |
155 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) |
156 |
- --enable-etcdir="${EPREFIX}"/etc/zsh |
157 |
- --enable-runhelpdir="${EPREFIX}"/usr/share/zsh/${PV%_*}/help |
158 |
- --enable-fndir="${EPREFIX}"/usr/share/zsh/${PV%_*}/functions |
159 |
- --enable-site-fndir="${EPREFIX}"/usr/share/zsh/site-functions |
160 |
- --enable-function-subdirs |
161 |
- --with-tcsetpgrp |
162 |
- $(use_enable maildir maildir-support) |
163 |
- $(use_enable pcre) |
164 |
- $(use_enable caps cap) |
165 |
- $(use_enable unicode multibyte) |
166 |
- $(use_enable gdbm ) |
167 |
- ) |
168 |
- |
169 |
- if use static ; then |
170 |
- myconf+=( --disable-dynamic ) |
171 |
- append-ldflags -static |
172 |
- fi |
173 |
- if use debug ; then |
174 |
- myconf+=( |
175 |
- --enable-zsh-debug |
176 |
- --enable-zsh-mem-debug |
177 |
- --enable-zsh-mem-warning |
178 |
- --enable-zsh-secure-free |
179 |
- --enable-zsh-hash-debug |
180 |
- ) |
181 |
- fi |
182 |
- |
183 |
- if [[ ${CHOST} == *-darwin* ]]; then |
184 |
- myconf+=( --enable-libs=-liconv ) |
185 |
- append-ldflags -Wl,-x |
186 |
- fi |
187 |
- |
188 |
- econf "${myconf[@]}" |
189 |
- |
190 |
- if use static ; then |
191 |
- # compile all modules statically, see Bug #27392 |
192 |
- # removed cap and curses because linking failes |
193 |
- sed -e "s,link=no,link=static,g" \ |
194 |
- -e "/^name=zsh\/cap/s,link=static,link=no," \ |
195 |
- -e "/^name=zsh\/curses/s,link=static,link=no," \ |
196 |
- -i "${S}"/config.modules || die |
197 |
- if ! use gdbm ; then |
198 |
- sed -i '/^name=zsh\/db\/gdbm/s,link=static,link=no,' \ |
199 |
- "${S}"/config.modules || die |
200 |
- fi |
201 |
- fi |
202 |
-} |
203 |
- |
204 |
-src_compile() { |
205 |
- default |
206 |
- |
207 |
- if [[ ${PV} == 9999* ]] && use doc ; then |
208 |
- emake -C Doc everything |
209 |
- fi |
210 |
-} |
211 |
- |
212 |
-src_test() { |
213 |
- addpredict /dev/ptmx |
214 |
- local i |
215 |
- for i in C02cond.ztst V08zpty.ztst X02zlevi.ztst Y01completion.ztst Y02compmatch.ztst Y03arguments.ztst ; do |
216 |
- rm "${S}"/Test/${i} || die |
217 |
- done |
218 |
- emake check |
219 |
-} |
220 |
- |
221 |
-src_install() { |
222 |
- emake DESTDIR="${D}" install $(usex doc "install.info" "") |
223 |
- |
224 |
- insinto /etc/zsh |
225 |
- export PREFIX_QUOTE_CHAR='"' PREFIX_EXTRA_REGEX="/EUID/s,0,${EUID}," |
226 |
- newins "$(prefixify_ro "${FILESDIR}"/zprofile-3)" zprofile |
227 |
- |
228 |
- keepdir /usr/share/zsh/site-functions |
229 |
- insinto /usr/share/zsh/${PV%_*}/functions/Prompts |
230 |
- newins "${FILESDIR}"/prompt_gentoo_setup-1 prompt_gentoo_setup |
231 |
- |
232 |
- local i |
233 |
- |
234 |
- # install miscellaneous scripts (bug #54520) |
235 |
- sed -e "s:/usr/local/bin/perl:${EPREFIX}/usr/bin/perl:g" \ |
236 |
- -e "s:/usr/local/bin/zsh:${EPREFIX}/bin/zsh:g" \ |
237 |
- -i {Util,Misc}/* || die |
238 |
- for i in Util Misc ; do |
239 |
- insinto /usr/share/zsh/${PV%_*}/${i} |
240 |
- doins ${i}/* |
241 |
- done |
242 |
- |
243 |
- # install header files (bug #538684) |
244 |
- insinto /usr/include/zsh |
245 |
- doins config.h Src/*.epro |
246 |
- for i in Src/{zsh.mdh,*.h} ; do |
247 |
- sed -e 's@\.\./config\.h@config.h@' \ |
248 |
- -e 's@#\(\s*\)include "\([^"]\+\)"@#\1include <zsh/\2>@' \ |
249 |
- -i "${i}" |
250 |
- doins "${i}" |
251 |
- done |
252 |
- |
253 |
- dodoc ChangeLog* META-FAQ NEWS README config.modules |
254 |
- |
255 |
- if use doc ; then |
256 |
- pushd "${WORKDIR}/${PN}-${PV%_*}" >/dev/null |
257 |
- docinto html |
258 |
- dodoc Doc/*.html |
259 |
- insinto /usr/share/doc/${PF} |
260 |
- doins Doc/zsh.{dvi,pdf} |
261 |
- popd >/dev/null |
262 |
- fi |
263 |
- |
264 |
- docinto StartupFiles |
265 |
- dodoc StartupFiles/z* |
266 |
-} |
267 |
- |
268 |
-pkg_postinst() { |
269 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
270 |
- echo |
271 |
- elog "If you want to enable Portage completions and Gentoo prompt," |
272 |
- elog "emerge app-shells/gentoo-zsh-completions and add" |
273 |
- elog " autoload -U compinit promptinit" |
274 |
- elog " compinit" |
275 |
- elog " promptinit; prompt gentoo" |
276 |
- elog "to your ~/.zshrc" |
277 |
- echo |
278 |
- elog "Also, if you want to enable cache for the completions, add" |
279 |
- elog " zstyle ':completion::complete:*' use-cache 1" |
280 |
- elog "to your ~/.zshrc" |
281 |
- echo |
282 |
- elog "Note that a system zprofile startup file is installed. This will override" |
283 |
- elog "PATH and possibly other variables that a user may set in ~/.zshenv." |
284 |
- elog "Custom PATH settings and similar overridden variables can be moved to ~/.zprofile" |
285 |
- elog "or other user startup files that are sourced after the system zprofile." |
286 |
- echo |
287 |
- elog "If PATH must be set in ~/.zshenv to affect things like non-login ssh shells," |
288 |
- elog "one method is to use a separate path-setting file that is conditionally sourced" |
289 |
- elog "in ~/.zshenv and also sourced from ~/.zprofile. For more information, see the" |
290 |
- elog "zshenv example in ${EROOT}/usr/share/doc/${PF}/StartupFiles/." |
291 |
- echo |
292 |
- elog "See https://wiki.gentoo.org/wiki/Zsh/HOWTO for more introduction documentation." |
293 |
- echo |
294 |
- fi |
295 |
-} |
296 |
|
297 |
diff --git a/app-shells/zsh/zsh-5.6.1.ebuild b/app-shells/zsh/zsh-5.6.1.ebuild |
298 |
deleted file mode 100644 |
299 |
index 6b7bbf5c1e4..00000000000 |
300 |
--- a/app-shells/zsh/zsh-5.6.1.ebuild |
301 |
+++ /dev/null |
302 |
@@ -1,212 +0,0 @@ |
303 |
-# Copyright 1999-2018 Gentoo Foundation |
304 |
-# Distributed under the terms of the GNU General Public License v2 |
305 |
- |
306 |
-EAPI=7 |
307 |
- |
308 |
-inherit flag-o-matic prefix |
309 |
- |
310 |
-if [[ ${PV} == 9999* ]] ; then |
311 |
- inherit git-r3 autotools |
312 |
- EGIT_REPO_URI="https://git.code.sf.net/p/zsh/code" |
313 |
-else |
314 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
315 |
- SRC_URI="https://www.zsh.org/pub/${P}.tar.xz |
316 |
- https://www.zsh.org/pub/old/${P}.tar.xz |
317 |
- doc? ( https://www.zsh.org/pub/${P}-doc.tar.xz )" |
318 |
-fi |
319 |
- |
320 |
-DESCRIPTION="UNIX Shell similar to the Korn shell" |
321 |
-HOMEPAGE="https://www.zsh.org/" |
322 |
- |
323 |
-LICENSE="ZSH gdbm? ( GPL-2 )" |
324 |
-SLOT="0" |
325 |
-IUSE="caps debug doc examples gdbm maildir pcre static unicode" |
326 |
- |
327 |
-RDEPEND=" |
328 |
- >=sys-libs/ncurses-5.1:0= |
329 |
- static? ( >=sys-libs/ncurses-5.7-r4:0=[static-libs] ) |
330 |
- caps? ( sys-libs/libcap ) |
331 |
- pcre? ( |
332 |
- >=dev-libs/libpcre-3.9 |
333 |
- static? ( >=dev-libs/libpcre-3.9[static-libs] ) |
334 |
- ) |
335 |
- gdbm? ( sys-libs/gdbm:= ) |
336 |
- !<sys-apps/baselayout-2.4.1 |
337 |
-" |
338 |
-DEPEND="sys-apps/groff |
339 |
- ${RDEPEND}" |
340 |
-PDEPEND=" |
341 |
- examples? ( app-doc/zsh-lovers ) |
342 |
-" |
343 |
-if [[ ${PV} == 9999* ]] ; then |
344 |
- DEPEND+=" app-text/yodl |
345 |
- doc? ( |
346 |
- sys-apps/texinfo |
347 |
- app-text/texi2html |
348 |
- virtual/latex-base |
349 |
- )" |
350 |
-fi |
351 |
- |
352 |
-src_prepare() { |
353 |
- if [[ ${PV} != 9999* ]]; then |
354 |
- # fix zshall problem with soelim |
355 |
- ln -s Doc man1 || die |
356 |
- mv Doc/zshall.1 Doc/zshall.1.soelim || die |
357 |
- soelim Doc/zshall.1.soelim > Doc/zshall.1 || die |
358 |
- |
359 |
- # add openrc specific options for init.d completion |
360 |
- eapply "${FILESDIR}"/${PN}-5.3-init.d-gentoo.diff |
361 |
- fi |
362 |
- |
363 |
- eapply_user |
364 |
- |
365 |
- if [[ ${PV} == 9999* ]] ; then |
366 |
- sed -i "/^VERSION=/s/=.*/=${PV}/" Config/version.mk || die |
367 |
- eautoreconf |
368 |
- fi |
369 |
-} |
370 |
- |
371 |
-src_configure() { |
372 |
- local myconf=( |
373 |
- --bindir="${EPREFIX}"/bin |
374 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) |
375 |
- --enable-etcdir="${EPREFIX}"/etc/zsh |
376 |
- --enable-runhelpdir="${EPREFIX}"/usr/share/zsh/${PV%_*}/help |
377 |
- --enable-fndir="${EPREFIX}"/usr/share/zsh/${PV%_*}/functions |
378 |
- --enable-site-fndir="${EPREFIX}"/usr/share/zsh/site-functions |
379 |
- --enable-function-subdirs |
380 |
- --with-tcsetpgrp |
381 |
- $(use_enable maildir maildir-support) |
382 |
- $(use_enable pcre) |
383 |
- $(use_enable caps cap) |
384 |
- $(use_enable unicode multibyte) |
385 |
- $(use_enable gdbm) |
386 |
- ) |
387 |
- |
388 |
- if use static ; then |
389 |
- myconf+=( --disable-dynamic ) |
390 |
- append-ldflags -static |
391 |
- fi |
392 |
- if use debug ; then |
393 |
- myconf+=( |
394 |
- --enable-zsh-debug |
395 |
- --enable-zsh-mem-debug |
396 |
- --enable-zsh-mem-warning |
397 |
- --enable-zsh-secure-free |
398 |
- --enable-zsh-hash-debug |
399 |
- ) |
400 |
- fi |
401 |
- |
402 |
- if [[ ${CHOST} == *-darwin* ]]; then |
403 |
- myconf+=( --enable-libs=-liconv ) |
404 |
- append-ldflags -Wl,-x |
405 |
- fi |
406 |
- |
407 |
- econf "${myconf[@]}" |
408 |
- |
409 |
- if use static ; then |
410 |
- # compile all modules statically, see Bug #27392 |
411 |
- # removed cap and curses because linking failes |
412 |
- sed -e "s,link=no,link=static,g" \ |
413 |
- -e "/^name=zsh\/cap/s,link=static,link=no," \ |
414 |
- -e "/^name=zsh\/curses/s,link=static,link=no," \ |
415 |
- -i "${S}"/config.modules || die |
416 |
- if ! use gdbm ; then |
417 |
- sed -i '/^name=zsh\/db\/gdbm/s,link=static,link=no,' \ |
418 |
- "${S}"/config.modules || die |
419 |
- fi |
420 |
- fi |
421 |
-} |
422 |
- |
423 |
-src_compile() { |
424 |
- default |
425 |
- |
426 |
- if [[ ${PV} == 9999* ]] && use doc ; then |
427 |
- emake -C Doc everything |
428 |
- fi |
429 |
-} |
430 |
- |
431 |
-src_test() { |
432 |
- addpredict /dev/ptmx |
433 |
- local i |
434 |
- for i in C02cond.ztst V08zpty.ztst X02zlevi.ztst Y01completion.ztst Y02compmatch.ztst Y03arguments.ztst ; do |
435 |
- rm "${S}"/Test/${i} || die |
436 |
- done |
437 |
- emake check |
438 |
-} |
439 |
- |
440 |
-src_install() { |
441 |
- emake DESTDIR="${D}" install $(usex doc "install.info" "") |
442 |
- |
443 |
- insinto /etc/zsh |
444 |
- export PREFIX_QUOTE_CHAR='"' PREFIX_EXTRA_REGEX="/EUID/s,0,${EUID}," |
445 |
- newins "$(prefixify_ro "${FILESDIR}"/zprofile-4)" zprofile |
446 |
- |
447 |
- keepdir /usr/share/zsh/site-functions |
448 |
- insinto /usr/share/zsh/${PV%_*}/functions/Prompts |
449 |
- newins "${FILESDIR}"/prompt_gentoo_setup-1 prompt_gentoo_setup |
450 |
- |
451 |
- local i |
452 |
- |
453 |
- # install miscellaneous scripts (bug #54520) |
454 |
- sed -e "s:/usr/local/bin/perl:${EPREFIX}/usr/bin/perl:g" \ |
455 |
- -e "s:/usr/local/bin/zsh:${EPREFIX}/bin/zsh:g" \ |
456 |
- -i {Util,Misc}/* || die |
457 |
- for i in Util Misc ; do |
458 |
- insinto /usr/share/zsh/${PV%_*}/${i} |
459 |
- doins ${i}/* |
460 |
- done |
461 |
- |
462 |
- # install header files (bug #538684) |
463 |
- insinto /usr/include/zsh |
464 |
- doins config.h Src/*.epro |
465 |
- for i in Src/{zsh.mdh,*.h} ; do |
466 |
- sed -e 's@\.\./config\.h@config.h@' \ |
467 |
- -e 's@#\(\s*\)include "\([^"]\+\)"@#\1include <zsh/\2>@' \ |
468 |
- -i "${i}" |
469 |
- doins "${i}" |
470 |
- done |
471 |
- |
472 |
- dodoc ChangeLog* META-FAQ NEWS README config.modules |
473 |
- |
474 |
- if use doc ; then |
475 |
- pushd "${WORKDIR}/${PN}-${PV%_*}" >/dev/null |
476 |
- docinto html |
477 |
- dodoc Doc/*.html |
478 |
- insinto /usr/share/doc/${PF} |
479 |
- doins Doc/zsh.{dvi,pdf} |
480 |
- popd >/dev/null |
481 |
- fi |
482 |
- |
483 |
- docinto StartupFiles |
484 |
- dodoc StartupFiles/z* |
485 |
-} |
486 |
- |
487 |
-pkg_postinst() { |
488 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
489 |
- echo |
490 |
- elog "If you want to enable Portage completions and Gentoo prompt," |
491 |
- elog "emerge app-shells/gentoo-zsh-completions and add" |
492 |
- elog " autoload -U compinit promptinit" |
493 |
- elog " compinit" |
494 |
- elog " promptinit; prompt gentoo" |
495 |
- elog "to your ~/.zshrc" |
496 |
- echo |
497 |
- elog "Also, if you want to enable cache for the completions, add" |
498 |
- elog " zstyle ':completion::complete:*' use-cache 1" |
499 |
- elog "to your ~/.zshrc" |
500 |
- echo |
501 |
- elog "Note that a system zprofile startup file is installed. This will override" |
502 |
- elog "PATH and possibly other variables that a user may set in ~/.zshenv." |
503 |
- elog "Custom PATH settings and similar overridden variables can be moved to ~/.zprofile" |
504 |
- elog "or other user startup files that are sourced after the system zprofile." |
505 |
- echo |
506 |
- elog "If PATH must be set in ~/.zshenv to affect things like non-login ssh shells," |
507 |
- elog "one method is to use a separate path-setting file that is conditionally sourced" |
508 |
- elog "in ~/.zshenv and also sourced from ~/.zprofile. For more information, see the" |
509 |
- elog "zshenv example in ${EROOT}/usr/share/doc/${PF}/StartupFiles/." |
510 |
- echo |
511 |
- elog "See https://wiki.gentoo.org/wiki/Zsh/HOWTO for more introduction documentation." |
512 |
- echo |
513 |
- fi |
514 |
-} |