Gentoo Archives: gentoo-commits

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