Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-shells/bash-completion: bash-completion-2.1-r90.ebuild ChangeLog
Date: Wed, 27 Aug 2014 17:31:17
Message-Id: 20140827173112.71E7B3FF7@oystercatcher.gentoo.org
1 mgorny 14/08/27 17:31:12
2
3 Modified: ChangeLog
4 Added: bash-completion-2.1-r90.ebuild
5 Log:
6 Introduce a first work-in-progress (masked) version using upstream layout and autoloading. It comes with Gentoo-specific blacklisting support and a new bash-completion module for it.
7
8 (Portage version: 2.2.11_p165/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.263 app-shells/bash-completion/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.263&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.263&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/ChangeLog?r1=1.262&r2=1.263
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v
20 retrieving revision 1.262
21 retrieving revision 1.263
22 diff -u -r1.262 -r1.263
23 --- ChangeLog 27 Aug 2014 08:13:54 -0000 1.262
24 +++ ChangeLog 27 Aug 2014 17:31:12 -0000 1.263
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-shells/bash-completion
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.262 2014/08/27 08:13:54 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.263 2014/08/27 17:31:12 mgorny Exp $
30 +
31 +*bash-completion-2.1-r90 (27 Aug 2014)
32 +
33 + 27 Aug 2014; Michał Górny <mgorny@g.o> +bash-completion-2.1-r90.ebuild:
34 + Introduce a first work-in-progress (masked) version using upstream layout and
35 + autoloading. It comes with Gentoo-specific blacklisting support and a new
36 + bash-completion module for it.
37
38 *bash-completion-2.1-r1 (27 Aug 2014)
39
40
41
42
43 1.1 app-shells/bash-completion/bash-completion-2.1-r90.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/bash-completion-2.1-r90.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash-completion/bash-completion-2.1-r90.ebuild?rev=1.1&content-type=text/plain
47
48 Index: bash-completion-2.1-r90.ebuild
49 ===================================================================
50 # Copyright 1999-2014 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-2.1-r90.ebuild,v 1.1 2014/08/27 17:31:12 mgorny Exp $
53
54 EAPI=5
55
56 inherit versionator
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 http://dev.gentoo.org/~mgorny/dist/bashcomp2-pre1.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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"
66 IUSE=""
67
68 RDEPEND="|| ( >=app-shells/bash-4.1 app-shells/zsh )
69 sys-apps/miscfiles
70 !app-admin/eselect-bashcomp"
71
72 src_prepare() {
73 epatch "${WORKDIR}"/bashcomp2-pre1/*.patch
74 }
75
76 src_test() { :; } # Skip testsuite because of interactive shell wrt #477066
77
78 src_install() {
79 default
80
81 # use the copies from >=sys-apps/util-linux-2.23 wrt #468544 -> hd and ncal
82 # becomes dead symlinks as a result
83 local file
84 for file in cal dmesg eject hd hexdump hwclock ionice look ncal renice rtcwake; do
85 rm "${ED}"/usr/share/bash-completion/completions/${file} || die
86 done
87
88 # use the copy from app-editors/vim-core:
89 rm "${ED}"/usr/share/bash-completion/completions/xxd || die
90
91 # use the copy from net-misc/networkmanager:
92 rm "${ED}"/usr/share/bash-completion/completions/nmcli || die
93
94 dodoc AUTHORS CHANGES README
95
96 # install the eselect module
97 insinto /usr/share/eselect/modules
98 doins "${WORKDIR}"/bashcomp2-pre1/bashcomp.eselect
99 doman "${WORKDIR}"/bashcomp2-pre1/bashcomp.eselect.5
100 }
101
102 pkg_postinst() {
103 local v
104 for v in ${REPLACING_VERSIONS}; do
105 if ! version_is_at_least 2.1-r90 ${v}; then
106 ewarn "For bash-completion autoloader to work, all completions need to"
107 ewarn "be installed in /usr/share/bash-completion/completions. You may"
108 ewarn "need to rebuild packages that installed completions in the old"
109 ewarn "location. You can do this using:"
110 ewarn
111 ewarn "$ find ${EPREFIX}/usr/share/bash-completion -maxdepth 1 -type f '!' -name 'bash_completion' -exec emerge -1v {} +"
112 fi
113 done
114
115 if has_version 'app-shells/zsh'; then
116 elog
117 elog "If you are interested in using the provided bash completion functions with"
118 elog "zsh, valuable tips on the effective use of bashcompinit are available:"
119 elog " http://www.zsh.org/mla/workers/2003/msg00046.html"
120 elog
121 fi
122 }