summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2008-03-26 13:49:08 +0000
committerTorsten Veller <tove@gentoo.org>2008-03-26 13:49:08 +0000
commit34820082ef306403530525d94e1803c7cbed2818 (patch)
treeb209c4669ee01e36d854369db470782e10f4e505 /app-shells/zsh
parentamd64 stable wrt #203752 (diff)
downloadhistorical-34820082ef306403530525d94e1803c7cbed2818.tar.gz
historical-34820082ef306403530525d94e1803c7cbed2818.tar.bz2
historical-34820082ef306403530525d94e1803c7cbed2818.zip
Cleaning
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'app-shells/zsh')
-rw-r--r--app-shells/zsh/ChangeLog6
-rw-r--r--app-shells/zsh/Manifest14
-rw-r--r--app-shells/zsh/files/zshenv15
-rw-r--r--app-shells/zsh/zsh-4.3.2-r2.ebuild165
-rw-r--r--app-shells/zsh/zsh-4.3.2-r3.ebuild172
-rw-r--r--app-shells/zsh/zsh-4.3.4.ebuild167
6 files changed, 9 insertions, 530 deletions
diff --git a/app-shells/zsh/ChangeLog b/app-shells/zsh/ChangeLog
index 45428539b093..261d7c329ab0 100644
--- a/app-shells/zsh/ChangeLog
+++ b/app-shells/zsh/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-shells/zsh
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.130 2008/02/02 22:22:54 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/ChangeLog,v 1.131 2008/03/26 13:49:07 tove Exp $
+
+ 26 Mar 2008; Torsten Veller <tove@gentoo.org> -files/zshenv,
+ -zsh-4.3.2-r2.ebuild, -zsh-4.3.2-r3.ebuild, -zsh-4.3.4.ebuild:
+ Cleaning
*zsh-4.3.5 (02 Feb 2008)
diff --git a/app-shells/zsh/Manifest b/app-shells/zsh/Manifest
index 02d37d6562c3..7354d85442fa 100644
--- a/app-shells/zsh/Manifest
+++ b/app-shells/zsh/Manifest
@@ -5,26 +5,20 @@ AUX prompt_gentoo_setup 1222 RMD160 883f6a906300a4d8300145f722769db57c90ece2 SHA
AUX zprofile 1285 RMD160 ad9c3f6bf96aef7ba800d92a7aa21088489e43a3 SHA1 35491e7bcd75b703a454491810ee8ec9db419d74 SHA256 5b714ac11847d220b9db5483a6597b145ba0fcf7897e2202aa6a14f8f77bc6c9
AUX zsh-4.3.4-configure-changequote.patch 694 RMD160 9f56120b2f8cc7ca913518ed099167fba3bc0b7f SHA1 986a8b03bc49da157ced270321538a579a9b6ec0 SHA256 78047e66ce905a701464616d3e3cc2a3a9714ac88ad063b6330234c5ea61e9e6
AUX zsh-init.d-gentoo.diff 1389 RMD160 1c317d93058b05e1d89dd81b4ab746ef31b4c38a SHA1 eb91fb330c0df1e227ee541159c7ac2d2fe15e53 SHA256 a8dcd168ab909a2b80b2958e3fc3cc974bc6048c08499be16c7925c1723b212f
-AUX zshenv 318 RMD160 dc38becda0ad8ea8931ba46c84ca337e0f503800 SHA1 787b68fadc7a5efd10bbfb3ae94a53bb7135a43c SHA256 609036567f335e35b6b638233cbcd11c2e2c60b18849cecac2e1e953f4aae323
-DIST zsh-4.3.2-doc.tar.bz2 2207375 RMD160 2f9bffc5faac847fa53f16ecf3f6f34fed6462ff SHA1 1eee74b2f1f30428464b9a387b15d75e886e4b99 SHA256 f8d21d1afa4ad3e59d8ccf835eb378ca39b6c894400ad8cd67f4bce796d0c14f
-DIST zsh-4.3.2.tar.bz2 2263544 RMD160 2bb4431db21cffdb2da4751c0fdaeca5efd0b61e SHA1 a6dd50c7578812bdb30f4cb65c8ac280c86dbfc3 SHA256 ca0e27cc99115294be8323afa50027da56ad937fa2d99cabcd2a26039181dfd3
DIST zsh-4.3.4-doc.tar.bz2 2358063 RMD160 768ce8ca2860139428d27a0fedf5c0724967e444 SHA1 83d1a38112f305892393cb036058248ebbf6168e SHA256 e74289f99479328b8bcee9c47ae07038e54437e860fb5487da57cfc8d1836777
DIST zsh-4.3.4-zshcalsys.tar.bz2 9346 RMD160 d26b370853419494725a73524ba81c754d63a201 SHA1 d93379f8dc81dcd63737519374e7d7d1ffb3cd87 SHA256 4225eb85ead732423405b567c879280780073a39fff3a05c6b6b13f29f0a382e
DIST zsh-4.3.4.tar.bz2 2374851 RMD160 2fe0fcf6371d2072c3b7eeae0392c7ef3665457c SHA1 6bd905c4bf61bf3df5e5bb78f64be68366ad7517 SHA256 6fa0e22cb0da3a02c115425097002f2b4bb56e412db6c821ca111e088cbfdec6
DIST zsh-4.3.5-doc.tar.bz2 2463496 RMD160 8b99214f1af6c0ab072b5f54c9e2148185a595d8 SHA1 8f762fd345e3447ea8a60f4869d7583facdc2820 SHA256 7dd2cd44d093a357a3b9fb5c1dba84345f3eaf4638cd968f9a8ea3bb622fc349
DIST zsh-4.3.5.tar.bz2 2513384 RMD160 99d12deb6131e4ddc73811b146ebb5b05a4ec77b SHA1 9ab505ff4c029b4905d2c4b741f0f0d42e4375c9 SHA256 ebe74df173d5b713e4e839e691da279dc9b4d4d0d98b9886cc725217e9902105
DIST zsh-lovers_0.5.orig.tar.gz 499014 RMD160 505261d9e28554c838864421ec81b6665e55dfa1 SHA1 bc9b41dd5814f60b39d393ef68c4dc099da9016b SHA256 d945adab65fdf3ff322ed64c54739b2a1cec964544c5f438005ddad9c0c62bea
-EBUILD zsh-4.3.2-r2.ebuild 4650 RMD160 e14a6f69231fa4bb4da2cc51159f077e1f4186ea SHA1 23031c63ffbe9519494331c1248d3fd16ba06acb SHA256 0e897be8d86d06d087cb792dea0e6babf65b9d446e372bf28c157224195dd2ca
-EBUILD zsh-4.3.2-r3.ebuild 4907 RMD160 67279f183b1c75769a68157c7badf44e170d7673 SHA1 c1a03d81e5c38ee7eaaaeabac9d917aa181fba6f SHA256 48f0ddaca7f0486563c12cca5a5365208cee0a6784d0c6562b2735cd67f5250a
EBUILD zsh-4.3.4-r1.ebuild 4891 RMD160 a210a5d5f9df92737917d75f7dee6664a6de96b2 SHA1 b755c8e8875686f03f151c828edcc7c4bafd5955 SHA256 fe640efa4b227ad3cad36e06b21065465156cab6ea61836559e54f8edb571502
-EBUILD zsh-4.3.4.ebuild 4626 RMD160 2879df6fe586769857fbc24985d02e25256d170a SHA1 52e0ec63c20af022cec2993b69b6aedf177fdb6d SHA256 8e1978bbe5fa28a96b785b8a305ba481c9f1d9bd950351f2317918b45ec4f267
EBUILD zsh-4.3.5.ebuild 3967 RMD160 80ff8f3d833bf79f92b574f984f46e1b0b911a05 SHA1 144f8ebd1a4f844aa3a5e807501f9f589181e10f SHA256 ba0cb5a089909a0178dbae67cf5975a822e1c0f039b2dc532f6787f2324b26a9
-MISC ChangeLog 20050 RMD160 f997deea8d72bc8209cd3b641ae5a842b45c2270 SHA1 7b8c6bfeb0606408d615fa1316189285ae1c402a SHA256 b2059801da42ca3ae5e63627a7d7795240c5b7134e7ab16813d53aebc1e1bbcd
+MISC ChangeLog 20190 RMD160 794f563092062e6b78b14376a0c900710cf4a72d SHA1 0f2ed7c79ac81c0f1473be220d4e91c1b18c8ea7 SHA256 2f125f8ff3a4bb42561bdf0532cbdcef38b7b66357b91f4f2581c94648af5dfb
MISC metadata.xml 553 RMD160 b4d3d1ca445d0c50f0372fb8af1e9fa2e4c303fb SHA1 8652a4d38b0858eff280576ca143ddc9b5db83c1 SHA256 e4bdebdc75f06d8cc998456bd2a1ec7300b6a08ca5fb28590841ad7071366cf4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
-iD8DBQFHpO1FV3J2n04EauwRAo55AKDZYvnaxuWoHKB2nkE13uA/XWFtnwCfUEGG
-tU6MkKeboNFYNHo0fQBCpbQ=
-=eQUT
+iD8DBQFH6lRZV3J2n04EauwRAlEpAKCCssA66SM3qCPnKdZwYwe+f2SQuACg1pXs
+LL/0IhJ36BtW6cQIKWfklt0=
+=dd1m
-----END PGP SIGNATURE-----
diff --git a/app-shells/zsh/files/zshenv b/app-shells/zsh/files/zshenv
deleted file mode 100644
index 4d350d569f5a..000000000000
--- a/app-shells/zsh/files/zshenv
+++ /dev/null
@@ -1,15 +0,0 @@
-[[ -o rcs ]] || return 0
-
-[[ -e "/etc/profile.env" ]] && source /etc/profile.env
-
-#077 would be more secure, but 022 is generally quite realistic
-umask 022
-
-if [[ $(/usr/bin/whoami) == 'root' ]]
-then
- export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
-else
- export PATH="/bin:/usr/bin:${PATH}"
-fi
-unset ROOTPATH
-
diff --git a/app-shells/zsh/zsh-4.3.2-r2.ebuild b/app-shells/zsh/zsh-4.3.2-r2.ebuild
deleted file mode 100644
index c42b62f7c70d..000000000000
--- a/app-shells/zsh/zsh-4.3.2-r2.ebuild
+++ /dev/null
@@ -1,165 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-4.3.2-r2.ebuild,v 1.13 2007/11/06 00:39:19 wolf31o2 Exp $
-
-inherit eutils multilib
-
-LOVERS_PV=0.5
-LOVERS_P=zsh-lovers-${LOVERS_PV}
-
-DESCRIPTION="UNIX Shell similar to the Korn shell"
-HOMEPAGE="http://www.zsh.org/"
-SRC_URI="ftp://ftp.zsh.org/pub/${P}.tar.bz2
- examples? (
- http://www.grml.org/repos/zsh-lovers_${LOVERS_PV}.orig.tar.gz )
- doc? ( ftp://ftp.zsh.org/pub/${P}-doc.tar.bz2 )"
-
-LICENSE="ZSH"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
-IUSE="maildir ncurses static doc examples pcre caps unicode"
-
-RDEPEND="pcre? ( >=dev-libs/libpcre-3.9 )
- caps? ( sys-libs/libcap )
- ncurses? ( >=sys-libs/ncurses-5.1 )"
-DEPEND="sys-apps/groff
- >=sys-apps/sed-4
- ${RDEPEND}"
-
-src_unpack() {
- unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/${PN}-init.d-gentoo.diff
- cd ${S}/Doc
- ln -sf . man1
- # fix zshall problem with soelim
- soelim zshall.1 > zshall.1.soelim
- mv zshall.1.soelim zshall.1
-}
-
-src_compile() {
- local myconf
-
- use static && myconf="${myconf} --disable-dynamic" \
- && LDFLAGS="${LDFLAGS} -static"
-
- econf \
- --bindir=/bin \
- --libdir=/usr/$(get_libdir) \
- --enable-etcdir=/etc/zsh \
- --enable-zshenv=/etc/zsh/zshenv \
- --enable-zlogin=/etc/zsh/zlogin \
- --enable-zlogout=/etc/zsh/zlogout \
- --enable-zprofile=/etc/zsh/zprofile \
- --enable-zshrc=/etc/zsh/zshrc \
- --enable-fndir=/usr/share/zsh/${PV%_*}/functions \
- --enable-site-fndir=/usr/share/zsh/site-functions \
- --enable-function-subdirs \
- --enable-ldflags="${LDFLAGS}" \
- --with-tcsetpgrp \
- $(use_with ncurses curses-terminfo) \
- $(use_enable maildir maildir-support) \
- $(use_enable pcre) \
- $(use_enable caps) \
- $(use_enable unicode multibyte) \
- ${myconf} || die "configure failed"
-
- if use static ; then
- # compile all modules statically, see Bug #27392
- sed -i -e "s/link=no/link=static/g" \
- -e "s/load=no/load=yes/g" \
- config.modules || die
-# else
- # avoid linking to libs in /usr/lib, see Bug #27064
-# sed -i -e "/LIBS/s%-lpcre%/usr/$(get_libdir)/libpcre.a%" \
-# Makefile || die
- fi
-
- # emake still b0rks
- emake -j1 || die "make failed"
-}
-
-src_test() {
- for f in /dev/pt* ; do
- addpredict $f
- done
- make check || die "make check failed"
-}
-
-src_install() {
- einstall \
- bindir=${D}/bin \
- libdir=${D}/usr/$(get_libdir) \
- fndir=${D}/usr/share/zsh/${PV%_*}/functions \
- sitefndir=${D}/usr/share/zsh/site-functions \
- scriptdir=${D}/usr/share/zsh/${PV%_*}/scripts \
- install.bin install.man install.modules \
- install.info install.fns || die "make install failed"
-
- insinto /etc/zsh
- doins ${FILESDIR}/zprofile
-
- keepdir /usr/share/zsh/site-functions
- insinto /usr/share/zsh/${PV%_*}/functions/Prompts
- doins ${FILESDIR}/prompt_gentoo_setup || die
-
- # install miscellaneous scripts; bug #54520
- sed -i -e "s:/usr/local:/usr:g" {Util,Misc}/* || "sed failed"
- insinto /usr/share/zsh/${PV%_*}/Util
- doins Util/* || die "doins Util scripts failed"
- insinto /usr/share/zsh/${PV%_*}/Misc
- doins Misc/* || die "doins Misc scripts failed"
-
- dodoc ChangeLog* META-FAQ README INSTALL LICENCE config.modules
-
- if use doc ; then
- dohtml Doc/*
- insinto /usr/share/doc/${PF}
- doins Doc/zsh.{dvi,pdf}
- fi
-
- if use examples; then
- cd ${WORKDIR}/${LOVERS_P}
- doman zsh-lovers.1 || die "doman zsh-lovers failed"
- dohtml zsh-lovers.html || die "dohtml zsh-lovers failed"
- docinto zsh-lovers
- dodoc zsh.vim README
- insinto /usr/share/doc/${PF}/zsh-lovers
- doins zsh-lovers.{ps,pdf} refcard.{dvi,ps,pdf}
- doins -r zsh_people || die "doins zsh_people failed"
- cd -
- fi
-
- docinto StartupFiles
- dodoc StartupFiles/z*
-}
-
-pkg_preinst() {
- # Our zprofile file does the job of the old zshenv file
- # Move the old version into a zprofile script so the normal
- # etc-update process will handle any changes.
- if [ -f /etc/zsh/zshenv -a ! -f /etc/zsh/zprofile ]; then
- mv /etc/zsh/zshenv /etc/zsh/zprofile
- fi
-}
-
-pkg_postinst() {
- elog
- 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"
- elog
- elog "Also, if you want to enable cache for the completions, add"
- elog " zstyle ':completion::complete:*' use-cache 1"
- elog "to your ~/.zshrc"
- elog
- # see Bug 26776
- ewarn
- ewarn "If you are upgrading from zsh-4.0.x you may need to"
- ewarn "remove all your old ~/.zcompdump files in order to use"
- ewarn "completion. For more info see zcompsys manpage."
- ewarn
-}
diff --git a/app-shells/zsh/zsh-4.3.2-r3.ebuild b/app-shells/zsh/zsh-4.3.2-r3.ebuild
deleted file mode 100644
index fa44c0327dc9..000000000000
--- a/app-shells/zsh/zsh-4.3.2-r3.ebuild
+++ /dev/null
@@ -1,172 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-4.3.2-r3.ebuild,v 1.8 2007/12/11 09:25:56 vapier Exp $
-
-inherit eutils multilib
-
-LOVERS_PV=0.5
-LOVERS_P=zsh-lovers-${LOVERS_PV}
-
-DESCRIPTION="UNIX Shell similar to the Korn shell"
-HOMEPAGE="http://www.zsh.org/"
-SRC_URI="ftp://ftp.zsh.org/pub/${P}.tar.bz2
- examples? (
- http://www.grml.org/repos/zsh-lovers_${LOVERS_PV}.orig.tar.gz )
- doc? ( ftp://ftp.zsh.org/pub/${P}-doc.tar.bz2 )"
-
-LICENSE="ZSH"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
-IUSE="maildir ncurses static doc examples pcre caps unicode"
-
-RDEPEND="pcre? ( >=dev-libs/libpcre-3.9 )
- caps? ( sys-libs/libcap )
- ncurses? ( >=sys-libs/ncurses-5.1 )"
-DEPEND="sys-apps/groff
- >=sys-apps/sed-4
- ${RDEPEND}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-init.d-gentoo.diff
-
- # fixes #201022 and
- # http://www.zsh.org/mla/workers/2007/msg01065.html
- rm Util/difflog.pl
-
- cd "${S}"/Doc
- ln -sf . man1
- # fix zshall problem with soelim
- soelim zshall.1 > zshall.1.soelim
- mv zshall.1.soelim zshall.1
-}
-
-src_compile() {
- local myconf
-
- use static && myconf="${myconf} --disable-dynamic" \
- && LDFLAGS="${LDFLAGS} -static"
-
- econf \
- --bindir=/bin \
- --libdir=/usr/$(get_libdir) \
- --enable-etcdir=/etc/zsh \
- --enable-zshenv=/etc/zsh/zshenv \
- --enable-zlogin=/etc/zsh/zlogin \
- --enable-zlogout=/etc/zsh/zlogout \
- --enable-zprofile=/etc/zsh/zprofile \
- --enable-zshrc=/etc/zsh/zshrc \
- --enable-fndir=/usr/share/zsh/${PV%_*}/functions \
- --enable-site-fndir=/usr/share/zsh/site-functions \
- --enable-function-subdirs \
- --enable-ldflags="${LDFLAGS}" \
- --with-tcsetpgrp \
- $(use_with ncurses curses-terminfo) \
- $(use_enable maildir maildir-support) \
- $(use_enable pcre) \
- $(use_enable caps) \
- $(use_enable unicode multibyte) \
- ${myconf} || die "configure failed"
-
- if use static ; then
- # compile all modules statically, see Bug #27392
- sed -i -e "s/link=no/link=static/g" \
- -e "s/load=no/load=yes/g" \
- config.modules || die
-# else
- # avoid linking to libs in /usr/lib, see Bug #27064
-# sed -i -e "/LIBS/s%-lpcre%/usr/$(get_libdir)/libpcre.a%" \
-# Makefile || die
- fi
-
- # emake still b0rks
- emake -j1 || die "make failed"
-}
-
-src_test() {
- for f in /dev/pt* ; do
- addpredict $f
- done
- make check || die "make check failed"
-}
-
-src_install() {
- einstall \
- bindir="${D}"/bin \
- libdir="${D}"/usr/$(get_libdir) \
- fndir="${D}"/usr/share/zsh/${PV%_*}/functions \
- sitefndir="${D}"/usr/share/zsh/site-functions \
- scriptdir="${D}"/usr/share/zsh/${PV%_*}/scripts \
- install.bin install.man install.modules \
- install.info install.fns || die "make install failed"
-
- insinto /etc/zsh
- doins "${FILESDIR}"/zprofile
-
- keepdir /usr/share/zsh/site-functions
- insinto /usr/share/zsh/${PV%_*}/functions/Prompts
- doins "${FILESDIR}"/prompt_gentoo_setup || die
-
- # install miscellaneous scripts; bug #54520
- sed -i -e "s:/usr/local:/usr:g" {Util,Misc}/* || "sed failed"
- insinto /usr/share/zsh/${PV%_*}/Util
- doins Util/* || die "doins Util scripts failed"
- insinto /usr/share/zsh/${PV%_*}/Misc
- doins Misc/* || die "doins Misc scripts failed"
-
- dodoc ChangeLog* META-FAQ README INSTALL LICENCE config.modules
-
- if use doc ; then
- dohtml Doc/*
- insinto /usr/share/doc/${PF}
- doins Doc/zsh.{dvi,pdf}
- fi
-
- if use examples; then
- cd "${WORKDIR}"/${LOVERS_P}
- doman zsh-lovers.1 || die "doman zsh-lovers failed"
- dohtml zsh-lovers.html || die "dohtml zsh-lovers failed"
- docinto zsh-lovers
- dodoc zsh.vim README
- insinto /usr/share/doc/${PF}/zsh-lovers
- doins zsh-lovers.{ps,pdf} refcard.{dvi,ps,pdf}
- doins -r zsh_people || die "doins zsh_people failed"
- cd -
- fi
-
- docinto StartupFiles
- dodoc StartupFiles/z*
-}
-
-pkg_preinst() {
- # Our zprofile file does the job of the old zshenv file
- # Move the old version into a zprofile script so the normal
- # etc-update process will handle any changes.
- if [ -f "${ROOT}/etc/zsh/zshenv" -a ! -f "${ROOT}/etc/zsh/zprofile" ]; then
- ewarn "Renaming /etc/zsh/zshenv to /etc/zsh/zprofile."
- ewarn "The zprofile file does the job of the old zshenv file."
- mv "${ROOT}"/etc/zsh/{zshenv,zprofile}
- fi
-}
-
-pkg_postinst() {
- elog
- 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"
- elog
- elog "Also, if you want to enable cache for the completions, add"
- elog " zstyle ':completion::complete:*' use-cache 1"
- elog "to your ~/.zshrc"
- elog
- # see Bug 26776
- ewarn
- ewarn "If you are upgrading from zsh-4.0.x you may need to"
- ewarn "remove all your old ~/.zcompdump files in order to use"
- ewarn "completion. For more info see zcompsys manpage."
- ewarn
-}
diff --git a/app-shells/zsh/zsh-4.3.4.ebuild b/app-shells/zsh/zsh-4.3.4.ebuild
deleted file mode 100644
index b1c5ea61c267..000000000000
--- a/app-shells/zsh/zsh-4.3.4.ebuild
+++ /dev/null
@@ -1,167 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-4.3.4.ebuild,v 1.4 2007/11/06 00:39:19 wolf31o2 Exp $
-
-inherit eutils multilib autotools
-
-LOVERS_PV=0.5
-LOVERS_P=zsh-lovers-${LOVERS_PV}
-
-DESCRIPTION="UNIX Shell similar to the Korn shell"
-HOMEPAGE="http://www.zsh.org/"
-SRC_URI="ftp://ftp.zsh.org/pub/${P}.tar.bz2
- examples? (
- http://www.grml.org/repos/zsh-lovers_${LOVERS_PV}.orig.tar.gz )
- doc? ( ftp://ftp.zsh.org/pub/${P}-doc.tar.bz2 )"
-
-LICENSE="ZSH"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
-IUSE="maildir static doc examples pcre caps unicode"
-
-RDEPEND=">=sys-libs/ncurses-5.1
- caps? ( sys-libs/libcap )
- pcre? ( >=dev-libs/libpcre-3.9 )"
-DEPEND="sys-apps/groff
- ${RDEPEND}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # 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.diff
- epatch "${FILESDIR}/${P}"-configure-changequote.patch
- eautoreconf
-}
-
-src_compile() {
- local myconf=
-
- if use static ; then
- myconf="${myconf} --disable-dynamic"
- LDFLAGS="${LDFLAGS} -static"
- fi
-
- econf \
- --bindir=/bin \
- --libdir=/usr/$(get_libdir) \
- --enable-etcdir=/etc/zsh \
- --enable-zshenv=/etc/zsh/zshenv \
- --enable-zlogin=/etc/zsh/zlogin \
- --enable-zlogout=/etc/zsh/zlogout \
- --enable-zprofile=/etc/zsh/zprofile \
- --enable-zshrc=/etc/zsh/zshrc \
- --enable-fndir=/usr/share/zsh/${PV%_*}/functions \
- --enable-site-fndir=/usr/share/zsh/site-functions \
- --enable-function-subdirs \
- --enable-ldflags="${LDFLAGS}" \
- --enable-curses-terminfo \
- --with-tcsetpgrp \
- $(use_enable maildir maildir-support) \
- $(use_enable pcre) \
- $(use_enable caps) \
- $(use_enable unicode multibyte) \
- ${myconf} || die "configure failed"
-
- if use static ; then
- # compile all modules statically, see Bug #27392
- sed -i -e "s/link=no/link=static/g" \
- -e "s/load=no/load=yes/g" \
- config.modules || die
-# else
-# sed -i -e "/LIBS/s%-lpcre%/usr/$(get_libdir)/libpcre.a%" Makefile
- fi
-
- emake || die "make failed"
-}
-
-src_test() {
- local f=
- for f in /dev/pt* ; do
- addpredict "$f"
- done
- make check || die "make check failed"
-}
-
-src_install() {
- einstall \
- bindir="${D}"/bin \
- libdir="${D}"/usr/$(get_libdir) \
- fndir="${D}"/usr/share/zsh/${PV%_*}/functions \
- sitefndir="${D}"/usr/share/zsh/site-functions \
- scriptdir="${D}"/usr/share/zsh/${PV%_*}/scripts \
- install.bin install.man install.modules \
- install.info install.fns || die "make install failed"
-
- insinto /etc/zsh
- doins "${FILESDIR}"/zprofile
-
- keepdir /usr/share/zsh/site-functions
- insinto /usr/share/zsh/${PV%_*}/functions/Prompts
- doins "${FILESDIR}"/prompt_gentoo_setup || die
-
- # install miscellaneous scripts; bug #54520
- sed -i -e "s:/usr/local:/usr:g" {Util,Misc}/* || "sed failed"
- insinto /usr/share/zsh/${PV%_*}/Util
- doins Util/* || die "doins Util scripts failed"
- insinto /usr/share/zsh/${PV%_*}/Misc
- doins Misc/* || die "doins Misc scripts failed"
-
- dodoc ChangeLog* META-FAQ README config.modules
-
- if use doc ; then
- dohtml Doc/*
- insinto /usr/share/doc/${PF}
- doins Doc/zsh.{dvi,pdf}
- fi
-
- if use examples; then
- cd "${WORKDIR}/${LOVERS_P}"
- doman zsh-lovers.1 || die "doman zsh-lovers failed"
- dohtml zsh-lovers.html || die "dohtml zsh-lovers failed"
- docinto zsh-lovers
- dodoc zsh.vim README
- insinto /usr/share/doc/"${PF}"/zsh-lovers
- doins zsh-lovers.{ps,pdf} refcard.{dvi,ps,pdf}
- doins -r zsh_people || die "doins zsh_people failed"
- cd -
- fi
-
- docinto StartupFiles
- dodoc StartupFiles/z*
-}
-
-pkg_preinst() {
- # Our zprofile file does the job of the old zshenv file
- # Move the old version into a zprofile script so the normal
- # etc-update process will handle any changes.
- if [ -f /etc/zsh/zshenv -a ! -f /etc/zsh/zprofile ]; then
- mv /etc/zsh/zshenv /etc/zsh/zprofile
- fi
-}
-
-pkg_postinst() {
- elog
- 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"
- elog
- elog "Also, if you want to enable cache for the completions, add"
- elog " zstyle ':completion::complete:*' use-cache 1"
- elog "to your ~/.zshrc"
- elog
- # see Bug 26776
- ewarn
- ewarn "If you are upgrading from zsh-4.0.x you may need to"
- ewarn "remove all your old ~/.zcompdump files in order to use"
- ewarn "completion. For more info see zcompsys manpage."
- ewarn
-}