Gentoo Archives: gentoo-commits

From: "Torsten Veller (tove)" <tove@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-shells/zsh: ChangeLog metadata.xml zsh-4.3.2-r3.ebuild zsh-4.3.4-r1.ebuild zsh-4.2.6-r1.ebuild zsh-4.2.5.ebuild
Date: Tue, 04 Dec 2007 16:10:31
Message-Id: E1IzaLo-0000o3-E7@stork.gentoo.org
1 tove 07/12/04 16:10:24
2
3 Modified: ChangeLog metadata.xml
4 Added: zsh-4.3.2-r3.ebuild zsh-4.3.4-r1.ebuild
5 Removed: zsh-4.2.6-r1.ebuild zsh-4.2.5.ebuild
6 Log:
7 Fix for #201022 and #196722. Removed old versions. Added myself as interim maintainer.
8 (Portage version: 2.1.4_rc7)
9
10 Revision Changes Path
11 1.116 app-shells/zsh/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/ChangeLog?rev=1.116&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/ChangeLog?rev=1.116&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/ChangeLog?r1=1.115&r2=1.116
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v
20 retrieving revision 1.115
21 retrieving revision 1.116
22 diff -u -r1.115 -r1.116
23 --- ChangeLog 6 Nov 2007 00:39:19 -0000 1.115
24 +++ ChangeLog 4 Dec 2007 16:10:23 -0000 1.116
25 @@ -1,6 +1,16 @@
26 # ChangeLog for app-shells/zsh
27 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.115 2007/11/06 00:39:19 wolf31o2 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.116 2007/12/04 16:10:23 tove Exp $
30 +
31 +*zsh-4.3.4-r1 (04 Dec 2007)
32 +*zsh-4.3.2-r3 (04 Dec 2007)
33 +
34 + 04 Dec 2007; Torsten Veller <tove@g.o>
35 + -files/zsh-4.2.1-gentoo.diff, metadata.xml, -zsh-4.2.5.ebuild,
36 + -zsh-4.2.6-r1.ebuild, +zsh-4.3.2-r3.ebuild, +zsh-4.3.4-r1.ebuild:
37 + Fix for #201022 by removing the file as it shouldn't be distributed.
38 + Fix 4.3.4-r1 wrt #196722 and added zshcalsys.1.
39 + Added myself as maintainer and removed old versions.
40
41 06 Nov 2007; Chris Gianelloni <wolf31o2@g.o> zsh-4.3.2-r2.ebuild,
42 zsh-4.3.4.ebuild:
43
44
45
46 1.2 app-shells/zsh/metadata.xml
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/metadata.xml?rev=1.2&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/metadata.xml?rev=1.2&content-type=text/plain
50 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/metadata.xml?r1=1.1&r2=1.2
51
52 Index: metadata.xml
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/app-shells/zsh/metadata.xml,v
55 retrieving revision 1.1
56 retrieving revision 1.2
57 diff -u -r1.1 -r1.2
58 --- metadata.xml 11 Nov 2003 06:32:34 -0000 1.1
59 +++ metadata.xml 4 Dec 2007 16:10:23 -0000 1.2
60 @@ -3,8 +3,9 @@
61 <pkgmetadata>
62 <herd>no-herd</herd>
63 <maintainer>
64 - <email>usata@g.o</email>
65 - <name>Mamoru KOMACHI</name>
66 + <email>tove@g.o</email>
67 + <name>Torsten Veller</name>
68 + <description>Interim maintainer</description>
69 </maintainer>
70 <longdescription>
71 Zsh is a shell designed for interactive use, although it is also a
72
73
74
75 1.1 app-shells/zsh/zsh-4.3.2-r3.ebuild
76
77 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/zsh-4.3.2-r3.ebuild?rev=1.1&view=markup
78 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/zsh-4.3.2-r3.ebuild?rev=1.1&content-type=text/plain
79
80 Index: zsh-4.3.2-r3.ebuild
81 ===================================================================
82 # Copyright 1999-2007 Gentoo Foundation
83 # Distributed under the terms of the GNU General Public License v2
84 # $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-4.3.2-r3.ebuild,v 1.1 2007/12/04 16:10:23 tove Exp $
85
86 inherit eutils multilib
87
88 LOVERS_PV=0.5
89 LOVERS_P=zsh-lovers-${LOVERS_PV}
90
91 DESCRIPTION="UNIX Shell similar to the Korn shell"
92 HOMEPAGE="http://www.zsh.org/"
93 SRC_URI="ftp://ftp.zsh.org/pub/${P}.tar.bz2
94 examples? (
95 http://www.grml.org/repos/zsh-lovers_${LOVERS_PV}.orig.tar.gz )
96 doc? ( ftp://ftp.zsh.org/pub/${P}-doc.tar.bz2 )"
97
98 LICENSE="ZSH"
99 SLOT="0"
100 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
101 IUSE="maildir ncurses static doc examples pcre caps unicode"
102
103 RDEPEND="pcre? ( >=dev-libs/libpcre-3.9 )
104 caps? ( sys-libs/libcap )
105 ncurses? ( >=sys-libs/ncurses-5.1 )"
106 DEPEND="sys-apps/groff
107 >=sys-apps/sed-4
108 ${RDEPEND}"
109
110 src_unpack() {
111 unpack ${A}
112 cd "${S}"
113 epatch "${FILESDIR}"/${PN}-init.d-gentoo.diff
114
115 # fixes #201022 and
116 # http://www.zsh.org/mla/workers/2007/msg01065.html
117 rm Util/difflog.pl
118
119 cd "${S}"/Doc
120 ln -sf . man1
121 # fix zshall problem with soelim
122 soelim zshall.1 > zshall.1.soelim
123 mv zshall.1.soelim zshall.1
124 }
125
126 src_compile() {
127 local myconf
128
129 use static && myconf="${myconf} --disable-dynamic" \
130 && LDFLAGS="${LDFLAGS} -static"
131
132 econf \
133 --bindir=/bin \
134 --libdir=/usr/$(get_libdir) \
135 --enable-etcdir=/etc/zsh \
136 --enable-zshenv=/etc/zsh/zshenv \
137 --enable-zlogin=/etc/zsh/zlogin \
138 --enable-zlogout=/etc/zsh/zlogout \
139 --enable-zprofile=/etc/zsh/zprofile \
140 --enable-zshrc=/etc/zsh/zshrc \
141 --enable-fndir=/usr/share/zsh/${PV%_*}/functions \
142 --enable-site-fndir=/usr/share/zsh/site-functions \
143 --enable-function-subdirs \
144 --enable-ldflags="${LDFLAGS}" \
145 --with-tcsetpgrp \
146 $(use_with ncurses curses-terminfo) \
147 $(use_enable maildir maildir-support) \
148 $(use_enable pcre) \
149 $(use_enable caps) \
150 $(use_enable unicode multibyte) \
151 ${myconf} || die "configure failed"
152
153 if use static ; then
154 # compile all modules statically, see Bug #27392
155 sed -i -e "s/link=no/link=static/g" \
156 -e "s/load=no/load=yes/g" \
157 config.modules || die
158 # else
159 # avoid linking to libs in /usr/lib, see Bug #27064
160 # sed -i -e "/LIBS/s%-lpcre%/usr/$(get_libdir)/libpcre.a%" \
161 # Makefile || die
162 fi
163
164 # emake still b0rks
165 emake -j1 || die "make failed"
166 }
167
168 src_test() {
169 for f in /dev/pt* ; do
170 addpredict $f
171 done
172 make check || die "make check failed"
173 }
174
175 src_install() {
176 einstall \
177 bindir="${D}"/bin \
178 libdir="${D}"/usr/$(get_libdir) \
179 fndir="${D}"/usr/share/zsh/${PV%_*}/functions \
180 sitefndir="${D}"/usr/share/zsh/site-functions \
181 scriptdir="${D}"/usr/share/zsh/${PV%_*}/scripts \
182 install.bin install.man install.modules \
183 install.info install.fns || die "make install failed"
184
185 insinto /etc/zsh
186 doins "${FILESDIR}"/zprofile
187
188 keepdir /usr/share/zsh/site-functions
189 insinto /usr/share/zsh/${PV%_*}/functions/Prompts
190 doins "${FILESDIR}"/prompt_gentoo_setup || die
191
192 # install miscellaneous scripts; bug #54520
193 sed -i -e "s:/usr/local:/usr:g" {Util,Misc}/* || "sed failed"
194 insinto /usr/share/zsh/${PV%_*}/Util
195 doins Util/* || die "doins Util scripts failed"
196 insinto /usr/share/zsh/${PV%_*}/Misc
197 doins Misc/* || die "doins Misc scripts failed"
198
199 dodoc ChangeLog* META-FAQ README INSTALL LICENCE config.modules
200
201 if use doc ; then
202 dohtml Doc/*
203 insinto /usr/share/doc/${PF}
204 doins Doc/zsh.{dvi,pdf}
205 fi
206
207 if use examples; then
208 cd "${WORKDIR}"/${LOVERS_P}
209 doman zsh-lovers.1 || die "doman zsh-lovers failed"
210 dohtml zsh-lovers.html || die "dohtml zsh-lovers failed"
211 docinto zsh-lovers
212 dodoc zsh.vim README
213 insinto /usr/share/doc/${PF}/zsh-lovers
214 doins zsh-lovers.{ps,pdf} refcard.{dvi,ps,pdf}
215 doins -r zsh_people || die "doins zsh_people failed"
216 cd -
217 fi
218
219 docinto StartupFiles
220 dodoc StartupFiles/z*
221 }
222
223 pkg_preinst() {
224 # Our zprofile file does the job of the old zshenv file
225 # Move the old version into a zprofile script so the normal
226 # etc-update process will handle any changes.
227 if [ -f "${ROOT}/etc/zsh/zshenv" -a ! -f "${ROOT}/etc/zsh/zprofile" ]; then
228 ewarn "Renaming /etc/zsh/zshenv to /etc/zsh/zprofile."
229 ewarn "The zprofile file does the job of the old zshenv file."
230 mv "${ROOT}"/etc/zsh/{zshenv,zprofile}
231 fi
232 }
233
234 pkg_postinst() {
235 elog
236 elog "If you want to enable Portage completions and Gentoo prompt,"
237 elog "emerge app-shells/zsh-completion and add"
238 elog " autoload -U compinit promptinit"
239 elog " compinit"
240 elog " promptinit; prompt gentoo"
241 elog "to your ~/.zshrc"
242 elog
243 elog "Also, if you want to enable cache for the completions, add"
244 elog " zstyle ':completion::complete:*' use-cache 1"
245 elog "to your ~/.zshrc"
246 elog
247 # see Bug 26776
248 ewarn
249 ewarn "If you are upgrading from zsh-4.0.x you may need to"
250 ewarn "remove all your old ~/.zcompdump files in order to use"
251 ewarn "completion. For more info see zcompsys manpage."
252 ewarn
253 }
254
255
256
257 1.1 app-shells/zsh/zsh-4.3.4-r1.ebuild
258
259 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/zsh-4.3.4-r1.ebuild?rev=1.1&view=markup
260 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/zsh-4.3.4-r1.ebuild?rev=1.1&content-type=text/plain
261
262 Index: zsh-4.3.4-r1.ebuild
263 ===================================================================
264 # Copyright 1999-2007 Gentoo Foundation
265 # Distributed under the terms of the GNU General Public License v2
266 # $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-4.3.4-r1.ebuild,v 1.1 2007/12/04 16:10:23 tove Exp $
267
268 inherit eutils multilib autotools
269
270 LOVERS_PV=0.5
271 LOVERS_P=zsh-lovers-${LOVERS_PV}
272
273 DESCRIPTION="UNIX Shell similar to the Korn shell"
274 HOMEPAGE="http://www.zsh.org/"
275 SRC_URI="ftp://ftp.zsh.org/pub/${P}.tar.bz2
276 mirror://gentoo/${P}-zshcalsys.tar.bz2
277 examples? (
278 http://www.grml.org/repos/zsh-lovers_${LOVERS_PV}.orig.tar.gz )
279 doc? ( ftp://ftp.zsh.org/pub/${P}-doc.tar.bz2 )"
280
281 LICENSE="ZSH"
282 SLOT="0"
283 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
284 IUSE="maildir static doc examples pcre caps unicode"
285
286 RDEPEND=">=sys-libs/ncurses-5.1
287 caps? ( sys-libs/libcap )
288 pcre? ( >=dev-libs/libpcre-3.9 )"
289 DEPEND="sys-apps/groff
290 ${RDEPEND}"
291
292 src_unpack() {
293 unpack ${A}
294 cd "${S}"
295
296 # fix zshall problem with soelim
297 ln -s Doc man1
298 mv Doc/zshall.1 Doc/zshall.1.soelim
299 soelim Doc/zshall.1.soelim > Doc/zshall.1
300
301 # fixes #201022 and
302 # http://www.zsh.org/mla/workers/2007/msg01065.html
303 rm Util/difflog.pl
304
305 epatch "${FILESDIR}/${PN}"-init.d-gentoo.diff
306 epatch "${FILESDIR}/${P}"-configure-changequote.patch
307 eautoreconf
308 }
309
310 src_compile() {
311 local myconf=
312
313 if use static ; then
314 myconf="${myconf} --disable-dynamic"
315 LDFLAGS="${LDFLAGS} -static"
316 fi
317
318 econf \
319 --bindir=/bin \
320 --libdir=/usr/$(get_libdir) \
321 --enable-etcdir=/etc/zsh \
322 --enable-zshenv=/etc/zsh/zshenv \
323 --enable-zlogin=/etc/zsh/zlogin \
324 --enable-zlogout=/etc/zsh/zlogout \
325 --enable-zprofile=/etc/zsh/zprofile \
326 --enable-zshrc=/etc/zsh/zshrc \
327 --enable-fndir=/usr/share/zsh/${PV%_*}/functions \
328 --enable-site-fndir=/usr/share/zsh/site-functions \
329 --enable-function-subdirs \
330 --enable-ldflags="${LDFLAGS}" \
331 --with-curses-terminfo \
332 --with-tcsetpgrp \
333 $(use_enable maildir maildir-support) \
334 $(use_enable pcre) \
335 $(use_enable caps) \
336 $(use_enable unicode multibyte) \
337 ${myconf} || die "configure failed"
338
339 if use static ; then
340 # compile all modules statically, see Bug #27392
341 sed -i -e "s/link=no/link=static/g" \
342 -e "s/load=no/load=yes/g" \
343 config.modules || die
344 # else
345 # sed -i -e "/LIBS/s%-lpcre%/usr/$(get_libdir)/libpcre.a%" Makefile
346 fi
347
348 emake || die "make failed"
349 }
350
351 src_test() {
352 local f=
353 for f in /dev/pt* ; do
354 addpredict "$f"
355 done
356 make check || die "make check failed"
357 }
358
359 src_install() {
360 einstall \
361 bindir="${D}"/bin \
362 libdir="${D}"/usr/$(get_libdir) \
363 fndir="${D}"/usr/share/zsh/${PV%_*}/functions \
364 sitefndir="${D}"/usr/share/zsh/site-functions \
365 scriptdir="${D}"/usr/share/zsh/${PV%_*}/scripts \
366 install.bin install.man install.modules \
367 install.info install.fns || die "make install failed"
368
369 insinto /etc/zsh
370 doins "${FILESDIR}"/zprofile
371
372 keepdir /usr/share/zsh/site-functions
373 insinto /usr/share/zsh/${PV%_*}/functions/Prompts
374 doins "${FILESDIR}"/prompt_gentoo_setup || die
375
376 # install miscellaneous scripts; bug #54520
377 sed -i -e "s:/usr/local:/usr:g" {Util,Misc}/* || "sed failed"
378 insinto /usr/share/zsh/${PV%_*}/Util
379 doins Util/* || die "doins Util scripts failed"
380 insinto /usr/share/zsh/${PV%_*}/Misc
381 doins Misc/* || die "doins Misc scripts failed"
382
383 dodoc ChangeLog* META-FAQ README config.modules
384
385 if use doc ; then
386 dohtml Doc/*
387 insinto /usr/share/doc/${PF}
388 doins Doc/zsh.{dvi,pdf}
389 fi
390
391 if use examples; then
392 cd "${WORKDIR}/${LOVERS_P}"
393 doman zsh-lovers.1 || die "doman zsh-lovers failed"
394 dohtml zsh-lovers.html || die "dohtml zsh-lovers failed"
395 docinto zsh-lovers
396 dodoc zsh.vim README
397 insinto /usr/share/doc/"${PF}"/zsh-lovers
398 doins zsh-lovers.{ps,pdf} refcard.{dvi,ps,pdf}
399 doins -r zsh_people || die "doins zsh_people failed"
400 cd -
401 fi
402
403 docinto StartupFiles
404 dodoc StartupFiles/z*
405 }
406
407 pkg_preinst() {
408 # Our zprofile file does the job of the old zshenv file
409 # Move the old version into a zprofile script so the normal
410 # etc-update process will handle any changes.
411 if [ -f "${ROOT}/etc/zsh/zshenv" -a ! -f "${ROOT}/etc/zsh/zprofile" ]; then
412 ewarn "Renaming /etc/zsh/zshenv to /etc/zsh/zprofile."
413 ewarn "The zprofile file does the job of the old zshenv file."
414 mv "${ROOT}"/etc/zsh/{zshenv,zprofile}
415 fi
416 }
417
418 pkg_postinst() {
419 elog
420 elog "If you want to enable Portage completions and Gentoo prompt,"
421 elog "emerge app-shells/zsh-completion and add"
422 elog " autoload -U compinit promptinit"
423 elog " compinit"
424 elog " promptinit; prompt gentoo"
425 elog "to your ~/.zshrc"
426 elog
427 elog "Also, if you want to enable cache for the completions, add"
428 elog " zstyle ':completion::complete:*' use-cache 1"
429 elog "to your ~/.zshrc"
430 elog
431 # see Bug 26776
432 ewarn
433 ewarn "If you are upgrading from zsh-4.0.x you may need to"
434 ewarn "remove all your old ~/.zcompdump files in order to use"
435 ewarn "completion. For more info see zcompsys manpage."
436 ewarn
437 }
438
439
440
441 --
442 gentoo-commits@g.o mailing list