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: ChangeLog bash-completion-1.0.ebuild
Date: Thu, 09 Apr 2009 04:38:27
Message-Id: E1Lrm1w-0002d9-JX@stork.gentoo.org
1 darkside 09/04/09 04:38:24
2
3 Modified: ChangeLog
4 Added: bash-completion-1.0.ebuild
5 Log:
6 Version bump, bug 265240. Big thanks to ColdWind for re-working the awk split in the ebuild
7 (Portage version: 2.1.6.11/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.165 app-shells/bash-completion/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.165&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.165&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/ChangeLog?r1=1.164&r2=1.165
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v
19 retrieving revision 1.164
20 retrieving revision 1.165
21 diff -u -r1.164 -r1.165
22 --- ChangeLog 7 Apr 2009 04:20:22 -0000 1.164
23 +++ ChangeLog 9 Apr 2009 04:38:24 -0000 1.165
24 @@ -1,6 +1,13 @@
25 # ChangeLog for app-shells/bash-completion
26 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.164 2009/04/07 04:20:22 darkside Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.165 2009/04/09 04:38:24 darkside Exp $
29 +
30 +*bash-completion-1.0 (09 Apr 2009)
31 +
32 + 09 Apr 2009; Jeremy Olexa <darkside@g.o>
33 + +files/bash-completion-1.0-gentoo.patch, +bash-completion-1.0.ebuild:
34 + Version bump, bug 265240. Big thanks to ColdWind for re-working the awk
35 + split in the ebuild
36
37 07 Apr 2009; Jeremy Olexa <darkside@g.o>
38 -files/20050121/01_all_gkrellm.diff, -files/20050121/03_all_timidity.diff,
39
40
41
42 1.1 app-shells/bash-completion/bash-completion-1.0.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/bash-completion-1.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/bash-completion-1.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bash-completion-1.0.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-1.0.ebuild,v 1.1 2009/04/09 04:38:24 darkside Exp $
52
53 EAPI="2"
54
55 inherit eutils
56
57 DESCRIPTION="Programmable Completion for bash"
58 HOMEPAGE="http://bash-completion.alioth.debian.org/"
59 SRC_URI="mirror://debian/pool/main/b/bash-completion/${PN}_${PV}.orig.tar.gz ->
60 bash-completion-1.0.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
65 IUSE=""
66
67 DEPEND=""
68 RDEPEND="app-admin/eselect
69 || (
70 >=app-shells/bash-2.05a
71 app-shells/zsh
72 )"
73 PDEPEND="app-shells/gentoo-bashcomp"
74
75 src_prepare() {
76 epatch "${FILESDIR}/${PN}-1.0-gentoo.patch"
77 }
78
79 src_install() {
80 emake DESTDIR="${D}" install || die
81
82 # Upstream will soon be splitting this for us.
83 # split /etc/bash_completion into three parts:
84 # 1. /usr/share/bash-completion/.pre -- hidden from eselect
85 # 2. /usr/share/bash-completion/base -- eselectable
86 # 3. /usr/share/bash-completion/.post -- hidden from eselect
87 dodir /usr/share/bash-completion
88 awk -v D="$D" '
89 BEGIN { out=".pre" }
90 /^# A lot of the following one-liners/ { out="base" }
91 /^# start of section containing completion functions called by other functions/ { out=".pre" }
92 /^# start of section containing completion functions for bash built-ins/ { out="base" }
93 /^# source completion directory/ { out="" }
94 /^unset -f have/ { out=".post" }
95 out != "" { print > D"/usr/share/bash-completion/"out }' \
96 bash_completion || die "failed to split bash_completion"
97
98 dodir /etc/profile.d
99 cp bash_completion.sh "${D}/etc/profile.d/" || die "cp failed"
100
101 dodoc AUTHORS CHANGES README TODO || die "dodocs failes"
102
103 # bug 146726
104 rm "${D}/etc/bash_completion.d/svk" || die "rm failed"
105
106 # Upstream provides no easy way to move modules. sigh
107 dodir /usr/share/bash-completion
108 mv "${D}"/etc/bash_completion.d/* "${D}/usr/share/bash-completion/" \
109 || die "installation failed to move files"
110 # cleanup the mess
111 rm -r "${D}"/etc/bash_completion{,.d} || die "rm failed"
112 }
113
114 pkg_postinst() {
115 elog "Any user can enable the base completions without editing their"
116 elog ".bashrc by running:"
117 elog
118 elog " eselect bashcomp enable base"
119 elog
120 elog "The system administrator can also be enable this globally with"
121 elog
122 elog " eselect bashcomp enable --global base"
123 elog
124 elog "Additional completion functions can also be enabled or"
125 elog "disabled using eselect's bashcomp module."
126 elog
127 elog "If you use non-login shells you still need to source"
128 elog "/etc/profile.d/bash-completion.sh in your ~/.bashrc."
129
130
131 if has_version 'app-shells/zsh' ; then
132 elog "If you are interested in using the provided bash completion functions with"
133 elog "zsh, valuable tips on the effective use of bashcompinit are available:"
134 elog " http://www.zsh.org/mla/workers/2003/msg00046.html"
135 #elog " http://zshwiki.org/ZshSwitchingTo" (doesn't exist)
136 elog
137 fi
138 }