1 |
tove 11/06/01 18:11:30 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: zsh-4.3.12.ebuild |
5 |
Log: |
6 |
Version bump. Move the zsh-lovers examples to app-doc/zsh-lovers |
7 |
|
8 |
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.169 app-shells/zsh/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/ChangeLog?rev=1.169&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/ChangeLog?rev=1.169&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/ChangeLog?r1=1.168&r2=1.169 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v |
20 |
retrieving revision 1.168 |
21 |
retrieving revision 1.169 |
22 |
diff -u -r1.168 -r1.169 |
23 |
--- ChangeLog 24 Mar 2011 18:29:18 -0000 1.168 |
24 |
+++ ChangeLog 1 Jun 2011 18:11:30 -0000 1.169 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-shells/zsh |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.168 2011/03/24 18:29:18 xarthisius Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.169 2011/06/01 18:11:30 tove Exp $ |
30 |
+ |
31 |
+*zsh-4.3.12 (01 Jun 2011) |
32 |
+ |
33 |
+ 01 Jun 2011; Torsten Veller <tove@g.o> +zsh-4.3.12.ebuild: |
34 |
+ Version bump. Move the zsh-lovers examples to app-doc/zsh-lovers |
35 |
|
36 |
24 Mar 2011; Kacper Kowalik <xarthisius@g.o> zsh-4.3.11-r1.ebuild: |
37 |
ppc/ppc64 stable wrt #356545 |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-shells/zsh/zsh-4.3.12.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/zsh-4.3.12.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/zsh-4.3.12.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: zsh-4.3.12.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 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.12.ebuild,v 1.1 2011/06/01 18:11:30 tove Exp $ |
51 |
|
52 |
EAPI=4 |
53 |
|
54 |
# doc package for -dev version exists? |
55 |
doc_available=true |
56 |
|
57 |
inherit eutils flag-o-matic multilib prefix |
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 |
DESCRIPTION="UNIX Shell similar to the Korn shell" |
78 |
HOMEPAGE="http://www.zsh.org/" |
79 |
SRC_URI="${ZSH_URI} |
80 |
doc? ( ${ZSH_DOC_URI} )" |
81 |
|
82 |
LICENSE="ZSH gdbm? ( GPL-2 )" |
83 |
SLOT="0" |
84 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
85 |
IUSE="caps debug doc examples gdbm maildir pcre static unicode" |
86 |
|
87 |
RDEPEND=" |
88 |
>=sys-libs/ncurses-5.1 |
89 |
static? ( || ( >=sys-libs/ncurses-5.7-r4[static-libs] <sys-libs/ncurses-5.7-r4 ) ) |
90 |
caps? ( sys-libs/libcap ) |
91 |
pcre? ( >=dev-libs/libpcre-3.9 |
92 |
static? ( >=dev-libs/libpcre-3.9[static-libs] ) ) |
93 |
gdbm? ( sys-libs/gdbm ) |
94 |
" |
95 |
DEPEND="sys-apps/groff |
96 |
${RDEPEND}" |
97 |
PDEPEND=" |
98 |
examples? ( app-doc/zsh-lovers ) |
99 |
" |
100 |
|
101 |
src_prepare() { |
102 |
# fix zshall problem with soelim |
103 |
ln -s Doc man1 |
104 |
mv Doc/zshall.1 Doc/zshall.1.soelim |
105 |
soelim Doc/zshall.1.soelim > Doc/zshall.1 |
106 |
|
107 |
epatch "${FILESDIR}/${PN}"-init.d-gentoo-r1.diff |
108 |
|
109 |
cp "${FILESDIR}"/zprofile-1 "${T}"/zprofile || die |
110 |
eprefixify "${T}"/zprofile || die |
111 |
if use prefix ; then |
112 |
sed -i -e 's|@ZSH_PREFIX@||' -e '/@ZSH_NOPREFIX@/d' "${T}"/zprofile || die |
113 |
else |
114 |
sed -i -e 's|@ZSH_NOPREFIX@||' -e '/@ZSH_PREFIX@/d' -e 's|""||' "${T}"/zprofile || die |
115 |
fi |
116 |
} |
117 |
|
118 |
src_configure() { |
119 |
local myconf= |
120 |
|
121 |
if use static ; then |
122 |
myconf+=" --disable-dynamic" |
123 |
append-ldflags -static |
124 |
fi |
125 |
if use debug ; then |
126 |
myconf+=" \ |
127 |
--enable-zsh-debug \ |
128 |
--enable-zsh-mem-debug \ |
129 |
--enable-zsh-mem-warning \ |
130 |
--enable-zsh-secure-free \ |
131 |
--enable-zsh-hash-debug" |
132 |
fi |
133 |
|
134 |
if [[ ${CHOST} == *-darwin* ]]; then |
135 |
myconf+=" --enable-libs=-liconv" |
136 |
append-ldflags -Wl,-x |
137 |
fi |
138 |
|
139 |
econf \ |
140 |
--bindir="${EPREFIX}"/bin \ |
141 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
142 |
--enable-etcdir="${EPREFIX}"/etc/zsh \ |
143 |
--enable-fndir="${EPREFIX}"/usr/share/zsh/${PV%_*}/functions \ |
144 |
--enable-site-fndir="${EPREFIX}"/usr/share/zsh/site-functions \ |
145 |
--enable-function-subdirs \ |
146 |
--with-term-lib="ncursesw ncurses" \ |
147 |
--with-tcsetpgrp \ |
148 |
$(use_enable maildir maildir-support) \ |
149 |
$(use_enable pcre) \ |
150 |
$(use_enable caps cap) \ |
151 |
$(use_enable unicode multibyte) \ |
152 |
$(use_enable gdbm ) \ |
153 |
${myconf} |
154 |
|
155 |
if use static ; then |
156 |
# compile all modules statically, see Bug #27392 |
157 |
# removed cap and curses because linking failes |
158 |
sed -i \ |
159 |
-e "s,link=no,link=static,g" \ |
160 |
-e "/^name=zsh\/cap/s,link=static,link=no," \ |
161 |
-e "/^name=zsh\/curses/s,link=static,link=no," \ |
162 |
"${S}"/config.modules || die |
163 |
if ! use gdbm ; then |
164 |
sed -i '/^name=zsh\/db\/gdbm/s,link=static,link=no,' \ |
165 |
"${S}"/config.modules || die |
166 |
fi |
167 |
# else |
168 |
# sed -i -e "/LIBS/s%-lpcre%${EPREFIX}/usr/$(get_libdir)/libpcre.a%" Makefile |
169 |
fi |
170 |
} |
171 |
|
172 |
src_test() { |
173 |
local i |
174 |
addpredict /dev/ptmx |
175 |
for i in C02cond.ztst Y01completion.ztst Y02compmatch.ztst Y03arguments.ztst ; do |
176 |
rm "${S}"/Test/${i} || die |
177 |
done |
178 |
emake check |
179 |
} |
180 |
|
181 |
src_install() { |
182 |
emake DESTDIR="${D}" install install.info |
183 |
|
184 |
insinto /etc/zsh |
185 |
doins "${T}"/zprofile |
186 |
|
187 |
keepdir /usr/share/zsh/site-functions |
188 |
insinto /usr/share/zsh/${PV%_*}/functions/Prompts |
189 |
newins "${FILESDIR}"/prompt_gentoo_setup-1 prompt_gentoo_setup |
190 |
|
191 |
# install miscellaneous scripts; bug #54520 |
192 |
local i |
193 |
sed -i -e "s:/usr/local/bin/perl:${EPREFIX}/usr/bin/perl:g" \ |
194 |
-e "s:/usr/local/bin/zsh:${EPREFIX}/bin/zsh:g" "${S}"/{Util,Misc}/* || die |
195 |
for i in Util Misc ; do |
196 |
insinto /usr/share/zsh/${PV%_*}/${i} |
197 |
doins ${i}/* |
198 |
done |
199 |
|
200 |
dodoc ChangeLog* META-FAQ NEWS README config.modules |
201 |
|
202 |
if use doc ; then |
203 |
pushd "${WORKDIR}/${PN}-${PV%_*}" >/dev/null |
204 |
dohtml -r Doc/* |
205 |
insinto /usr/share/doc/${PF} |
206 |
doins Doc/zsh.{dvi,pdf} |
207 |
popd >/dev/null |
208 |
fi |
209 |
|
210 |
docinto StartupFiles |
211 |
dodoc StartupFiles/z* |
212 |
} |
213 |
|
214 |
pkg_postinst() { |
215 |
# should link to http://www.gentoo.org/doc/en/zsh.xml |
216 |
elog |
217 |
elog "If you want to enable Portage completions and Gentoo prompt," |
218 |
elog "emerge app-shells/zsh-completion and add" |
219 |
elog " autoload -U compinit promptinit" |
220 |
elog " compinit" |
221 |
elog " promptinit; prompt gentoo" |
222 |
elog "to your ~/.zshrc" |
223 |
elog |
224 |
elog "Also, if you want to enable cache for the completions, add" |
225 |
elog " zstyle ':completion::complete:*' use-cache 1" |
226 |
elog "to your ~/.zshrc" |
227 |
elog |
228 |
} |