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.4.ebuild
Date: Mon, 23 Dec 2013 06:09:41
Message-Id: 20131223060933.01D282004C@flycatcher.gentoo.org
1 radhermit 13/12/23 06:09:32
2
3 Modified: ChangeLog
4 Added: zsh-5.0.4.ebuild
5 Log:
6 Version bump (bug #494786), add support for run-help data (bug #431402), and skip zpty tests that require LEGACY_PTYS enabled on Linux.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
9
10 Revision Changes Path
11 1.229 app-shells/zsh/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/ChangeLog?rev=1.229&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/ChangeLog?rev=1.229&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/ChangeLog?r1=1.228&r2=1.229
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v
20 retrieving revision 1.228
21 retrieving revision 1.229
22 diff -u -r1.228 -r1.229
23 --- ChangeLog 11 Sep 2013 07:54:56 -0000 1.228
24 +++ ChangeLog 23 Dec 2013 06:09:32 -0000 1.229
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-shells/zsh
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.228 2013/09/11 07:54:56 radhermit Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.229 2013/12/23 06:09:32 radhermit Exp $
30 +
31 +*zsh-5.0.4 (23 Dec 2013)
32 +
33 + 23 Dec 2013; Tim Harder <radhermit@g.o> +zsh-5.0.4.ebuild:
34 + Version bump (bug #494786), add support for run-help data (bug #431402), and
35 + skip zpty tests that require LEGACY_PTYS enabled on Linux.
36
37 11 Sep 2013; Tim Harder <radhermit@g.o> -zsh-5.0.2.ebuild:
38 Remove old.
39
40
41
42 1.1 app-shells/zsh/zsh-5.0.4.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/zsh-5.0.4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/zsh/zsh-5.0.4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: zsh-5.0.4.ebuild
48 ===================================================================
49 # Copyright 1999-2013 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.4.ebuild,v 1.1 2013/12/23 06:09:32 radhermit 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 ~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
89 cp "${FILESDIR}"/zprofile-1 "${T}"/zprofile || die
90 eprefixify "${T}"/zprofile || die
91 if use prefix ; then
92 sed -i -e 's|@ZSH_PREFIX@||' -e '/@ZSH_NOPREFIX@/d' "${T}"/zprofile || die
93 else
94 sed -i -e 's|@ZSH_NOPREFIX@||' -e '/@ZSH_PREFIX@/d' -e 's|""||' "${T}"/zprofile || die
95 fi
96 }
97
98 src_configure() {
99 local myconf=
100
101 if use static ; then
102 myconf+=" --disable-dynamic"
103 append-ldflags -static
104 fi
105 if use debug ; then
106 myconf+=" \
107 --enable-zsh-debug \
108 --enable-zsh-mem-debug \
109 --enable-zsh-mem-warning \
110 --enable-zsh-secure-free \
111 --enable-zsh-hash-debug"
112 fi
113
114 if [[ ${CHOST} == *-darwin* ]]; then
115 myconf+=" --enable-libs=-liconv"
116 append-ldflags -Wl,-x
117 fi
118
119 econf \
120 --bindir="${EPREFIX}"/bin \
121 --libdir="${EPREFIX}"/usr/$(get_libdir) \
122 --enable-etcdir="${EPREFIX}"/etc/zsh \
123 --enable-runhelpdir="${EPREFIX}"/usr/share/zsh/${PV%_*}/help \
124 --enable-fndir="${EPREFIX}"/usr/share/zsh/${PV%_*}/functions \
125 --enable-site-fndir="${EPREFIX}"/usr/share/zsh/site-functions \
126 --enable-function-subdirs \
127 --with-term-lib="ncursesw ncurses" \
128 --with-tcsetpgrp \
129 $(use_enable maildir maildir-support) \
130 $(use_enable pcre) \
131 $(use_enable caps cap) \
132 $(use_enable unicode multibyte) \
133 $(use_enable gdbm ) \
134 ${myconf}
135
136 if use static ; then
137 # compile all modules statically, see Bug #27392
138 # removed cap and curses because linking failes
139 sed -i \
140 -e "s,link=no,link=static,g" \
141 -e "/^name=zsh\/cap/s,link=static,link=no," \
142 -e "/^name=zsh\/curses/s,link=static,link=no," \
143 "${S}"/config.modules || die
144 if ! use gdbm ; then
145 sed -i '/^name=zsh\/db\/gdbm/s,link=static,link=no,' \
146 "${S}"/config.modules || die
147 fi
148 fi
149 }
150
151 src_test() {
152 addpredict /dev/ptmx
153 local i
154 for i in C02cond.ztst V08zpty.ztst X02zlevi.ztst Y01completion.ztst Y02compmatch.ztst Y03arguments.ztst ; do
155 rm "${S}"/Test/${i} || die
156 done
157 emake check
158 }
159
160 src_install() {
161 emake DESTDIR="${D}" install install.info
162
163 insinto /etc/zsh
164 doins "${T}"/zprofile
165
166 keepdir /usr/share/zsh/site-functions
167 insinto /usr/share/zsh/${PV%_*}/functions/Prompts
168 newins "${FILESDIR}"/prompt_gentoo_setup-1 prompt_gentoo_setup
169
170 # install miscellaneous scripts; bug #54520
171 local i
172 sed -i -e "s:/usr/local/bin/perl:${EPREFIX}/usr/bin/perl:g" \
173 -e "s:/usr/local/bin/zsh:${EPREFIX}/bin/zsh:g" "${S}"/{Util,Misc}/* || die
174 for i in Util Misc ; do
175 insinto /usr/share/zsh/${PV%_*}/${i}
176 doins ${i}/*
177 done
178
179 dodoc ChangeLog* META-FAQ NEWS README config.modules
180
181 if use doc ; then
182 pushd "${WORKDIR}/${PN}-${PV%_*}" >/dev/null
183 dohtml -r Doc/*
184 insinto /usr/share/doc/${PF}
185 doins Doc/zsh.{dvi,pdf}
186 popd >/dev/null
187 fi
188
189 docinto StartupFiles
190 dodoc StartupFiles/z*
191 }
192
193 pkg_postinst() {
194 if [[ -z ${REPLACING_VERSIONS} ]] ; then
195 # should link to http://www.gentoo.org/doc/en/zsh.xml
196 echo
197 elog "If you want to enable Portage completions and Gentoo prompt,"
198 elog "emerge app-shells/zsh-completion and add"
199 elog " autoload -U compinit promptinit"
200 elog " compinit"
201 elog " promptinit; prompt gentoo"
202 elog "to your ~/.zshrc"
203 echo
204 elog "Also, if you want to enable cache for the completions, add"
205 elog " zstyle ':completion::complete:*' use-cache 1"
206 elog "to your ~/.zshrc"
207 echo
208 elog "Note that a system zprofile startup file is installed. This will override"
209 elog "PATH and possibly other variables that a user may set in ~/.zshenv."
210 elog "Custom PATH settings and similar overridden variables can be moved to ~/.zprofile"
211 elog "or other user startup files that are sourced after the system zprofile."
212 echo
213 elog "If PATH must be set in ~/.zshenv to affect things like non-login ssh shells,"
214 elog "one method is to use a separate path-setting file that is conditionally sourced"
215 elog "in ~/.zshenv and also sourced from ~/.zprofile. For more information, see the"
216 elog "zshenv example in ${EROOT}/usr/share/doc/${PF}/StartupFiles/."
217 echo
218 fi
219 }