diff options
author | 2014-10-17 05:29:14 +0000 | |
---|---|---|
committer | 2014-10-17 05:29:14 +0000 | |
commit | c7251b4088f6ed12b84a6ef116a1bf42f16ef65a (patch) | |
tree | 93b80dfcf35a608ffaf7a09e519870f5a885e466 /app-shells/zsh | |
parent | Fix HOMEPAGE for bug #525568 (thanks to Marcin Mirosław), and use dobin inst... (diff) | |
download | historical-c7251b4088f6ed12b84a6ef116a1bf42f16ef65a.tar.gz historical-c7251b4088f6ed12b84a6ef116a1bf42f16ef65a.tar.bz2 historical-c7251b4088f6ed12b84a6ef116a1bf42f16ef65a.zip |
Add live ebuild.
Package-Manager: portage-2.2.12/cvs/Linux x86_64
Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'app-shells/zsh')
-rw-r--r-- | app-shells/zsh/ChangeLog | 7 | ||||
-rw-r--r-- | app-shells/zsh/Manifest | 17 | ||||
-rw-r--r-- | app-shells/zsh/zsh-9999.ebuild | 197 |
3 files changed, 212 insertions, 9 deletions
diff --git a/app-shells/zsh/ChangeLog b/app-shells/zsh/ChangeLog index f4880526e40a..534a0867d483 100644 --- a/app-shells/zsh/ChangeLog +++ b/app-shells/zsh/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-shells/zsh # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.244 2014/10/09 16:41:56 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.245 2014/10/17 05:29:12 radhermit Exp $ + +*zsh-9999 (17 Oct 2014) + + 17 Oct 2014; Tim Harder <radhermit@gentoo.org> +zsh-9999.ebuild: + Add live ebuild. *zsh-5.0.7-r1 (09 Oct 2014) diff --git a/app-shells/zsh/Manifest b/app-shells/zsh/Manifest index fc27fb73646a..8d98f323665b 100644 --- a/app-shells/zsh/Manifest +++ b/app-shells/zsh/Manifest @@ -23,16 +23,17 @@ EBUILD zsh-5.0.5.ebuild 5168 SHA256 6cd373d61223a0a6702c50fb5c72d16337e1efef7a38 EBUILD zsh-5.0.6.ebuild 5178 SHA256 29aa56e2c90eaa74ce80ac0d1c99e71b557d99cf979205544dcafde44f050f87 SHA512 e08415ebc9fe66ed6e853c9bc0cb0cb813a2ed1ca219f7492dab20e93397412ee1a6e98a68ccdf3c372c8bd5c8cff95336d9dbd172f0ead50829ef5efe53e9ee WHIRLPOOL d28f2036c564ccd6cb9fdc8c2c833ce03ae99177abc2595cd64f270ac0d80bd02862e7a3d06744556bd3a9817565ce98275f7c40e11673ae38c907710ebe9cd1 EBUILD zsh-5.0.7-r1.ebuild 5256 SHA256 f256d2e2825400b6299b05e2ea7dcd3faf6ab9594a5c0b1dc2caa44d470da674 SHA512 7b992215344184c01db633d54753955923a6bf3fda44bc99d45154cfded7f4c08ded7df2412bc070bbc2acd66ab85bd9215a173ec45f3c25c665e99c0aa87b46 WHIRLPOOL 0536ec298c8301f841463487f4d6eed5de4440f204b9c42fb1aac3ae81220f73d11cf194a07f584b5dc05fc02237a6336586dc7c706295412ca93c1781a52045 EBUILD zsh-5.0.7.ebuild 5178 SHA256 e4a8c5d69ca90949436722479a4d3d7daae79b4645cdd49655109730a4554450 SHA512 7f7f235145219b8d8a66e012afcf3469a99e98fc4225c62917e26e642909b65b8173c454f369b8bf4d0dfaaafae03c67d415652740a194c14ca93853d2101c46 WHIRLPOOL bbdaa7ebda6ebb23d6f16351180b984aa242510fca95c50947f8ec491a72251fd571595e6153b0e925da46a1ec61fa6437e6d872877120a4542d0a5acfb0f902 -MISC ChangeLog 33794 SHA256 5786e6129303cde7e039753e2a0309b2251151204aeeb94c0098c7587000d83b SHA512 91208420196258f20724a4aba8dd1aedaaeab778178de7d24184a57f881d36e7899fc03e7f60a6ebbce01066e1ed7adf29043a11d0774c3c3a8011cd5a6921bf WHIRLPOOL 9117359b53c9bd98efb5f38c970f44f32031b9e6119d2c493dd23adecb26f4f68463428225ba7761dc71bdf813fac87971045de6b8e527c5cc9f1262e7d0cb16 +EBUILD zsh-9999.ebuild 5645 SHA256 f7bfecdf8eeb511820bc985f3fcddd124fab7aeacb2b020dffdb47c3ed53a0b1 SHA512 f498a6619eba10c79fced9fc30b6f9301b4ff4c6c5a3ce82dde8e301ff93d383bae411ccec0cab8ff34360b25d52719492224ae5896f7b876cac8c8ddb3446f3 WHIRLPOOL 3e8b72db112ef999f2c8314aba21089dc079f71bea2bdc343ed263b271de4928156c1b3bb8bf886dae91e866e3e952fab2094be400094fcbeb6ef51fb8c69657 +MISC ChangeLog 33906 SHA256 4a2a9937bea60e8ca510534877fe912bdd2d0d03e1893069bd636bd3accfcee9 SHA512 7eae424c9f4eb61075dff2a8167f7c61a211105f723ad13c08b479331a720cf8a5c1da831850240803a02663ddc753db9220f2e26cf485ec588eb70c64919897 WHIRLPOOL b8ddac50f48e62390efc37e04a45e809071dbe528c5b1acdccd1d65038a227d5fe03f6e791b244d63ae7789b146002715db580394b9081ce294d847b821e47c2 MISC metadata.xml 485 SHA256 84d741251360af7179bf3a275080446750e3e360b4f48937b8a623ccd7602c12 SHA512 e702b9c921b24b7303e0936fe6370f901173e1bfa9bc91bacc747c69dda8205ab785f77088e6d9ea357b4863bb56b17bbe787ddc33290c1b7561764b0856cf6e WHIRLPOOL 3abceaebe3c2ec65bcfccfe040bb7693a5100d604d247bb252ce8d670fd5eb4229ea1ae24ae3b4d3ef8d1cd4eb5d8e64063ebb019b83a021c20f47283c039a94 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQEcBAEBCAAGBQJUNrr1AAoJEEqz6FtPBkyjTogH/RKtctLAwfj5zqK5Qyf7U4g6 -7BLcAAqEdrIhgJv7KEwtu8goq9jzRRwUe12nX1EP4Oh3CpzRl7eDMkz31O8WS5V/ -k+TMK+I/0jN0jP3b78VQdb4KyOx3JRceC7FHqTVNf8VPIzwGYGTopKTq0NAajLc5 -V76QtVR249IwLzpCHn+MYza/feQ764zvhJLypuxaME6MZENWy6Dw3YWIavvzoMq2 -2q09NXZU9bsmtGupvoxftmkRNfGWWdxzEwGBM50cyVNas3GW0Py+hHzE6r/Cv/ZX -2VF+0ar0/UkOwMviy6Ip0wz9+SplxvKYVfrHbdt7O+/cxztdqoK/5gts8LuPCYU= -=8X2c +iQEcBAEBCAAGBQJUQKkqAAoJEEqz6FtPBkyjGyUIAJE7dUib3ZDVovBh6NceJX+J +1vrGcA7a1dHAOMuvfIfL7ug+OtYp5WzY2dcV+6yQBjDSADiTEMLhmMQ/5GXS1lT2 +2QfOV21A7jTioKExeWUw94BEWiuFEfWi3aVo1rBo5ks16Z/cAsfc6vwqNF7dDftu +wUuEY7umz0wqsbuDHIuLoZujoPQBMlClKwZz27sFeHUWT65mJ/051w21X5H4KaS+ +36hM00lyFLbIwRTs2PC+Qk7bZNQLiLUvI6lpuMizkanm475u7RhQEUP87iCjemUS +vDZ/90OWkI52OBuj9GiDK5nZqWY5Ayzh2ngTjktmx14uBh43hBO0oH8e16Lm5gc= +=bUf3 -----END PGP SIGNATURE----- diff --git a/app-shells/zsh/zsh-9999.ebuild b/app-shells/zsh/zsh-9999.ebuild new file mode 100644 index 000000000000..a2344d9d588d --- /dev/null +++ b/app-shells/zsh/zsh-9999.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-9999.ebuild,v 1.1 2014/10/17 05:29:12 radhermit Exp $ + +EAPI=5 + +inherit eutils flag-o-matic multilib prefix + +if [[ ${PV} == 9999* ]] ; then + inherit git-r3 autotools + EGIT_REPO_URI="git://git.code.sf.net/p/zsh/code" +else + 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" + SRC_URI="http://www.zsh.org/pub/${P}.tar.bz2 + doc? ( http://www.zsh.org/pub/${P}-doc.tar.bz2 )" +fi + +DESCRIPTION="UNIX Shell similar to the Korn shell" +HOMEPAGE="http://www.zsh.org/" + +LICENSE="ZSH gdbm? ( GPL-2 )" +SLOT="0" +IUSE="caps debug doc examples gdbm maildir pcre static unicode" + +RDEPEND=" + >=sys-libs/ncurses-5.1 + static? ( >=sys-libs/ncurses-5.7-r4[static-libs] ) + caps? ( sys-libs/libcap ) + pcre? ( >=dev-libs/libpcre-3.9 + static? ( >=dev-libs/libpcre-3.9[static-libs] ) ) + gdbm? ( sys-libs/gdbm ) +" +DEPEND="sys-apps/groff + ${RDEPEND}" +PDEPEND=" + examples? ( app-doc/zsh-lovers ) +" +if [[ ${PV} == 9999* ]] ; then + DEPEND+=" app-text/yodl + doc? ( + sys-apps/texinfo + app-text/texi2html + virtual/latex-base + )" +fi + +src_prepare() { + # fix zshall problem with soelim + ln -s Doc man1 + mv Doc/zshall.1 Doc/zshall.1.soelim + soelim Doc/zshall.1.soelim > Doc/zshall.1 + + epatch "${FILESDIR}"/${PN}-init.d-gentoo-r1.diff + + cp "${FILESDIR}"/zprofile-1 "${T}"/zprofile || die + eprefixify "${T}"/zprofile || die + if use prefix ; then + sed -i -e 's|@ZSH_PREFIX@||' -e '/@ZSH_NOPREFIX@/d' "${T}"/zprofile || die + else + sed -i -e 's|@ZSH_NOPREFIX@||' -e '/@ZSH_PREFIX@/d' -e 's|""||' "${T}"/zprofile || die + fi + + if [[ ${PV} == 9999* ]] ; then + sed -i "/^VERSION=/s/=.*/=${PV}/" Config/version.mk || die + eautoreconf + fi +} + +src_configure() { + local myconf + + if use static ; then + myconf+=" --disable-dynamic" + append-ldflags -static + fi + if use debug ; then + myconf+=" \ + --enable-zsh-debug \ + --enable-zsh-mem-debug \ + --enable-zsh-mem-warning \ + --enable-zsh-secure-free \ + --enable-zsh-hash-debug" + fi + + if [[ ${CHOST} == *-darwin* ]]; then + myconf+=" --enable-libs=-liconv" + append-ldflags -Wl,-x + fi + + econf \ + --bindir="${EPREFIX}"/bin \ + --libdir="${EPREFIX}"/usr/$(get_libdir) \ + --enable-etcdir="${EPREFIX}"/etc/zsh \ + --enable-runhelpdir="${EPREFIX}"/usr/share/zsh/${PV%_*}/help \ + --enable-fndir="${EPREFIX}"/usr/share/zsh/${PV%_*}/functions \ + --enable-site-fndir="${EPREFIX}"/usr/share/zsh/site-functions \ + --enable-function-subdirs \ + --with-tcsetpgrp \ + $(use_enable maildir maildir-support) \ + $(use_enable pcre) \ + $(use_enable caps cap) \ + $(use_enable unicode multibyte) \ + $(use_enable gdbm ) \ + ${myconf} + + if use static ; then + # compile all modules statically, see Bug #27392 + # removed cap and curses because linking failes + sed -e "s,link=no,link=static,g" \ + -e "/^name=zsh\/cap/s,link=static,link=no," \ + -e "/^name=zsh\/curses/s,link=static,link=no," \ + -i "${S}"/config.modules || die + if ! use gdbm ; then + sed -i '/^name=zsh\/db\/gdbm/s,link=static,link=no,' \ + "${S}"/config.modules || die + fi + fi +} + +src_compile() { + default + + if [[ ${PV} == 9999* ]] && use doc ; then + emake -C Doc everything + fi +} + +src_test() { + addpredict /dev/ptmx + local i + for i in C02cond.ztst V08zpty.ztst X02zlevi.ztst Y01completion.ztst Y02compmatch.ztst Y03arguments.ztst ; do + rm "${S}"/Test/${i} || die + done + emake check +} + +src_install() { + emake DESTDIR="${D}" install install.info + + insinto /etc/zsh + doins "${T}"/zprofile + + keepdir /usr/share/zsh/site-functions + insinto /usr/share/zsh/${PV%_*}/functions/Prompts + newins "${FILESDIR}"/prompt_gentoo_setup-1 prompt_gentoo_setup + + # install miscellaneous scripts; bug #54520 + local i + sed -e "s:/usr/local/bin/perl:${EPREFIX}/usr/bin/perl:g" \ + -e "s:/usr/local/bin/zsh:${EPREFIX}/bin/zsh:g" \ + -i "${S}"/{Util,Misc}/* || die + for i in Util Misc ; do + insinto /usr/share/zsh/${PV%_*}/${i} + doins ${i}/* + done + + dodoc ChangeLog* META-FAQ NEWS README config.modules + + if use doc ; then + pushd "${WORKDIR}/${PN}-${PV%_*}" >/dev/null + dohtml -r Doc/* + insinto /usr/share/doc/${PF} + doins Doc/zsh.{dvi,pdf} + popd >/dev/null + fi + + docinto StartupFiles + dodoc StartupFiles/z* +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + # should link to http://www.gentoo.org/doc/en/zsh.xml + echo + elog "If you want to enable Portage completions and Gentoo prompt," + elog "emerge app-shells/zsh-completion and add" + elog " autoload -U compinit promptinit" + elog " compinit" + elog " promptinit; prompt gentoo" + elog "to your ~/.zshrc" + echo + elog "Also, if you want to enable cache for the completions, add" + elog " zstyle ':completion::complete:*' use-cache 1" + elog "to your ~/.zshrc" + echo + elog "Note that a system zprofile startup file is installed. This will override" + elog "PATH and possibly other variables that a user may set in ~/.zshenv." + elog "Custom PATH settings and similar overridden variables can be moved to ~/.zprofile" + elog "or other user startup files that are sourced after the system zprofile." + echo + elog "If PATH must be set in ~/.zshenv to affect things like non-login ssh shells," + elog "one method is to use a separate path-setting file that is conditionally sourced" + elog "in ~/.zshenv and also sourced from ~/.zprofile. For more information, see the" + elog "zshenv example in ${EROOT}/usr/share/doc/${PF}/StartupFiles/." + echo + fi +} |