Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-shells/bash-completion: bash-completion-1.1-r4.ebuild ChangeLog bash-completion-1.1-r3.ebuild
Date: Tue, 01 Dec 2009 17:29:42
Message-Id: E1NFWXg-0001Xj-C6@stork.gentoo.org
1 darkside 09/12/01 17:29:36
2
3 Modified: ChangeLog
4 Added: bash-completion-1.1-r4.ebuild
5 Removed: bash-completion-1.1-r3.ebuild
6 Log:
7 Revbump for minor ommision in bash-completion.sh file which didn't clean up the env properly. bug 293871
8 (Portage version: 2.1.7.4/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.199 app-shells/bash-completion/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.199&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.199&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/ChangeLog?r1=1.198&r2=1.199
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v
20 retrieving revision 1.198
21 retrieving revision 1.199
22 diff -u -r1.198 -r1.199
23 --- ChangeLog 11 Nov 2009 15:14:55 -0000 1.198
24 +++ ChangeLog 1 Dec 2009 17:29:36 -0000 1.199
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-shells/bash-completion
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.198 2009/11/11 15:14:55 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.199 2009/12/01 17:29:36 darkside Exp $
30 +
31 +*bash-completion-1.1-r4 (01 Dec 2009)
32 +
33 + 01 Dec 2009; Jeremy Olexa <darkside@g.o>
34 + -bash-completion-1.1-r3.ebuild, +bash-completion-1.1-r4.ebuild,
35 + files/bash-completion.sh:
36 + Revbump for minor ommision in bash-completion.sh file which didn't clean
37 + up the env properly. bug 293871
38
39 11 Nov 2009; Fabian Groffen <grobian@g.o>
40 bash-completion-1.1-r3.ebuild:
41
42
43
44 1.1 app-shells/bash-completion/bash-completion-1.1-r4.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/bash-completion-1.1-r4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/bash-completion-1.1-r4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: bash-completion-1.1-r4.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-1.1-r4.ebuild,v 1.1 2009/12/01 17:29:36 darkside Exp $
54
55 EAPI="2"
56 inherit prefix
57
58 DESCRIPTION="Programmable Completion for bash"
59 HOMEPAGE="http://bash-completion.alioth.debian.org/"
60 SRC_URI="http://bash-completion.alioth.debian.org/files/${P}.tar.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~m68k-mint"
65 IUSE=""
66
67 DEPEND=""
68 RDEPEND="app-admin/eselect
69 || ( app-shells/bash app-shells/zsh )
70 sys-apps/miscfiles"
71 PDEPEND="app-shells/gentoo-bashcomp"
72
73 src_prepare() {
74 cp "${FILESDIR}/bash-completion.sh" "${T}" || die
75 eprefixify "${T}/bash-completion.sh"
76 # On the roadmap to change in next release, "2.0"
77 sed -i -e 's/declare -r bash4/export bash4/' bash_completion || die
78 }
79
80 src_install() {
81 use prefix || local ED=${D}
82 emake DESTDIR="${D}" install || die
83
84 dodir /etc/profile.d
85 cp "${T}/bash-completion.sh" \
86 "${ED}/etc/profile.d/bash-completion.sh" || die "cp failed"
87
88 dodir /usr/share/bash-completion
89 mv "${ED}"/etc/bash_completion.d/* "${ED}/usr/share/bash-completion/" \
90 || die "installation failed to move files"
91 awk -v D="$ED" '
92 BEGIN { out=".pre" }
93 /^# A lot of the following one-liners/ { out="base" }
94 /^# start of section containing completion functions called by other functions/ { out=".pre" }
95 /^# start of section containing completion functions for external programs/ { out="base" }
96 /^# source completion directory/ { out="" }
97 /^unset -f have/ { out=".post" }
98 out != "" { print > D"/usr/share/bash-completion/"out }' \
99 bash_completion || die "failed to split bash_completion"
100
101 # clean up
102 rm -r "${ED}"/etc/bash_completion{,.d} || die "rm failed"
103
104 dodoc AUTHORS README TODO || die "dodocs failes"
105 }
106
107 pkg_postinst() {
108 elog "Any user can enable the module completions without editing their"
109 elog ".bashrc by running:"
110 elog
111 elog " eselect bashcomp enable <module>"
112 elog
113 elog "The system administrator can also be enable this globally with"
114 elog
115 elog " eselect bashcomp enable --global <module>"
116 elog
117 elog "Make sure you at least enable the base module! Additional completion"
118 elog "modules can be found by running"
119 elog
120 elog " eselect bashcomp list"
121 elog
122 elog "If you use non-login shells you still need to source"
123 elog "/etc/profile.d/bash-completion.sh in your ~/.bashrc."
124
125 if has_version 'app-shells/zsh' ; then
126 elog "If you are interested in using the provided bash completion functions with"
127 elog "zsh, valuable tips on the effective use of bashcompinit are available:"
128 elog " http://www.zsh.org/mla/workers/2003/msg00046.html"
129 elog
130 fi
131 }