diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2010-07-02 14:48:42 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2010-07-02 14:48:42 +0000 |
commit | 0caecee51e96000101112663268295731f235ba7 (patch) | |
tree | 33ed5f2ee68523c7546456c2a246d023e5b9dfef /app-shells | |
parent | Remove entry for app-text/manedit. Removed from tree on June 1 (diff) | |
download | gentoo-2-0caecee51e96000101112663268295731f235ba7.tar.gz gentoo-2-0caecee51e96000101112663268295731f235ba7.tar.bz2 gentoo-2-0caecee51e96000101112663268295731f235ba7.zip |
remove old
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'app-shells')
6 files changed, 7 insertions, 234 deletions
diff --git a/app-shells/bash-completion/ChangeLog b/app-shells/bash-completion/ChangeLog index 12918f09f305..c33f126349ba 100644 --- a/app-shells/bash-completion/ChangeLog +++ b/app-shells/bash-completion/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-shells/bash-completion # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.214 2010/05/13 20:22:11 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.215 2010/07/02 14:48:41 darkside Exp $ + + 02 Jul 2010; Jeremy Olexa <darkside@gentoo.org> + -bash-completion-1.0-r5.ebuild, -files/bash-completion-1.0-bash4.patch, + -files/bash-completion-1.0-gentoo.patch, + -files/bash-completion-1.0-shadow-compat.patch, -files/bash-completion: + remove old 13 May 2010; Fabian Groffen <grobian@gentoo.org> bash-completion-1.1-r5.ebuild: diff --git a/app-shells/bash-completion/bash-completion-1.0-r5.ebuild b/app-shells/bash-completion/bash-completion-1.0-r5.ebuild deleted file mode 100644 index 8d32d9ab7858..000000000000 --- a/app-shells/bash-completion/bash-completion-1.0-r5.ebuild +++ /dev/null @@ -1,98 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-1.0-r5.ebuild,v 1.11 2010/01/06 17:46:01 armin76 Exp $ - -EAPI="2" - -inherit eutils - -DESCRIPTION="Programmable Completion for bash" -HOMEPAGE="http://bash-completion.alioth.debian.org/" -SRC_URI="mirror://debian/pool/main/b/bash-completion/${PN}_${PV}.orig.tar.gz -> -bash-completion-1.0.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" -IUSE="" - -DEPEND="" -RDEPEND="app-admin/eselect - || ( - >=app-shells/bash-2.05a - app-shells/zsh - ) - sys-apps/miscfiles - !<=games-misc/cowsay-3.03-r1" -PDEPEND="app-shells/gentoo-bashcomp" - -src_prepare() { - epatch "${FILESDIR}/${PN}-1.0-gentoo.patch" - epatch "${FILESDIR}/${PN}-1.0-bash4.patch" - # module-init-tools-3.8 changed locations - sed -i 's:/sbin/lsmod:/bin/lsmod:' bash_completion - # Fixed in next release - epatch "${FILESDIR}/${PN}-1.0-shadow-compat.patch" - -} - -src_install() { - emake DESTDIR="${D}" install || die - - # Upstream will soon be splitting this for us. - # split /etc/bash_completion into three parts: - # 1. /usr/share/bash-completion/.pre -- hidden from eselect - # 2. /usr/share/bash-completion/base -- eselectable - # 3. /usr/share/bash-completion/.post -- hidden from eselect - dodir /usr/share/bash-completion - awk -v D="$D" ' - BEGIN { out=".pre" } - /^# A lot of the following one-liners/ { out="base" } - /^# start of section containing completion functions called by other functions/ { out=".pre" } - /^# start of section containing completion functions for bash built-ins/ { out="base" } - /^# source completion directory/ { out="" } - /^unset -f have/ { out=".post" } - out != "" { print > D"/usr/share/bash-completion/"out }' \ - bash_completion || die "failed to split bash_completion" - - dodir /etc/profile.d - cp bash_completion.sh "${D}/etc/profile.d/bash-completion.sh" \ - || die "cp failed" - - dodoc AUTHORS CHANGES README TODO || die "dodocs failes" - - # bug 146726 - rm "${D}/etc/bash_completion.d/svk" || die "rm failed" - - # Upstream provides no easy way to move modules. sigh - dodir /usr/share/bash-completion - mv "${D}"/etc/bash_completion.d/* "${D}/usr/share/bash-completion/" \ - || die "installation failed to move files" - # cleanup the mess - rm -r "${D}"/etc/bash_completion{,.d} || die "rm failed" -} - -pkg_postinst() { - elog "Any user can enable the base completions without editing their" - elog ".bashrc by running:" - elog - elog " eselect bashcomp enable base" - elog - elog "The system administrator can also be enable this globally with" - elog - elog " eselect bashcomp enable --global base" - elog - elog "Additional completion functions can also be enabled or" - elog "disabled using eselect's bashcomp module." - elog - elog "If you use non-login shells you still need to source" - elog "/etc/profile.d/bash-completion.sh in your ~/.bashrc." - - if has_version 'app-shells/zsh' ; then - elog "If you are interested in using the provided bash completion functions with" - elog "zsh, valuable tips on the effective use of bashcompinit are available:" - elog " http://www.zsh.org/mla/workers/2003/msg00046.html" - #elog " http://zshwiki.org/ZshSwitchingTo" (doesn't exist) - elog - fi -} diff --git a/app-shells/bash-completion/files/bash-completion b/app-shells/bash-completion/files/bash-completion deleted file mode 100644 index e1e58e1e7a2c..000000000000 --- a/app-shells/bash-completion/files/bash-completion +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/files/bash-completion,v 1.7 2004/11/12 23:44:04 ka0ttic Exp $ -# -# START bash completion -- do not remove this line -bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} -# interactive shell -if [ "$PS1" ]; then - if [ $bmajor -eq 2 -a $bminor '>' 04 ] || [ $bmajor -ge 3 ]; then - [ -f /etc/bash_completion ] && . /etc/bash_completion - if [ -d ~/.bash_completion.d ] ; then - for file in ~/.bash_completion.d/* ; do - [ -f $file ] && . $file - done - fi - fi -fi -unset bash bmajor bminor -# END bash completion -- do not remove this line diff --git a/app-shells/bash-completion/files/bash-completion-1.0-bash4.patch b/app-shells/bash-completion/files/bash-completion-1.0-bash4.patch deleted file mode 100644 index 85f5794b5394..000000000000 --- a/app-shells/bash-completion/files/bash-completion-1.0-bash4.patch +++ /dev/null @@ -1,28 +0,0 @@ -commit 1421e55aac075e13491cd212b796bdd453214a2c -Author: Mike Kelly <pioto@pioto.org> -Date: Thu Apr 2 11:16:46 2009 -0400 - - Fix _filedir on bash 4. - - We don't need to double-quote things for compgen w/ bash 4. Just putting - each file in double quotes is sufficient. - - See: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00155.html - -diff --git a/bash_completion b/bash_completion -index 0246cd8..4d21cf8 100644 ---- a/bash_completion -+++ b/bash_completion -@@ -209,6 +209,12 @@ quote() - # results in the original argument - quote_readline() - { -+ if [[ "${BASH_VERSINFO[0]}" -ge 4 ]] ; then -+ # This function isn't really necessary on bash 4 -+ # See: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00155.html -+ echo "${1}" -+ return -+ fi - local t="${1//\\/\\\\}" - echo \'${t//\'/\'\\\'\'}\' #'# Help vim syntax highlighting - } diff --git a/app-shells/bash-completion/files/bash-completion-1.0-gentoo.patch b/app-shells/bash-completion/files/bash-completion-1.0-gentoo.patch deleted file mode 100644 index 1f0eaff60551..000000000000 --- a/app-shells/bash-completion/files/bash-completion-1.0-gentoo.patch +++ /dev/null @@ -1,58 +0,0 @@ -Gentoo does something different than upstream. This patch allows multiple -directories to be sourced. Upstream is trying to come to a consensus on this -issue and it is expected to change. Therefore it is a moot point to send this -upstream now. - ---- bash_completion.sh.orig 2009-04-08 23:14:34.736632335 -0500 -+++ bash_completion.sh 2009-04-08 23:17:59.670875954 -0500 -@@ -4,9 +4,46 @@ - # Check for recent enough version of bash. - bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} - if [ $bmajor -eq 2 -a $bminor '>' 04 ] || [ $bmajor -gt 2 ]; then -- if [ -r /etc/bash_completion ]; then -- # Source completion code. -- . /etc/bash_completion -- fi -+ _load_completions() { -+ declare f x loaded_pre=false -+ for f; do -+ if [[ -f $f ]]; then -+ # Prevent loading base twice, initially and via glob -+ if $loaded_pre && [[ $f == */base ]]; then -+ continue -+ fi -+ -+ # Some modules, including base, depend on the definitions -+ # in .pre. See the ebuild for how this is created. -+ if ! $loaded_pre; then -+ if [[ ${BASH_COMPLETION-unset} == unset ]]; then -+ BASH_COMPLETION=/usr/share/bash-completion/base -+ fi -+ source /usr/share/bash-completion/.pre -+ loaded_pre=true -+ fi -+ -+ source "$f" -+ fi -+ done -+ -+ # Clean up -+ $loaded_pre && source /usr/share/bash-completion/.post -+ unset -f _load_completions # not designed to be called more than once -+ } -+ -+ # 1. Load base, if eselected. This was previously known as -+ # /etc/bash_completion -+ # 2. Load completion modules, maintained via eselect bashcomp --global -+ # 3. Load user completion modules, maintained via eselect bashcomp -+ # 4. Load user completion file last, overrides modules at user discretion -+ # This order is subject to change once upstream decides on something. -+ _load_completions \ -+ /etc/bash_completion.d/base \ -+ ~/.bash_completion.d/base \ -+ /etc/bash_completion.d/* \ -+ ~/.bash_completion.d/* \ -+ ~/.bash_completion - fi -+ - unset bash bminor bmajor diff --git a/app-shells/bash-completion/files/bash-completion-1.0-shadow-compat.patch b/app-shells/bash-completion/files/bash-completion-1.0-shadow-compat.patch deleted file mode 100644 index 55a9781ebd30..000000000000 --- a/app-shells/bash-completion/files/bash-completion-1.0-shadow-compat.patch +++ /dev/null @@ -1,30 +0,0 @@ -commit 86574164df810ecbd53ae841c15b38e5b06dc068 -Author: Ville Skyttä <ville.skytta@iki.fi> -Date: Tue Apr 14 00:46:12 2009 +0300 - - Always use /etc/shells for chsh -s completion, don't complete on - comment lines in it. - - Invoking chsh -l does unwanted things on some systems, such as FreeBSD. - -diff --git a/bash_completion b/bash_completion -index e50da69..6f84e31 100644 ---- a/bash_completion -+++ b/bash_completion -@@ -2569,13 +2569,10 @@ _chsh() - prev=${COMP_WORDS[COMP_CWORD-1]} - - if [ "$prev" = "-s" ]; then -- if [ -f /etc/debian_version ]; then -- COMPREPLY=( $( </etc/shells ) ) -- else -- COMPREPLY=( $( chsh -l | grep "^$cur" ) ) -- fi -+ COMPREPLY=( $( compgen -W '$( grep "^[[:space:]]*/" \ -+ /etc/shells 2>/dev/null )' -- $cur ) ) - else -- COMPREPLY=( $( compgen -u -- $cur ) ) -+ COMPREPLY=( $( compgen -u -- $cur ) ) - fi - - return 0 |