diff options
author | Mamoru Komachi <usata@gentoo.org> | 2005-01-23 08:06:47 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2005-01-23 08:06:47 +0000 |
commit | 5955cf9e221638dc7e034963a19e5d19db87e7de (patch) | |
tree | a2712805d6233cb651fb10184703cc8e5b17aef7 /app-shells | |
parent | initial commit - ebuild submitted by Rob Cakebread via bug #74658 (diff) | |
download | gentoo-2-5955cf9e221638dc7e034963a19e5d19db87e7de.tar.gz gentoo-2-5955cf9e221638dc7e034963a19e5d19db87e7de.tar.bz2 gentoo-2-5955cf9e221638dc7e034963a19e5d19db87e7de.zip |
Cleaned old revisions.
Diffstat (limited to 'app-shells')
-rw-r--r-- | app-shells/zsh/files/_gcc-config | 27 | ||||
-rw-r--r-- | app-shells/zsh/files/_genlop | 145 | ||||
-rw-r--r-- | app-shells/zsh/files/_gentoolkit | 195 | ||||
-rw-r--r-- | app-shells/zsh/files/digest-zsh-4.0.9-r3 | 3 | ||||
-rw-r--r-- | app-shells/zsh/files/digest-zsh-4.2.1 | 3 | ||||
-rw-r--r-- | app-shells/zsh/zsh-4.0.9-r3.ebuild | 100 | ||||
-rw-r--r-- | app-shells/zsh/zsh-4.2.1.ebuild | 155 |
7 files changed, 0 insertions, 628 deletions
diff --git a/app-shells/zsh/files/_gcc-config b/app-shells/zsh/files/_gcc-config deleted file mode 100644 index 695a77691f7f..000000000000 --- a/app-shells/zsh/files/_gcc-config +++ /dev/null @@ -1,27 +0,0 @@ -#compdef gcc-config -#Author oberyno <oberyno@gmail.com> - -local arguments - -arguments=( - '(- :)'{--use-old,-O}'[use the old profile if one was selected]' - '(- :)'{--use-portage-chost,-P}'[only set profile if its CHOST matches /etc/make.conf]:profiles:_gcc_profile' - '(- :)'{--get-current-profile,-c}'[print current used gcc profile]' - '(- :)'{--list-profiles,-l}'[print a list of available profiles]' - '(- :)'{--print-environ,-E}'[print environment of the given/current profile]:profiles:_gcc_profile' - '(- :)'{--get-bin-path,-B}'[print binary path of given/current profile]:profiles:_gcc_profile' - '(- :)'{--get-lib-path,-L}'[print library path of given/current profile]:profiles:_gcc_profile' - '(- :)'{--get-stdcxx-incdir,-X}'[print g++ include path of given/current profile]:profiles:_gcc_profile' - '(- :)'{--help,-h}'[show help]' - '(- :)'{--version,-v}'[show version info]' - '(- :):profiles:_gcc_profile' -) - -_gcc_profile(){ - local profile - profile=$(_call_program tag gcc-config --list-profiles) - profile=${profile/\[([^]]*)\]/} - _tags profile && { compadd "$@" -k profile || compadd "$@" ${(kv)=profile} } -} - -_arguments $arguments diff --git a/app-shells/zsh/files/_genlop b/app-shells/zsh/files/_genlop deleted file mode 100644 index 2acabc09f7c5..000000000000 --- a/app-shells/zsh/files/_genlop +++ /dev/null @@ -1,145 +0,0 @@ -#compdef genlop - -# ZSH completion function for genlop -# -# Original authors of portage completion -# Author: baptux <bapt@ifrance.com> -# Author: Mamoru KOMACHI <usata@gentoo.org> -# -# Adapted for genlop by oberyno <oberyno@gmail.com> - -_genlop () { -local prev1="$words[CURRENT-1]" prev2="$words[CURRENT-2]" days months arg single state lstate -days=(monday tuesday wednesday thursday friday saturday sunday) -months=(january february march april may june july august september october november december) -arg=( --current -c --time -t --gmt -g --info -i --file -f --rsync -r --unmerge -u --date --search -s --list -l ) -single=( --current -c --pretend -p --help -h --version -v ) - - [[ ${prev2} == (1st|2nd|3rd|4th|5th) ]] && - compadd in\ $months && return 0 - [[ ${prev1} == ([2-9]|[1-9][0-9]*) && ${prev2} != \ - (january|february|march|april|may|june|july|august|september|october|november|december) ]] && - _values '' 'days ago' 'months ago' 'years ago' 'weeks ago' && return 0 - [[ ${prev1} == (1) && ${prev2} != \ - (january|february|march|april|may|june|july|august|september|october|november|december) ]] && - _values '' 'day ago' 'month ago' 'year ago' 'week ago' && return 0 - - case "$prev1" in - last) - _values '' month week - compadd $days && return 0 - ;; - 1st|2nd|3rd|4th|5th) - compadd $days && return 0 - ;; - january|february|march|april|may|june|july|august|september|october|november|december) - compadd {1..31} && return 0 - ;; - --date) - _message 'enter number for more options or use mm/dd/yyyy format' - _values '' \ - last yesterday 1st 2nd 3rd 4th 5th - _alternative \ - '*:*:_days' '*:*:_months' && return 0 - ;; - --file|-f) - _arguments '*:logfile:_files' && return 0 - ;; - *) - _arguments \ - "($single $arg *)"{--current,-c}"[display the current merge in action]" \ - "($single)*--date[specify date of event]:date:->date" \ - "($single)*-f[specify the logfile to use]:logfile:_files" \ - "($single --gmt -g)"{--gmt,-g}"[display time in GMT/UTC format (default is local time)]" \ - "($single $arg *)"{--help,-h}"[display help information]" \ - "($single --info -i --list -l)"{--info,-i}"[print brief summary about installed ebuild]" \ - "($single --search -s --info -i --list -l *)"{--list,-l}"[list merge history]" \ - "(--nocolor -n)"{--nocolor,-n}"[disable colored output]" \ - "($single $arg *)"{--pretend,-p}"[estimate build time of a piped emerge -p]" \ - "($single --search -s --info -i --time -t --unmerge -u --rsync -r *)"{--rsync,-r}"[display rsync history]" \ - "($single --rsync -r --search -s --list -l *)"{--search,-s}"[select ebuilds matching the provided regular expression]:pattern:" \ - "($single --time -t)"{--time,-t}"[display merge time]" \ - "($single --rsync -r --unmerge -u)"{--unmerge,-u}"[display when packages have been unmerged]" \ - "($single $arg *)"{--version,-v}"[display version information]" \ - "($single)*:package:_portage_pkglist" - ;; - esac - - while [[ -n "$state" ]]; do - lstate=$state - state='' - case "$lstate" in - date) _message 'enter number for more options or use mm/dd/yyyy format' - _values '' \ - last yesterday 1st 2nd 3rd 4th 5th - _alternative \ - ':*:_days' ':*:_months' && return 0 - ;; - esac - done -} - -#Function to show all available portage names -_portage_pkglist(){ - portage_pkglist="$portage_pkglist" - _tags -s portage_pkglist && { compadd "$@" ${(kv)=portage_pkglist} } - _path_files -/ -F "*CVSROOT" -F "*eclass" -F "*distfiles" -F "*licences" -F "*files" -W "${portdir}" -} - -_days() { - local m="monday" t="tuesday" w="wednesday" T="thursday" f="friday" s="saturday" S="sunday" - local day=$(date +%u) - if [[ ${day} == 1 ]] then compadd $m - elif [[ ${day} == 2 ]] then compadd $m $t - elif [[ ${day} == 3 ]] then compadd $m $t $w - elif [[ ${day} == 4 ]] then compadd $m $t $w $T - elif [[ ${day} == 5 ]] then compadd $m $t $w $T $f - elif [[ ${day} == 6 ]] then compadd $m $t $w $T $f $s - elif [[ ${day} == 7 ]] then compadd $m $t $w $T $f $s $S - fi -} -_months() { - local j="january" f="february" m="march" a="april" M="may" ju="june" J="july" A="august" s="september" o="october" n="november" d="december" - local month=$(date +%m) - if [[ ${month} == 01 ]] then compadd $j - elif [[ ${month} == 02 ]] then compadd $j $f - elif [[ ${month} == 03 ]] then compadd $j $f $m - elif [[ ${month} == 04 ]] then compadd $j $f $m $a - elif [[ ${month} == 05 ]] then compadd $j $f $m $a $M - elif [[ ${month} == 06 ]] then compadd $j $f $m $a $M $ju - elif [[ ${month} == 07 ]] then compadd $j $f $m $a $M $ju $J - elif [[ ${month} == 08 ]] then compadd $j $f $m $a $M $ju $J $A - elif [[ ${month} == 09 ]] then compadd $j $f $m $a $M $ju $J $A $s - elif [[ ${month} == 10 ]] then compadd $j $f $m $a $M $ju $J $A $s $o - elif [[ ${month} == 11 ]] then compadd $j $f $m $a $M $ju $J $A $s $o $n - elif [[ ${month} == 12 ]] then compadd $j $f $m $a $M $ju $J $A $s $o $n $d - fi -} - -#Reading informations from make.conf -# -# Using portageq is the right way to get PORTDIR, but it is very slow :-( -# -#portdir="$(portageq portdir)" -#pkgdir="$(portageq pkgdir)" -#portdir_overlay="$(portageq portdir_overlay)" -[[ -n "${PORTDIR}" ]] && portdir="${PORTDIR}" -[[ -n "${PKGDIR}" ]] && pkgdir="${PKGDIR}" -if [[ -n "${PORTDIR_OVERLAY}" ]] ; then - for overlay in ${=PORTDIR_OVERLAY} ; do - portdir_overlay=(${overlay} ${portdir_overlay}) - done -fi -[[ -r /etc/make.globals ]] && source /etc/make.globals -[[ -r /etc/make.conf ]] && source /etc/make.conf - -[[ -z "${portdir}" ]] && portdir="${PORTDIR}" -[[ -z "${pkgdir}" ]] && pkgdir="${PKGDIR}" -if [[ -z "${portdir_overlay}" ]] ; then - for overlay in ${=PORTDIR_OVERLAY} ; do - portdir_overlay=(${overlay} ${portdir_overlay}) - done -fi - -portage_pkglist=(${portdir}/*-*/* ${=portdir_overlay}/*-*/*) -portage_pkglist=(${portage_pkglist##*/}) diff --git a/app-shells/zsh/files/_gentoolkit b/app-shells/zsh/files/_gentoolkit deleted file mode 100644 index 333043e39ad6..000000000000 --- a/app-shells/zsh/files/_gentoolkit +++ /dev/null @@ -1,195 +0,0 @@ -#compdef gensync equery qpkg - -# Author: oberyno <oberyno@gmail.com> - -#Function to show gensync overlays located in /etc/gensync -_overlays(){ - local overlay gensynclist gensync_individual - gensynclist=(/etc/gensync/*.syncsource) - foreach gensync_individual ($gensynclist) - overlay=($overlay ${${${(M)${(f)"$(<$gensync_individual)"}##id=*}/id=\"/}%\"}) - end - _tags overlay && { compadd "$@" ${(kv)=overlay} } -} - -#show portage categories without / at end; app-cdr instead of app-cdr/ -- this can probably be done with _files, but I'm lazy -_category(){ - categories=($portdir/metadata/cache/*-*) - category=${(M)${${categories##*/}}} -_tags -s category && { compadd "$@" ${(kv)=category} } -} - -#Function to show only installed packages -- pkgname (no category or version #) -_portage_installed(){ - installed_portage=(/var/db/pkg/*-*/*) - installed_pkgname=${(M)${${installed_portage##*/}%%-[0-9]*}} - _tags -s installed_pkgname && { compadd "$@" ${(kv)=installed_pkgname} } -} -#moved out of equery -_equery_val(){ - _values "equery actions" \ - 'files[list files owned by pkg]' \ - 'list[list all packages matching pattern]' \ - 'belongs[list all packages owning file]' \ - 'uses[display USE flags for package]' \ - 'which[print full path to ebuild for package]' \ - 'depgraph[display a dependency tree for package]' \ - 'check[check files against recorded md5sums and timestamps]' \ - 'size[print size of files contained in package]' - } - -#Function to show all available portage names -_portage_pkglist(){ - portage_pkglist="$portage_pkglist" - _tags -s portage_pkglist && { compadd "$@" ${(kv)=portage_pkglist} } - _path_files -/ -F "*CVSROOT" -F "*eclass" -F "*distfiles" -F "*licences" -W "${portdir}" -} - -#Reading informations from Portage -# -# Using portageq is the right way to get PORTDIR, but it is very slow :-( -# -#portdir="$(portageq portdir)" -#pkgdir="$(portageq pkgdir)" -#portdir_overlay="$(portageq portdir_overlay)" -[[ -n "${PORTDIR}" ]] && portdir="${PORTDIR}" -[[ -n "${PKGDIR}" ]] && pkgdir="${PKGDIR}" -if [[ -n "${PORTDIR_OVERLAY}" ]] ; then - for overlay in ${=PORTDIR_OVERLAY} ; do - portdir_overlay=(${overlay} ${portdir_overlay}) - done -fi -[[ -r /etc/make.globals ]] && source /etc/make.globals -[[ -r /etc/make.conf ]] && source /etc/make.conf - -[[ -z "${portdir}" ]] && portdir="${PORTDIR}" -[[ -z "${pkgdir}" ]] && pkgdir="${PKGDIR}" -if [[ -z "${portdir_overlay}" ]] ; then - for overlay in ${=PORTDIR_OVERLAY} ; do - portdir_overlay=(${overlay} ${portdir_overlay}) - done -fi - -portage_pkglist=(${portdir}/*-*/* ${portdir_overlay}/*-*/*) -portage_pkglist=(${portage_pkglist##*/}) - - -case $service in - - gensync) - _arguments \ - '(- :)'{--list-sources,-l}'[list known rsync sources]' \ - '()'{--no-color,-C}'[turn off colours]:overlays:_overlays' \ - '(- :)'{--help,-h}'[show help]' \ - '(- :)'{--version,-V}'[display version info]' \ - '(- :):overlays:_overlays' -;; - - qpkg) - excl=( --help -h --query-deps -q ) - check=( --check-md5 -cm --check-time -ct --check -c ) - arg=( --info -i --list -l --non-masked -n --masked -m --installed -I --uninstalled -U --group -g ) - find=( --find-file -f --find-pattern -fp ) - dups=( --dups -d --slot -s) - - _arguments -s \ - "($check $excl $find $dups 1)"{--find-file,-f}"[finds package that owns file]:file:_files" \ - "($check $excl $find $dups 1)"{--find-pattern,-fp}"[finds package that owns file matching pattern]:pattern:" \ - "($excl $check $arg $find --dups -d )"{--dups,-d}"[print packages that have multiple versions installed]" \ - "($excl $check $arg $find --slot -s 1)"{--slot,-s}"[only print duplicates of the same slot]" \ - "($check $excl --installed -I --uninstalled -U $dups -d)"{--uninstalled,-U}"[include only uninstalled packages]" \ - "($excl --uninstalled -U --installed -I $dups -d)"{--installed,-I}"[include only installed packages]" \ - "($excl --group -g $dups -d)"{--group,-g}"[find by group]:group:_category" \ - "($check $excl --list -l $dups -d)"{--list,-l}"[list package contents]" \ - "($excl --info -i $dups -d 1)"{--info,-i}"[get package description and home page]:package:_portage_pkglist" \ - "($excl $check $find $dups --uninstalled -U)"{--check-time,-ct}"[verify package file timestamps]" \ - "($excl $check $find $dups --uninstalled -U)"{--check-md5,-cm}"[verify package files md5]" \ - "($excl $check $find $dups --uninstalled -U)"{--check,-c}"[verify mtimes and md5]" \ - "($excl $find --query-deps -q $dups -d 1)"{--query-deps,-q}"[display all installed packages depending on selected packages]:package:_portage_pkglist" \ - "()"{--no-color,-nc}"[dont use colors]" \ - "*--verbose[be more verbose (2 levels)]" \ - "*-v[be more verbose (2 levels)]" \ - "($excl --non-masked -n --masked -m $dups)"{--masked,-m}"[include only masked packages]" \ - "($excl --non-masked -n --masked -m $dups)"{--non-masked,-n}"[include only non-masked packages]" \ - "(- :)"{--help,-h}"[show help]" \ - "(--info -i --query-deps -q --slot -s)1:package:_portage_installed" -;; - -equery) - local prev="$words[CURRENT-1]" prev2="$words[CURRENT-2]" - - if (( CURRENT == 2 ));then - _equery_val - _arguments \ - $common_args && return 0 - elif (( CURRENT > 2 ));then - - case "$prev" in - files|--timestamp|--md5sum|--type) - _arguments -s \ - '--timestamp[append timestamp]' \ - '--md5sum[append md5sum]' \ - '--type[prepend file type]' \ - '*:installed pkgname:_portage_installed' && return 0 - ;; - belongs|--earlyout) - _arguments -s \ - '(-c --category)'{-c,--category}'[only search in specified category]' \ - '(-e --earlyout)'{-e,--earlyout}'[stop when first match found]' \ - '*:file:_files' && return 0 - ;; - --category|-c) - _arguments -s \ - '*:category:_category' && return 0 - ;; - list|--installed|-i|--exclude-installed|-I|-p|--portage-tree|-o|--overlay-tree) - _arguments -s \ - '(-i --installed -I --exclude-installed)'{-i,--installed}'[search installed packages]' \ - '(-I --exclude-installed -i --installed)'{-I,--exclude-installed}'[do not search installed packages]' \ - '(-p --portage)'{-p,--portage-tree}'[also search in portage tree]' \ - '(-o --overlay-tree)'{-o,--overlay-tree}'[also search in overlay tree]' \ - '*:package:_portage_installed' && return 0 - ;; - uses|which) - _arguments \ - '*:package:_portage_pkglist' \ - && return 0 - ;; - depgraph|-U|--no-useflags|-l|--linear) - _arguments -s \ - '(-U --no-useflags)'{-U,--no-useflags}'[do not show USE flags]' \ - '(-l --linear)'{-l,--linear}'[do not use fancy formatting]' \ - '*:package:_portage_installed' \ - && return 0 - ;; - size|-b|--bytes) - _arguments -s \ - '(-b --bytes)'{-b,--bytes}'[report size in bytes]' \ - '*:package:_portage_installed' \ - && return 0 - ;; - check) - _arguments -s \ - '*:package:_portage_installed' \ - && return 0 - ;; - --nocolor|-C|--quiet|-q) - _equery_val - _arguments \ - $common_args && return 0 - ;; - esac - - [[ $prev2 == (--category|-c) ]] && - _arguments '(-c --category)'{-c,--category}'[only search in specified category]' \ - '(-e --earlyout)'{-e,--earlyout}'[stop when first match found]' \ - '*:file:_files' && return 0 - - fi - common_args=( - {'(--nocolor)-C','(-C)--nocolor'}'[turns off colors]' - {'(--quiet)-q','(-q)--quiet'}'[minimal output]' - {'(--help)-h','(-h)--help'}'[show help]' - ) - ;; -esac diff --git a/app-shells/zsh/files/digest-zsh-4.0.9-r3 b/app-shells/zsh/files/digest-zsh-4.0.9-r3 deleted file mode 100644 index 19f27e152f5f..000000000000 --- a/app-shells/zsh/files/digest-zsh-4.0.9-r3 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 26cc0f9051ba41063e950723246dfaa8 zsh-4.0.9.tar.bz2 1749802 -MD5 f7032dd0a992cba7bb903ab90a9ca667 zsh-4.0.9-doc.tar.bz2 1411985 -MD5 1e755a2ffa0bad11b0ebc7d5d7622674 zsh-4.0.9-euc-0.2.patch.gz 2869 diff --git a/app-shells/zsh/files/digest-zsh-4.2.1 b/app-shells/zsh/files/digest-zsh-4.2.1 deleted file mode 100644 index 5a7134f4f087..000000000000 --- a/app-shells/zsh/files/digest-zsh-4.2.1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 b59ef34b8de288d5fd16f842451125c8 zsh-4.2.1.tar.bz2 2039188 -MD5 44f829b59181749691b9725e48a9a5e8 zsh-4.2.1-euc-0.3.patch.gz 2919 -MD5 943bdc398c6138bdb2294a355f4d0959 zsh-4.2.1-doc.tar.bz2 1632937 diff --git a/app-shells/zsh/zsh-4.0.9-r3.ebuild b/app-shells/zsh/zsh-4.0.9-r3.ebuild deleted file mode 100644 index 115ca8b83306..000000000000 --- a/app-shells/zsh/zsh-4.0.9-r3.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-4.0.9-r3.ebuild,v 1.8 2005/01/01 16:01:01 eradicator Exp $ - -inherit flag-o-matic eutils - -MYDATE="20040204" -DESCRIPTION="UNIX Shell similar to the Korn shell" -HOMEPAGE="http://www.zsh.org/" -SRC_URI="ftp://ftp.zsh.org/pub/${P}.tar.bz2 - doc? ( ftp://ftp.zsh.org/pub/${P}-doc.tar.bz2 ) - cjk? ( http://www.ono.org/software/dist/${P}-euc-0.2.patch.gz )" - -LICENSE="ZSH" -SLOT="0" -KEYWORDS="x86 ppc ~sparc alpha" -IUSE="maildir ncurses static doc cjk" - -RDEPEND="ncurses? ( >=sys-libs/ncurses-5.1 ) - !app-shells/zsh-completion" -DEPEND="${RDEPEND} - virtual/libc - sys-apps/groff" - -src_unpack() { - unpack ${A} - cd ${S} - use cjk && epatch ../${P}-euc-0.2.patch - epatch ${FILESDIR}/${PN}-strncmp.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 ncurses && myconf="--with-curses-terminfo" - use maildir && myconf="${myconf} --enable-maildir-support" - use static \ - && myconf="${myconf} --disable-dynamic" \ - && append-ldflags -static - - econf \ - --bindir=/bin \ - --libdir=/usr/lib \ - --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}" \ - ${myconf} || die "configure failed" - # emake still b0rks - make || die "make failed" - #make check || die "make check failed" -} - -src_install() { - einstall \ - bindir=${D}/bin \ - libdir=${D}/usr/lib \ - fndir=${D}/usr/share/zsh/${PV}/functions \ - sitefndir=${D}/usr/share/zsh/site-functions \ - 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/site-functions - newins ${FILESDIR}/_portage-${MYDATE} _portage - - dodoc ChangeLog* META-FAQ README INSTALL LICENCE config.modules - - if use doc ; then - dohtml Doc/* - insinto /usr/share/doc/${PF} - doins Doc/zsh{.dvi,_us.ps,_a4.ps} - 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 - mv ${ROOT}/etc/zsh/zshenv ${ROOT}/etc/zsh/zprofile - fi -} diff --git a/app-shells/zsh/zsh-4.2.1.ebuild b/app-shells/zsh/zsh-4.2.1.ebuild deleted file mode 100644 index 13a33c987317..000000000000 --- a/app-shells/zsh/zsh-4.2.1.ebuild +++ /dev/null @@ -1,155 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/zsh/zsh-4.2.1.ebuild,v 1.8 2005/01/01 16:01:01 eradicator Exp $ - -inherit eutils - -MYDATE="20040730" -MY_PV="${PV/_alpha1/-test-A}" -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="UNIX Shell similar to the Korn shell" -HOMEPAGE="http://www.zsh.org/" -SRC_URI="ftp://ftp.zsh.org/pub/${MY_P}.tar.bz2 - cjk? ( http://www.ono.org/software/dist/${P}-euc-0.3.patch.gz ) - doc? ( ftp://ftp.zsh.org/pub/${MY_P}-doc.tar.bz2 )" - -LICENSE="ZSH" -SLOT="0" -KEYWORDS="x86 ppc sparc alpha ~arm hppa amd64" -IUSE="maildir ncurses static doc pcre cap cjk" - -RDEPEND="pcre? ( >=dev-libs/libpcre-3.9 ) - cap? ( sys-libs/libcap ) - ncurses? ( >=sys-libs/ncurses-5.1 ) - !app-shells/zsh-completion" -DEPEND="sys-apps/groff - >=sys-apps/sed-4 - ${RDEPEND}" - -S="${WORKDIR}/${MY_P}" - -src_unpack() { - unpack ${MY_P}.tar.bz2 - use doc && unpack ${MY_P}-doc.tar.bz2 - cd ${S} - epatch ${FILESDIR}/${P}-gentoo.diff - use cjk && epatch ${DISTDIR}/${P}-euc-0.3.patch.gz - 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/lib \ - --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 cap) \ - ${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/lib/libpcre.a%" \ - Makefile || die - fi - - # emake still b0rks - emake -j1 || die "make failed" -} - -src_test() { - make check || die "make check failed" -} - -src_install() { - einstall \ - bindir=${D}/bin \ - libdir=${D}/usr/lib \ - fndir=${D}/usr/share/zsh/${PV%_*}/functions \ - sitefndir=${D}/usr/share/zsh/site-functions \ - install.bin install.man install.modules \ - install.info install.fns || die "make install failed" - - insinto /etc/zsh - doins ${FILESDIR}/zprofile - - insinto /usr/share/zsh/site-functions - newins ${FILESDIR}/_portage-${MYDATE} _portage || die - doins ${FILESDIR}/{_genlop,_gcc-config,_gentoolkit} || die - 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,_us.ps,_a4.ps} - 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() { - einfo - einfo "If you want to enable Portage completions and Gentoo prompt," - einfo "add" - einfo " autoload -U compinit promptinit" - einfo " compinit" - einfo " promptinit; prompt gentoo" - einfo "to your ~/.zshrc" - einfo - einfo "Also, if you want to enable cache for the completions, add" - einfo " zstyle ':completion::complete:*' use-cache 1" - einfo "to your ~/.zshrc" - einfo - # 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 -} |