Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-shells/zsh: ChangeLog zsh-5.0.6.ebuild
Date: Thu, 28 Aug 2014 20:02:18
Message-Id: 20140828200214.5B2A841C7@oystercatcher.gentoo.org
1 radhermit 14/08/28 20:02:14
2
3 Modified: ChangeLog
4 Added: zsh-5.0.6.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 4F064CA3)
9
10 Revision Changes Path
11 1.241 app-shells/zsh/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/ChangeLog?rev=1.241&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/ChangeLog?rev=1.241&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/ChangeLog?r1=1.240&r2=1.241
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v
20 retrieving revision 1.240
21 retrieving revision 1.241
22 diff -u -r1.240 -r1.241
23 --- ChangeLog 13 Aug 2014 09:24:01 -0000 1.240
24 +++ ChangeLog 28 Aug 2014 20:02:14 -0000 1.241
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-shells/zsh
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.240 2014/08/13 09:24:01 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.241 2014/08/28 20:02:14 radhermit Exp $
30 +
31 +*zsh-5.0.6 (28 Aug 2014)
32 +
33 + 28 Aug 2014; Tim Harder <radhermit@g.o> +zsh-5.0.6.ebuild:
34 + Version bump.
35
36 13 Aug 2014; Agostino Sarubbo <ago@g.o> zsh-5.0.5.ebuild:
37 Stable for ppc, wrt bug #505590
38
39
40
41 1.1 app-shells/zsh/zsh-5.0.6.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/zsh-5.0.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/zsh-5.0.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: zsh-5.0.6.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-5.0.6.ebuild,v 1.1 2014/08/28 20:02:14 radhermit Exp $
51
52 EAPI=5
53
54 inherit eutils flag-o-matic multilib prefix
55
56 DESCRIPTION="UNIX Shell similar to the Korn shell"
57 HOMEPAGE="http://www.zsh.org/"
58 SRC_URI="http://www.zsh.org/pub/${P}.tar.bz2
59 doc? ( http://www.zsh.org/pub/${P}-doc.tar.bz2 )"
60
61 LICENSE="ZSH gdbm? ( GPL-2 )"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~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"
64 IUSE="caps debug doc examples gdbm maildir pcre static unicode"
65
66 RDEPEND="
67 >=sys-libs/ncurses-5.1
68 static? ( >=sys-libs/ncurses-5.7-r4[static-libs] )
69 caps? ( sys-libs/libcap )
70 pcre? ( >=dev-libs/libpcre-3.9
71 static? ( >=dev-libs/libpcre-3.9[static-libs] ) )
72 gdbm? ( sys-libs/gdbm )
73 "
74 DEPEND="sys-apps/groff
75 ${RDEPEND}"
76 PDEPEND="
77 examples? ( app-doc/zsh-lovers )
78 "
79
80 src_prepare() {
81 # fix zshall problem with soelim
82 ln -s Doc man1
83 mv Doc/zshall.1 Doc/zshall.1.soelim
84 soelim Doc/zshall.1.soelim > Doc/zshall.1
85
86 epatch "${FILESDIR}"/${PN}-init.d-gentoo-r1.diff
87
88 cp "${FILESDIR}"/zprofile-1 "${T}"/zprofile || die
89 eprefixify "${T}"/zprofile || die
90 if use prefix ; then
91 sed -i -e 's|@ZSH_PREFIX@||' -e '/@ZSH_NOPREFIX@/d' "${T}"/zprofile || die
92 else
93 sed -i -e 's|@ZSH_NOPREFIX@||' -e '/@ZSH_PREFIX@/d' -e 's|""||' "${T}"/zprofile || die
94 fi
95 }
96
97 src_configure() {
98 local myconf=
99
100 if use static ; then
101 myconf+=" --disable-dynamic"
102 append-ldflags -static
103 fi
104 if use debug ; then
105 myconf+=" \
106 --enable-zsh-debug \
107 --enable-zsh-mem-debug \
108 --enable-zsh-mem-warning \
109 --enable-zsh-secure-free \
110 --enable-zsh-hash-debug"
111 fi
112
113 if [[ ${CHOST} == *-darwin* ]]; then
114 myconf+=" --enable-libs=-liconv"
115 append-ldflags -Wl,-x
116 fi
117
118 econf \
119 --bindir="${EPREFIX}"/bin \
120 --libdir="${EPREFIX}"/usr/$(get_libdir) \
121 --enable-etcdir="${EPREFIX}"/etc/zsh \
122 --enable-runhelpdir="${EPREFIX}"/usr/share/zsh/${PV%_*}/help \
123 --enable-fndir="${EPREFIX}"/usr/share/zsh/${PV%_*}/functions \
124 --enable-site-fndir="${EPREFIX}"/usr/share/zsh/site-functions \
125 --enable-function-subdirs \
126 --with-tcsetpgrp \
127 $(use_enable maildir maildir-support) \
128 $(use_enable pcre) \
129 $(use_enable caps cap) \
130 $(use_enable unicode multibyte) \
131 $(use_enable gdbm ) \
132 ${myconf}
133
134 if use static ; then
135 # compile all modules statically, see Bug #27392
136 # removed cap and curses because linking failes
137 sed -i \
138 -e "s,link=no,link=static,g" \
139 -e "/^name=zsh\/cap/s,link=static,link=no," \
140 -e "/^name=zsh\/curses/s,link=static,link=no," \
141 "${S}"/config.modules || die
142 if ! use gdbm ; then
143 sed -i '/^name=zsh\/db\/gdbm/s,link=static,link=no,' \
144 "${S}"/config.modules || die
145 fi
146 fi
147 }
148
149 src_test() {
150 addpredict /dev/ptmx
151 local i
152 for i in C02cond.ztst V08zpty.ztst X02zlevi.ztst Y01completion.ztst Y02compmatch.ztst Y03arguments.ztst ; do
153 rm "${S}"/Test/${i} || die
154 done
155 emake check
156 }
157
158 src_install() {
159 emake DESTDIR="${D}" install install.info
160
161 insinto /etc/zsh
162 doins "${T}"/zprofile
163
164 keepdir /usr/share/zsh/site-functions
165 insinto /usr/share/zsh/${PV%_*}/functions/Prompts
166 newins "${FILESDIR}"/prompt_gentoo_setup-1 prompt_gentoo_setup
167
168 # install miscellaneous scripts; bug #54520
169 local i
170 sed -i -e "s:/usr/local/bin/perl:${EPREFIX}/usr/bin/perl:g" \
171 -e "s:/usr/local/bin/zsh:${EPREFIX}/bin/zsh:g" "${S}"/{Util,Misc}/* || die
172 for i in Util Misc ; do
173 insinto /usr/share/zsh/${PV%_*}/${i}
174 doins ${i}/*
175 done
176
177 dodoc ChangeLog* META-FAQ NEWS README config.modules
178
179 if use doc ; then
180 pushd "${WORKDIR}/${PN}-${PV%_*}" >/dev/null
181 dohtml -r Doc/*
182 insinto /usr/share/doc/${PF}
183 doins Doc/zsh.{dvi,pdf}
184 popd >/dev/null
185 fi
186
187 docinto StartupFiles
188 dodoc StartupFiles/z*
189 }
190
191 pkg_postinst() {
192 if [[ -z ${REPLACING_VERSIONS} ]] ; then
193 # should link to http://www.gentoo.org/doc/en/zsh.xml
194 echo
195 elog "If you want to enable Portage completions and Gentoo prompt,"
196 elog "emerge app-shells/zsh-completion and add"
197 elog " autoload -U compinit promptinit"
198 elog " compinit"
199 elog " promptinit; prompt gentoo"
200 elog "to your ~/.zshrc"
201 echo
202 elog "Also, if you want to enable cache for the completions, add"
203 elog " zstyle ':completion::complete:*' use-cache 1"
204 elog "to your ~/.zshrc"
205 echo
206 elog "Note that a system zprofile startup file is installed. This will override"
207 elog "PATH and possibly other variables that a user may set in ~/.zshenv."
208 elog "Custom PATH settings and similar overridden variables can be moved to ~/.zprofile"
209 elog "or other user startup files that are sourced after the system zprofile."
210 echo
211 elog "If PATH must be set in ~/.zshenv to affect things like non-login ssh shells,"
212 elog "one method is to use a separate path-setting file that is conditionally sourced"
213 elog "in ~/.zshenv and also sourced from ~/.zprofile. For more information, see the"
214 elog "zshenv example in ${EROOT}/usr/share/doc/${PF}/StartupFiles/."
215 echo
216 fi
217 }