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