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 zsh-4.3.10-r1.ebuild
Date: Sun, 02 May 2010 18:41:51
Message-Id: 20100502184140.23F1E2C25A@corvid.gentoo.org
1 tove 10/05/02 18:41:40
2
3 Modified: ChangeLog
4 Added: zsh-4.3.10-r1.ebuild
5 Log:
6 EAPI=2. Depend on libpcre with USE=static-libs for a static build. Maintenance
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.148 app-shells/zsh/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/ChangeLog?rev=1.148&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/ChangeLog?rev=1.148&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/ChangeLog?r1=1.147&r2=1.148
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v
19 retrieving revision 1.147
20 retrieving revision 1.148
21 diff -u -r1.147 -r1.148
22 --- ChangeLog 25 Jan 2010 01:44:58 -0000 1.147
23 +++ ChangeLog 2 May 2010 18:41:39 -0000 1.148
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-shells/zsh
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.147 2010/01/25 01:44:58 tgall Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.148 2010/05/02 18:41:39 tove Exp $
29 +
30 +*zsh-4.3.10-r1 (02 May 2010)
31 +
32 + 02 May 2010; Torsten Veller <tove@g.o> +zsh-4.3.10-r1.ebuild:
33 + EAPI=2. Depend on libpcre with USE=static-libs for a static build.
34 + Maintenance
35
36 24 Jan 2010; Tom Gall <tgall@g.o< zsh-4.3.10.ebuild:
37 stlabe on ppc64 (passes tests .9 did not)
38
39
40
41 1.1 app-shells/zsh/zsh-4.3.10-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/zsh-4.3.10-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/zsh/zsh-4.3.10-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: zsh-4.3.10-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-4.3.10-r1.ebuild,v 1.1 2010/05/02 18:41:39 tove Exp $
51
52 EAPI=2
53
54 # doc package for -dev version exists?
55 doc_available=true
56
57 inherit flag-o-matic eutils multilib
58
59 MY_PV=${PV/_p/-dev-}
60 S=${WORKDIR}/${PN}-${MY_PV}
61
62 zsh_ftp="ftp://ftp.zsh.org/pub"
63
64 if [[ ${PV} != "${MY_PV}" ]] ; then
65 ZSH_URI="${zsh_ftp}/development/${PN}-${MY_PV}.tar.bz2"
66 if ${doc_available} ; then
67 ZSH_DOC_URI="${zsh_ftp}/development/${PN}-${MY_PV}-doc.tar.bz2"
68 else
69 ZSH_DOC_URI="${zsh_ftp}/${PN}-${PV%_*}-doc.tar.bz2"
70 fi
71 else
72 ZSH_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
73 ${zsh_ftp}/${P}.tar.bz2"
74 ZSH_DOC_URI="${zsh_ftp}/${PN}-${PV%_*}-doc.tar.bz2"
75 fi
76
77 LOVERS_PV=0.5.orig
78 LOVERS_P=zsh-lovers-${LOVERS_PV}
79 LOVERS_URI="http://deb.grml.org/pool/main/z/zsh-lovers"
80
81 DESCRIPTION="UNIX Shell similar to the Korn shell"
82 HOMEPAGE="http://www.zsh.org/"
83 SRC_URI="${ZSH_URI}
84 examples? ( ${LOVERS_URI}/zsh-lovers_${LOVERS_PV}.tar.gz )
85 doc? ( ${ZSH_DOC_URI} )"
86
87 LICENSE="ZSH gdbm? ( GPL-2 )"
88 SLOT="0"
89 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
90 IUSE="caps debug doc examples gdbm maildir pcre static unicode"
91
92 RDEPEND=">=sys-libs/ncurses-5.1
93 caps? ( sys-libs/libcap )
94 pcre? ( >=dev-libs/libpcre-3.9
95 static? ( >=dev-libs/libpcre-3.9[static-libs] ) )
96 gdbm? ( sys-libs/gdbm )"
97 DEPEND="|| ( sys-apps/groff app-doc/heirloom-doctools )
98 ${RDEPEND}"
99
100 src_prepare() {
101 # fix zshall problem with soelim
102 ln -s Doc man1
103 mv Doc/zshall.1 Doc/zshall.1.soelim
104 soelim Doc/zshall.1.soelim > Doc/zshall.1
105
106 epatch "${FILESDIR}/${PN}"-init.d-gentoo.diff
107 }
108
109 src_configure() {
110 local myconf=
111
112 if use static ; then
113 myconf="${myconf} --disable-dynamic"
114 append-ldflags -static
115 fi
116 if use debug ; then
117 myconf="${myconf} \
118 --enable-zsh-debug \
119 --enable-zsh-mem-debug \
120 --enable-zsh-mem-warning \
121 --enable-zsh-secure-free \
122 --enable-zsh-hash-debug"
123 fi
124
125 econf \
126 --bindir=/bin \
127 --libdir=/usr/$(get_libdir) \
128 --enable-etcdir=/etc/zsh \
129 --enable-fndir=/usr/share/zsh/${PV%_*}/functions \
130 --enable-site-fndir=/usr/share/zsh/site-functions \
131 --enable-function-subdirs \
132 --with-term-lib="ncursesw ncurses" \
133 --with-tcsetpgrp \
134 $(use_enable maildir maildir-support) \
135 $(use_enable pcre) \
136 $(use_enable caps cap) \
137 $(use_enable unicode multibyte) \
138 $(use_enable gdbm ) \
139 ${myconf}
140
141 if use static ; then
142 # compile all modules statically, see Bug #27392
143 # removed cap and curses because linking failes
144 sed -i \
145 -e "s,link=no,link=static,g" \
146 -e "/^name=zsh\/cap/s,link=static,link=no," \
147 -e "/^name=zsh\/curses/s,link=static,link=no," \
148 "${S}"/config.modules || die
149 if ! use gdbm ; then
150 sed -i '/^name=zsh\/db\/gdbm/s,link=static,link=no,' \
151 "${S}"/config.modules || die
152 fi
153 # else
154 # sed -i -e "/LIBS/s%-lpcre%/usr/$(get_libdir)/libpcre.a%" Makefile
155 fi
156 }
157
158 src_test() {
159 local i
160 addpredict /dev/ptmx
161 for i in C02cond.ztst Y01completion.ztst Y02compmatch.ztst Y03arguments.ztst ; do
162 rm "${S}"/Test/${i} || die
163 done
164 make check || die "make check failed"
165 }
166
167 src_install() {
168 emake DESTDIR="${D}" install install.info || die
169
170 insinto /etc/zsh
171 doins "${FILESDIR}"/zprofile || die
172
173 keepdir /usr/share/zsh/site-functions
174 insinto /usr/share/zsh/${PV%_*}/functions/Prompts
175 newins "${FILESDIR}"/prompt_gentoo_setup-1 prompt_gentoo_setup || die
176
177 # install miscellaneous scripts; bug #54520
178 local i
179 sed -i -e "s:/usr/local:/usr:g" "${S}"/{Util,Misc}/* || die
180 for i in Util Misc ; do
181 insinto /usr/share/zsh/${PV%_*}/${i}
182 doins ${i}/* || die
183 done
184
185 dodoc ChangeLog* META-FAQ NEWS README config.modules
186
187 if use doc ; then
188 pushd "${WORKDIR}/${PN}-${PV%_*}" >/dev/null
189 dohtml -r Doc/* || die
190 insinto /usr/share/doc/${PF}
191 doins Doc/zsh.{dvi,pdf} || die
192 popd >/dev/null
193 fi
194
195 if use examples ; then
196 pushd "${WORKDIR}/${LOVERS_P/.orig/}" >/dev/null
197 # asciidoc zsh-lovers.1.txt
198 # mv zsh-lovers.1.html zsh-lovers.html
199 # a2x -f manpage zsh-lovers.1.txt
200 # a2x -f pdf zsh-lovers.1.txt
201 # mv zsh-lovers.1.pdf zsh-lovers.pdf
202
203 doman zsh-lovers.1 || die "doman zsh-lovers failed"
204 dohtml zsh-lovers.html || die "dohtml zsh-lovers failed"
205 docinto zsh-lovers
206 dodoc zsh.vim README || die
207 insinto /usr/share/doc/${PF}/zsh-lovers
208 # doins zsh-lovers.pdf refcard.pdf || die
209 doins zsh-lovers.{ps,pdf} refcard.{dvi,ps,pdf} || die
210 doins -r zsh_people || die "doins zsh_people failed"
211 popd >/dev/null
212 fi
213
214 docinto StartupFiles
215 dodoc StartupFiles/z*
216 }
217
218 pkg_postinst() {
219 # should link to http://www.gentoo.org/doc/en/zsh.xml
220 elog
221 elog "If you want to enable Portage completions and Gentoo prompt,"
222 elog "emerge app-shells/zsh-completion and add"
223 elog " autoload -U compinit promptinit"
224 elog " compinit"
225 elog " promptinit; prompt gentoo"
226 elog "to your ~/.zshrc"
227 elog
228 elog "Also, if you want to enable cache for the completions, add"
229 elog " zstyle ':completion::complete:*' use-cache 1"
230 elog "to your ~/.zshrc"
231 elog
232 }