1 |
darkside 10/07/02 15:07:32 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bash-completion-1.2.ebuild |
5 |
Log: |
6 |
Upstream version bump. Tons of fixes/additions to available completions |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.216 app-shells/bash-completion/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.216&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.216&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/ChangeLog?r1=1.215&r2=1.216 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v |
19 |
retrieving revision 1.215 |
20 |
retrieving revision 1.216 |
21 |
diff -u -r1.215 -r1.216 |
22 |
--- ChangeLog 2 Jul 2010 14:48:41 -0000 1.215 |
23 |
+++ ChangeLog 2 Jul 2010 15:07:31 -0000 1.216 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for app-shells/bash-completion |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.215 2010/07/02 14:48:41 darkside Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.216 2010/07/02 15:07:31 darkside Exp $ |
29 |
+ |
30 |
+*bash-completion-1.2 (02 Jul 2010) |
31 |
+ |
32 |
+ 02 Jul 2010; Jeremy Olexa <darkside@g.o> |
33 |
+ +files/bash-completion.sh-gentoo-1.2, +bash-completion-1.2.ebuild: |
34 |
+ Upstream version bump. Tons of fixes/additions to available completions |
35 |
|
36 |
02 Jul 2010; Jeremy Olexa <darkside@g.o> |
37 |
-bash-completion-1.0-r5.ebuild, -files/bash-completion-1.0-bash4.patch, |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-shells/bash-completion/bash-completion-1.2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/bash-completion-1.2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/bash-completion-1.2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: bash-completion-1.2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-1.2.ebuild,v 1.1 2010/07/02 15:07:31 darkside Exp $ |
51 |
|
52 |
EAPI=3 |
53 |
inherit prefix |
54 |
|
55 |
DESCRIPTION="Programmable Completion for bash" |
56 |
HOMEPAGE="http://bash-completion.alioth.debian.org/" |
57 |
SRC_URI="http://bash-completion.alioth.debian.org/files/${P}.tar.bz2" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris" |
62 |
IUSE="" |
63 |
|
64 |
DEPEND="" |
65 |
RDEPEND="app-admin/eselect |
66 |
|| ( >=app-shells/bash-3.2 app-shells/zsh ) |
67 |
sys-apps/miscfiles" |
68 |
PDEPEND="app-shells/gentoo-bashcomp" |
69 |
|
70 |
src_prepare() { |
71 |
cp "${FILESDIR}"/bash-completion.sh-gentoo-1.2 "${T}"/bash-completion.sh || die |
72 |
eprefixify "${T}"/bash-completion.sh |
73 |
} |
74 |
|
75 |
src_configure() { :; } # no-op |
76 |
src_compile() { :; } # no-op |
77 |
|
78 |
src_install() { |
79 |
# Gentoo specific bash-completion.sh file. |
80 |
dodir /etc/profile.d |
81 |
cp "${T}"/bash-completion.sh \ |
82 |
"${ED}"/etc/profile.d/bash-completion.sh || die "cp failed" |
83 |
|
84 |
# All files from contrib/ in source package get installed |
85 |
dodir /usr/share/bash-completion |
86 |
cp "${S}"/contrib/* "${ED}"/usr/share/bash-completion/ \ |
87 |
|| die "installation failed to move files" |
88 |
awk -v D="$ED" ' |
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 external programs/ { 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 |
dodoc AUTHORS CHANGES README TODO || die "dodocs failes" |
99 |
} |
100 |
|
101 |
pkg_postinst() { |
102 |
elog "Any user can enable the module completions without editing their" |
103 |
elog ".bashrc by running:" |
104 |
elog |
105 |
elog " eselect bashcomp enable <module>" |
106 |
elog |
107 |
elog "The system administrator can also be enable this globally with" |
108 |
elog |
109 |
elog " eselect bashcomp enable --global <module>" |
110 |
elog |
111 |
elog "Make sure you at least enable the base module! Additional completion" |
112 |
elog "modules can be found by running" |
113 |
elog |
114 |
elog " eselect bashcomp list" |
115 |
elog |
116 |
elog "If you use non-login shells you still need to source" |
117 |
elog "/etc/profile.d/bash-completion.sh in your ~/.bashrc." |
118 |
|
119 |
if has_version 'app-shells/zsh' ; then |
120 |
elog "If you are interested in using the provided bash completion functions with" |
121 |
elog "zsh, valuable tips on the effective use of bashcompinit are available:" |
122 |
elog " http://www.zsh.org/mla/workers/2003/msg00046.html" |
123 |
elog |
124 |
fi |
125 |
} |