diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2009-10-15 13:52:36 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2009-10-15 13:52:36 +0000 |
commit | 577a1e4ae77cb8f4d9375dae7cabd258ca2ed1d2 (patch) | |
tree | 31d65b4b469a9c6c74e8b98ffc217616b1f46d72 | |
parent | amd64/x86 stable, bug #288261 (diff) | |
download | historical-577a1e4ae77cb8f4d9375dae7cabd258ca2ed1d2.tar.gz historical-577a1e4ae77cb8f4d9375dae7cabd258ca2ed1d2.tar.bz2 historical-577a1e4ae77cb8f4d9375dae7cabd258ca2ed1d2.zip |
Version bump. Many new completion modules. Note: the 'base' module is always enabled now.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
-rw-r--r-- | app-shells/bash-completion/ChangeLog | 10 | ||||
-rw-r--r-- | app-shells/bash-completion/Manifest | 7 | ||||
-rw-r--r-- | app-shells/bash-completion/bash-completion-1.0-r3.ebuild | 93 | ||||
-rw-r--r-- | app-shells/bash-completion/bash-completion-1.1.ebuild | 64 | ||||
-rw-r--r-- | app-shells/bash-completion/files/bash-completion.sh | 71 |
5 files changed, 112 insertions, 133 deletions
diff --git a/app-shells/bash-completion/ChangeLog b/app-shells/bash-completion/ChangeLog index f88e9fd749b1..1188bcb3654d 100644 --- a/app-shells/bash-completion/ChangeLog +++ b/app-shells/bash-completion/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-shells/bash-completion # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.192 2009/10/09 16:43:49 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.193 2009/10/15 13:52:35 darkside Exp $ + +*bash-completion-1.1 (15 Oct 2009) + + 15 Oct 2009; Jeremy Olexa <darkside@gentoo.org> + -bash-completion-1.0-r3.ebuild, +bash-completion-1.1.ebuild, + files/bash-completion.sh: + Version bump. Many new completion modules. Note: the 'base' module is + always enabled now. 09 Oct 2009; Raúl Porcel <armin76@gentoo.org> bash-completion-1.0-r5.ebuild: diff --git a/app-shells/bash-completion/Manifest b/app-shells/bash-completion/Manifest index 1e1107052338..242e4fdd7080 100644 --- a/app-shells/bash-completion/Manifest +++ b/app-shells/bash-completion/Manifest @@ -2,9 +2,10 @@ AUX bash-completion 724 RMD160 dc15f6b02f08a2fa656fa2d0c9ed15d20a7b9dc8 SHA1 d71 AUX bash-completion-1.0-bash4.patch 861 RMD160 865e8f745b8cc53125db6903b1954523f99a277e SHA1 503b825408f4a366d1d4795e3ae4f6e51cf500d5 SHA256 e0ecf183746f6b8075ecc7891e265a10b4a3593f6690f66c320fc18b023ac1ca AUX bash-completion-1.0-gentoo.patch 2125 RMD160 33682926cca6bcccc971a8c3dde91180cdf858e1 SHA1 e9a5da746221148dcd7661a6a996a9c4ba7ef149 SHA256 8a7bcd782b8980c8f370ca022872b7f894596f8289dbbd800327659b95a9a85a AUX bash-completion-1.0-shadow-compat.patch 879 RMD160 77921832e335109df5aa48475eefe6819a6bc108 SHA1 3139a6431bc9506cc4c4f2b80b516c0d365832f9 SHA256 5e877f2ad0c33c3e1bc7766d5389e18515518ac9ff6ffff4855bf7de59cf9297 -AUX bash-completion.sh 1683 RMD160 f5d723122d1a0431af0a19838330e30f6f7e324f SHA1 1d7136206699886bc98d3b2dccfbdb3eff524ceb SHA256 3f742e1296597241b5d01565bc3220db9b1340dcb3d7bca3f0b107b2122791d7 +AUX bash-completion.sh 1942 RMD160 d9565f9e7c3c03fe24d2c8a990c9beff0118a8d6 SHA1 667a73b88db5b4862c81b2a4599a9c94fb313d24 SHA256 907ab0302cec5b6034194205637a62be9447c88c35039330fc842a97d4482eee DIST bash-completion-1.0.tar.gz 143578 RMD160 b590c2633c5c10c3e98b14a74f4e96c910b6177d SHA1 61040795731f5ff509c46e818a1edf0a7a93e11d SHA256 bd96e7d2858f02783046908a984993736f1189d07d82e9ce4b465068dd7187ef -EBUILD bash-completion-1.0-r3.ebuild 3113 RMD160 0c5fc02f458ecc4a9664f12a97b4551e3b47be7b SHA1 f893cde43dd05006919530899c2b4e1198c3e090 SHA256 c820d181e81f791a933aa2c25e65ecff45d7c97984c64b1015487e91892834ea +DIST bash-completion-1.1.tar.bz2 135741 RMD160 e5e3c250d1b791007e916f0ce06511501675ba85 SHA1 dde4ca656c72adb8326a21f1774dd906f8aaef09 SHA256 7cd415c948e44e143c2f76b6ac6f52e1e44a2762db9201cd2892fe81df807ca4 EBUILD bash-completion-1.0-r5.ebuild 3288 RMD160 78030933452fdf4c5c2f9f26f506c857f67cc1a6 SHA1 1c7db015c3b1244461408cf6495417e671ec48c3 SHA256 4964393657764362283caa4c0f67c423998dca97831fff4e634174ba4938cf86 -MISC ChangeLog 33832 RMD160 7e343b2f40bb9d39a689af8249677d9620931b01 SHA1 66d93a2b653eff67219a887b1a0991129547da1c SHA256 906926beb44dde9d7d9304745e86f3cb7016459683482c81a8b8d0a9a90c1038 +EBUILD bash-completion-1.1.ebuild 2214 RMD160 db7da0706afc0eeafad95681fa2d70d3deb7c580 SHA1 16635127edc43ed5bba574e1eb96a77b0d662398 SHA256 94d98ee31903b22e6b8de5bb37ad048adf8753eb892c0869429840848ebf09d5 +MISC ChangeLog 34105 RMD160 05775442fa9a2ffb2f3d4f4a95e120b2a993a8d7 SHA1 d08e24500764f114b435acaee6f0e38d70e1e44b SHA256 44c04f551af9afb5a5f30cdc0fc5929faeb056db47508708a42162903dcb6ff1 MISC metadata.xml 930 RMD160 e6718602012b2cfcb5be5bfc962889bf88f4dc73 SHA1 a585c9cfc0bdb59ee4c7ff1e786bc53d28d36aac SHA256 281bfd91145b2ae2a5c2774802dee741bbe625777b1c4e3eaefdca406e534ba9 diff --git a/app-shells/bash-completion/bash-completion-1.0-r3.ebuild b/app-shells/bash-completion/bash-completion-1.0-r3.ebuild deleted file mode 100644 index a3e84c43c187..000000000000 --- a/app-shells/bash-completion/bash-completion-1.0-r3.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 1999-2009 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-r3.ebuild,v 1.9 2009/05/31 18:22:46 ranger 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 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" -} - -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/bash-completion-1.1.ebuild b/app-shells/bash-completion/bash-completion-1.1.ebuild new file mode 100644 index 000000000000..cbf24f91d387 --- /dev/null +++ b/app-shells/bash-completion/bash-completion-1.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2009 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.1.ebuild,v 1.1 2009/10/15 13:52:35 darkside Exp $ + +EAPI="2" + +DESCRIPTION="Programmable Completion for bash" +HOMEPAGE="http://bash-completion.alioth.debian.org/" +SRC_URI="http://bash-completion.alioth.debian.org/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="app-admin/eselect + || ( app-shells/bash app-shells/zsh ) + sys-apps/miscfiles" +PDEPEND="app-shells/gentoo-bashcomp" + +src_install() { + emake DESTDIR="${D}" install || die + + dodir /etc/profile.d + cp "${FILESDIR}/bash-completion.sh" \ + "${D}/etc/profile.d/bash-completion.sh" || die "cp failed" + + dodir /usr/share/bash-completion + mv "${D}"/etc/bash_completion.d/* "${D}/usr/share/bash-completion/" \ + || die "installation failed to move files" + rm -r "${D}"/etc/bash_completion.d || die "rm failed" + mv "${D}"/etc/bash_completion \ + "${D}/usr/share/bash-completion/.bash-completion" || die "mv failed" + dodoc AUTHORS README TODO || die "dodocs failes" +} + +pkg_postinst() { + ewarn "There is no more base module. It is always enabled due to" + ewarn "number of false bugs and ease of maintainership. Please remove" + ewarn "the base module symlinks that you have." + elog "Any user can enable the module completions without editing their" + elog ".bashrc by running:" + elog + elog " eselect bashcomp enable <module>" + elog + elog "The system administrator can also be enable this globally with" + elog + elog " eselect bashcomp enable --global <module>" + elog + elog "Additional completion modules can be found by running" + elog + elog " eselect bashcomp list" + 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 + fi +} diff --git a/app-shells/bash-completion/files/bash-completion.sh b/app-shells/bash-completion/files/bash-completion.sh index aca4fac00e95..aa84784ff74a 100644 --- a/app-shells/bash-completion/files/bash-completion.sh +++ b/app-shells/bash-completion/files/bash-completion.sh @@ -1,39 +1,38 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2009 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.sh,v 1.3 2008/06/15 23:22:32 zlin Exp $ -# -# START bash completion -- do not remove this line +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/files/bash-completion.sh,v 1.4 2009/10/15 13:52:36 darkside Exp $ -# Need interactive bash with complete builtin -if [ -n "$PS1" -a -n "$BASH_VERSION" -a \ - "`type -t complete 2>/dev/null`" = builtin ] -then +# Check for interactive bash and that we haven't already been sourced. +[ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION" ] && return + +# 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 _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 + declare f x loaded_base=false + for f; do + if [[ -f $f ]]; then + # Prevent loading base twice, initially and via glob + if $loaded_base && [[ $f == */.bash-completion ]]; 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 + # Some modules, including base, depend on the definitions + # in .pre. See the ebuild for how this is created. + if ! $loaded_base; then + if [[ ${BASH_COMPLETION-unset} == unset ]]; then + BASH_COMPLETION=/usr/share/bash-completion/.bash-completion + fi + source /usr/share/bash-completion/.bash-completion + loaded_base=true + fi - source "$f" - fi - done + 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 + # Clean up + unset -f _load_completions # not designed to be called more than once } # 1. Load base, if eselected. This was previously known as @@ -41,12 +40,12 @@ then # 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 + /usr/share/bash-completion/.bash-completion + /etc/bash_completion.d/* \ + ~/.bash_completion.d/* \ + ~/.bash_completion fi -# END bash completion -- do not remove this line +unset bash bminor bmajor |