Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-shells/bash-completion: bash-completion-1.3-r1.ebuild ChangeLog
Date: Thu, 01 Nov 2012 09:06:23
Message-Id: 20121101090605.DD37121600@flycatcher.gentoo.org
1 ssuominen 12/11/01 09:06:05
2
3 Modified: ChangeLog
4 Added: bash-completion-1.3-r1.ebuild
5 Log:
6 Backport modified bash-completion.pc pkg-config file from upstream 2.0 release.
7
8 (Portage version: 2.2.0_alpha135/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.235 app-shells/bash-completion/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.235&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.235&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/ChangeLog?r1=1.234&r2=1.235
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v
20 retrieving revision 1.234
21 retrieving revision 1.235
22 diff -u -r1.234 -r1.235
23 --- ChangeLog 4 May 2012 11:08:39 -0000 1.234
24 +++ ChangeLog 1 Nov 2012 09:06:05 -0000 1.235
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-shells/bash-completion
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.234 2012/05/04 11:08:39 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.235 2012/11/01 09:06:05 ssuominen Exp $
30 +
31 +*bash-completion-1.3-r1 (01 Nov 2012)
32 +
33 + 01 Nov 2012; Samuli Suominen <ssuominen@g.o>
34 + +bash-completion-1.3-r1.ebuild, +files/bash-completion.pc:
35 + Backport modified bash-completion.pc pkg-config file from upstream 2.0
36 + release.
37
38 04 May 2012; Alexis Ballier <aballier@g.o> bash-completion-1.3.ebuild:
39 keyword ~amd64-fbsd
40
41
42
43 1.1 app-shells/bash-completion/bash-completion-1.3-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/bash-completion-1.3-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/bash-completion-1.3-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: bash-completion-1.3-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-1.3-r1.ebuild,v 1.1 2012/11/01 09:06:05 ssuominen Exp $
53
54 EAPI=3
55 inherit prefix
56
57 DESCRIPTION="Programmable Completion for bash"
58 HOMEPAGE="http://bash-completion.alioth.debian.org/"
59 SRC_URI="http://bash-completion.alioth.debian.org/files/${P}.tar.bz2"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris"
64 IUSE=""
65
66 DEPEND=""
67 RDEPEND="app-admin/eselect
68 || ( >=app-shells/bash-3.2 app-shells/zsh )
69 sys-apps/miscfiles"
70 PDEPEND="app-shells/gentoo-bashcomp"
71
72 src_prepare() {
73 cp "${FILESDIR}"/bash-completion.sh-gentoo-1.2 "${T}"/bash-completion.sh || die
74 eprefixify "${T}"/bash-completion.sh
75
76 find "${S}"/completions -name 'Makefile*' -delete
77 }
78
79 src_configure() { :; } # no-op
80 src_compile() { :; } # no-op
81
82 src_install() {
83 # Gentoo specific bash-completion.sh file.
84 insinto /etc/profile.d
85 doins "${T}"/bash-completion.sh || die
86
87 # All files from contrib/ in source package get installed
88 insinto /usr/share/bash-completion
89 doins -r "${S}"/completions/* || die
90
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 dodoc AUTHORS CHANGES README TODO || die "dodocs failes"
102
103 # This is backported from upstream 2.0 release. You can stop installing
104 # this file after 2.0 is in Portage and use the one from the tarball
105 # instead.
106 # Installed to datadir instead of libdir because bash-completion(s)
107 # are not ELF files.
108 insinto /usr/share/pkgconfig
109 doins "${FILESDIR}"/bash-completion.pc || die
110 }
111
112 pkg_postinst() {
113 elog "Any user can enable the module completions without editing their"
114 elog ".bashrc by running:"
115 elog
116 elog " eselect bashcomp enable <module>"
117 elog
118 elog "The system administrator can also be enable this globally with"
119 elog
120 elog " eselect bashcomp enable --global <module>"
121 elog
122 elog "Make sure you at least enable the base module! Additional completion"
123 elog "modules can be found by running"
124 elog
125 elog " eselect bashcomp list"
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 if has_version 'app-shells/zsh' ; then
131 elog "If you are interested in using the provided bash completion functions with"
132 elog "zsh, valuable tips on the effective use of bashcompinit are available:"
133 elog " http://www.zsh.org/mla/workers/2003/msg00046.html"
134 elog
135 fi
136 }