Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/bash-completion/
Date: Fri, 19 Feb 2016 13:41:50
Message-Id: 1455889299.79f27cc2135d1dc52bf8e0214c6b864ca4cf4657.mgorny@gentoo
1 commit: 79f27cc2135d1dc52bf8e0214c6b864ca4cf4657
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 19 13:26:56 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 19 13:41:39 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79f27cc2
7
8 app-shells/bash-completion: Fix blacklist/whitelist matching, #574570
9
10 app-shells/bash-completion/Manifest | 1 +
11 .../bash-completion-2.1_p20141224-r2.ebuild | 95 ++++++++++++++++++++++
12 2 files changed, 96 insertions(+)
13
14 diff --git a/app-shells/bash-completion/Manifest b/app-shells/bash-completion/Manifest
15 index 122e9b0..517a2b3 100644
16 --- a/app-shells/bash-completion/Manifest
17 +++ b/app-shells/bash-completion/Manifest
18 @@ -2,4 +2,5 @@ DIST bash-completion-1.3.tar.bz2 211899 SHA256 8ebe30579f0f3e1a521013bcdd1831936
19 DIST bash-completion-2.1.tar.bz2 265329 SHA256 2b606804a7d5f823380a882e0f7b6c8a37b0e768e72c3d4107c51fbe8a46ae4f SHA512 0bc71039ef136b1ccb72527eb40f2ed4068a58dc31b1ac1ee52a40e7c950ea4cfbb4f1bee2f0da6774e56062578fa3653096e6d306eea7f028dd55ff737e92fe WHIRLPOOL 0275d8ac99a0ac5b12637bf2b13561d656b239ba7c166071cb283a481df2fdd904ad1c18608ea35b9af4f0f4db3b034f833f0fd586a0096626d1b268bcd8fc00
20 DIST bash-completion-2.1_p20141224.tar.xz 257964 SHA256 a76ffdbc9f49f48e290f0e6f3d46060d51c770f91e25b35b014bc16fec76f517 SHA512 94649aad8dbf0f170422605a5f36c5cab61e45ce402a92f89a6eba3bd5d2e976087b35cd0a9b6d4d29ba608cee3bb27b692088c884b766447ee9eafa99c2814a WHIRLPOOL 0ea12dfc8f432ffed598aee65c7080de570ebe9783415c7ebe4bd5d152fc645a132fae3a28986c029d13a4b939e15053204d73ae9b207f4ad62b9c117bf59cba
21 DIST bashcomp-2.0.1.tar.bz2 4078 SHA256 142348b61b32fb3f1580ac90b684b1014d6d177f371baadb503340c507f9a992 SHA512 8ac8982f418a2d71dffcf027ffe0b7eefa3ee49413a726a8ee9e758975d8f86c687a64b55cd94e09b7936d1c6990285ddc90a3c2b1989af44322937c5c4fb8d7 WHIRLPOOL b6daa0a93282e9df73635cbdddde97c473fd22aa3baf035c3ffcb5966152e20b26d85979fe8a5ecf9128157422f3f60dc27c82c843b9a0e6e80b7de7da596250
22 +DIST bashcomp-2.0.2.tar.gz 3625 SHA256 6ede58bfbe99f0dca1eb9236492aa20a6755e5731526de56e15d1e2b220165c9 SHA512 46bc1bcc32263135f44be68569459a409250dd2c81c18190735f11e13a26508e9d3cb91d24a8fe7b21bdea678347873b7ac1b67d5e8c78c8444011f85dfdcdce WHIRLPOOL 4b6cb989235d5fed8fd9986c1419ab337df38384fe2b307fd78f08f8696f4a2328845ed4f27913a36e9a544e973690bc0dd2af73816e272c3faf27ff2eafa585
23 DIST bashcomp2-pre1.tar.gz 3732 SHA256 fd201638bae06f134c243887cafe402ef0a21f9e62cca3966f405c249abc9eec SHA512 745801fe20c846cb0cdb044d712caacd75a2902c9dddc2261bdb179dcd826e5d1032d6b1f73340abe74dbb82d29b4386897291ccdf45d9bbd1fdb80a5f79fa45 WHIRLPOOL eb529c7263653b3e3e36c0cf29d44c57ce64bb2144f06ff7f2df569dd2ae66eb135b2ace5542c37cb100da8b3562b32ab61bcd9f5fd3cfbf67febf5e5086e04a
24
25 diff --git a/app-shells/bash-completion/bash-completion-2.1_p20141224-r2.ebuild b/app-shells/bash-completion/bash-completion-2.1_p20141224-r2.ebuild
26 new file mode 100644
27 index 0000000..846afc8
28 --- /dev/null
29 +++ b/app-shells/bash-completion/bash-completion-2.1_p20141224-r2.ebuild
30 @@ -0,0 +1,95 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +BASHCOMP_P=bashcomp-2.0.2
38 +inherit versionator
39 +
40 +DESCRIPTION="Programmable Completion for bash"
41 +HOMEPAGE="http://bash-completion.alioth.debian.org/"
42 +SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz
43 + https://bitbucket.org/mgorny/bashcomp2/downloads/${BASHCOMP_P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +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"
48 +IUSE=""
49 +
50 +RDEPEND=">=app-shells/bash-4.3_p30-r1
51 + sys-apps/miscfiles
52 + !app-eselect/eselect-bashcomp"
53 +DEPEND="app-arch/xz-utils"
54 +PDEPEND=">=app-shells/gentoo-bashcomp-20140911"
55 +
56 +# Remove unwanted completions.
57 +STRIP_COMPLETIONS=(
58 + # Slackware package stuff, quite generic names cause collisions
59 + # (e.g. with sys-apps/pacman)
60 + explodepkg installpkg makepkg pkgtool removepkg upgradepkg
61 +
62 + # Debian/Red Hat network stuff
63 + ifdown ifup ifstatus
64 +
65 + # Installed in app-editors/vim-core
66 + xxd
67 +
68 + # Now-dead symlinks to deprecated completions
69 + hd ncal
70 +)
71 +
72 +src_prepare() {
73 + epatch "${WORKDIR}/${BASHCOMP_P}/${P}"-*.patch
74 + # Bug 543100
75 + epatch "${FILESDIR}/${PN}-2.1-escape-characters.patch"
76 +}
77 +
78 +src_test() { :; } # Skip testsuite because of interactive shell wrt #477066
79 +
80 +src_install() {
81 + # work-around race conditions, bug #526996
82 + mkdir -p "${ED}"/usr/share/bash-completion/{completions,helpers} || die
83 +
84 + emake DESTDIR="${D}" profiledir="${EPREFIX}"/etc/bash/bashrc.d install
85 +
86 + local file
87 + for file in "${STRIP_COMPLETIONS[@]}"; do
88 + rm "${ED}"/usr/share/bash-completion/completions/${file} || die
89 + done
90 + # remove deprecated completions (moved to other packages)
91 + rm "${ED}"/usr/share/bash-completion/completions/_* || die
92 +
93 + dodoc AUTHORS CHANGES README
94 +
95 + # install the eselect module
96 + insinto /usr/share/eselect/modules
97 + doins "${WORKDIR}/${BASHCOMP_P}/bashcomp.eselect"
98 + doman "${WORKDIR}/${BASHCOMP_P}/bashcomp.eselect.5"
99 +}
100 +
101 +pkg_postinst() {
102 + local v
103 + for v in ${REPLACING_VERSIONS}; do
104 + if ! version_is_at_least 2.1-r90 ${v}; then
105 + ewarn "For bash-completion autoloader to work, all completions need to"
106 + ewarn "be installed in /usr/share/bash-completion/completions. You may"
107 + ewarn "need to rebuild packages that installed completions in the old"
108 + ewarn "location. You can do this using:"
109 + ewarn
110 + ewarn "$ find ${EPREFIX}/usr/share/bash-completion -maxdepth 1 -type f '!' -name 'bash_completion' -exec emerge -1v {} +"
111 + ewarn
112 + ewarn "After the rebuild, you should remove the old setup symlinks:"
113 + ewarn
114 + ewarn "$ find ${EPREFIX}/etc/bash_completion.d -type l -delete"
115 + fi
116 + done
117 +
118 + if has_version 'app-shells/zsh'; then
119 + elog
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 +}