bump(app-shells/bash-completion): sync with upstream

This commit is contained in:
David Michael 2016-12-08 17:31:22 -08:00
parent 235542ccef
commit 4ae9b878f9
22 changed files with 195 additions and 1876 deletions

View File

@ -1,33 +1,14 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX bash-completion.pc 282 SHA256 9167632403986bae490182d4177e2e49e4b442b3f6dca14e4358db97890ab677 SHA512 ed413f7bb5decc8b0336d1d383dfd8c9b9d5b709369adec1c5c1b62cf5c602fe8d1281d35d7cc2879e016acda83402a56be9538b708e3c251331e22f8fbdc8c8 WHIRLPOOL df61bc53db7f7a0b37783acee93ff9fa7ca1d6a88fd5f944e9ad87067af10cff12b18c4af60888fd96e48236eca271540e3de3028607c4e5f95c52ae9d48f801
AUX bash-completion.sh-gentoo-1.2 2118 SHA256 219c4618936960a2b97c0a237c36961835ae21d819e29239a5d4466b75695ebb SHA512 c73f91b05d87b646a9a10ed29f7003fca27dc65dd1a0435f65d9bac34f8b9968c31475962b773d0d8a22705beddace552d03c84bd0ca1f1ca858c0aabe17e9f5 WHIRLPOOL 5dea0101b053137da4d6de3907f77fed1bf7868741dd8da5e7fccb834b06f5f0432c0da29e223b2e2e601489a8f9e2354e3e1d37e74e589011e16dfb3e4370ce
DIST bash-completion-1.3.tar.bz2 211899 SHA256 8ebe30579f0f3e1a521013bcdd183193605dab353d7a244ff2582fb3a36f7bec SHA512 f0c6eb3edce982d1306fdb7ba2cb598c08cff4bde8496fca369b3c4d2d3af0ef48dd494ab96258cc90f30b875a56759aad13a6b1bfb4928bfba4634cce6bf8be WHIRLPOOL 9ea16b019eadcdcf60046b58d2c0f3ab68c189f461842d3d9f585ff25d8ba1bd48bf847868c2cc7e5475320d9c7aeaf21ce74818345c7fe648500549d51f29f8
DIST bash-completion-2.1.tar.bz2 265329 SHA256 2b606804a7d5f823380a882e0f7b6c8a37b0e768e72c3d4107c51fbe8a46ae4f SHA512 0bc71039ef136b1ccb72527eb40f2ed4068a58dc31b1ac1ee52a40e7c950ea4cfbb4f1bee2f0da6774e56062578fa3653096e6d306eea7f028dd55ff737e92fe WHIRLPOOL 0275d8ac99a0ac5b12637bf2b13561d656b239ba7c166071cb283a481df2fdd904ad1c18608ea35b9af4f0f4db3b034f833f0fd586a0096626d1b268bcd8fc00
AUX bash-completion-2.1-escape-characters-r1.patch 1084 SHA256 b8e96b91f7d03e6e6de7e105dd8100206058b2ad44f09055521b4fab9befb245 SHA512 b7cb548024fbc68e87d781208a378299c399d2661121290c500d62cd66855acc02848710b44c363917c3c4923e063212a2b56c9b0c08deb71aba308d75939cab WHIRLPOOL c2697d7a54614692e8b40c3ca55554a25ccf34e5914a362ce9a256d783be3f4d398dd1d948b8b81130ed8662045177a824fdd5b8c7f0166872c33d4274eb4a9d
AUX bash-completion-2.1-escape-characters.patch 1082 SHA256 cfa2ffac3da8dc110967464a6af0f029992192b8eff345756f8a0a11a871eb29 SHA512 1352c100ae7cb9d3683a33c8f3fe333a81d897faf16e6a76559c973f90f12d6e53a2998935d755b5518e1ed4912d079ed0bada3d4e97bb97d294ab2f8d58feae WHIRLPOOL 5f729a02426a080c171fa8e72993673e889ecb878db56b7d9fb0fbd2674ec815a2b2793ebc2e8bd3291a7fd458e2225fe9a135a210666e249cadea463aea272d
DIST bash-completion-2.1_p20141224.tar.xz 257964 SHA256 a76ffdbc9f49f48e290f0e6f3d46060d51c770f91e25b35b014bc16fec76f517 SHA512 94649aad8dbf0f170422605a5f36c5cab61e45ce402a92f89a6eba3bd5d2e976087b35cd0a9b6d4d29ba608cee3bb27b692088c884b766447ee9eafa99c2814a WHIRLPOOL 0ea12dfc8f432ffed598aee65c7080de570ebe9783415c7ebe4bd5d152fc645a132fae3a28986c029d13a4b939e15053204d73ae9b207f4ad62b9c117bf59cba
DIST bash-completion-2.3.tar.xz 272252 SHA256 b2e081af317f3da4fff3a332bfdbebeb5514ebc6c2d2a9cf781180acab15e8e9 SHA512 396c060fa39aa05866d26b573d6b9eebdb96e41a17ef723e95f8b01bbda32b0b83bf9e4d978a4f0a1c0590787ae797bb3b6417b95b877f8447037cb873ccf38a WHIRLPOOL fe5ebae1c77dfba504e8f79b130ba0bc80d882a045b980a23f4642e77dfb7bb79b529c1573b13fc0986f486c41696bb94fadef677e0cabfdffe7aeea6e8ff5c0
DIST bash-completion-2.4.tar.xz 276148 SHA256 c0f76b5202fec9ef8ffba82f5605025ca003f27cfd7a85115f838ba5136890f6 SHA512 b852e0a38417dfc3754a91dae2d107f99a3c2970d835a4bbaa80f2a4db8d670bc3820ddc6ada26f68070f22fb4c1db7abe50ad489b1c0f8497b1e6e91be27627 WHIRLPOOL f38f148dcbca1ee47ec6fa33637ea0673c03816b607bd638605832fb76ec7fb5f24cba35cb559e8a5b06636b1ec0f225e420615b6721074fc405cb79b505b07b
DIST bashcomp-2.0.1.tar.bz2 4078 SHA256 142348b61b32fb3f1580ac90b684b1014d6d177f371baadb503340c507f9a992 SHA512 8ac8982f418a2d71dffcf027ffe0b7eefa3ee49413a726a8ee9e758975d8f86c687a64b55cd94e09b7936d1c6990285ddc90a3c2b1989af44322937c5c4fb8d7 WHIRLPOOL b6daa0a93282e9df73635cbdddde97c473fd22aa3baf035c3ffcb5966152e20b26d85979fe8a5ecf9128157422f3f60dc27c82c843b9a0e6e80b7de7da596250
DIST bashcomp2-pre1.tar.gz 3732 SHA256 fd201638bae06f134c243887cafe402ef0a21f9e62cca3966f405c249abc9eec SHA512 745801fe20c846cb0cdb044d712caacd75a2902c9dddc2261bdb179dcd826e5d1032d6b1f73340abe74dbb82d29b4386897291ccdf45d9bbd1fdb80a5f79fa45 WHIRLPOOL eb529c7263653b3e3e36c0cf29d44c57ce64bb2144f06ff7f2df569dd2ae66eb135b2ace5542c37cb100da8b3562b32ab61bcd9f5fd3cfbf67febf5e5086e04a
EBUILD bash-completion-1.3-r2.ebuild 3217 SHA256 c7aafbc3837fb389b405e8a80f07088cff84d2d881501a52c32d7747ff2b9081 SHA512 08093ae9e89c75a20389cc263aa8e17af01f4ef847c503f444b65ba79a37623da5b2c189443a362a467b963ff05f3a6a4a376fa6e139410954c1c9736cd09551 WHIRLPOOL f6df31979a05b95445a39ba5e27677706e10cc6cd74a9674b8b0b0efa45cbc923dc85fe7f72077b9fad4cfd70a4a1b02db975b5f9392a7cb14c243a04d726eb5
EBUILD bash-completion-2.1-r2.ebuild 4086 SHA256 c6d621570c0b8906f6065e25dfa5743158bf9e66156ad83b821f6e8af29abcfa SHA512 9c8df56a6d727e70ef481db01e86726d110ec71740eabd3f3d052cd63c3b9387f6800f8de8e62cce8ef0364b80046746743419a235dd87d7f9d1200ed402b3da WHIRLPOOL 44f6568039fd3c72c84a8aea557cb12a8b32e6d4fa519b6cfe6e0b37674c83ec3c0898cbbaccf667eba74aeae77f4fb03178126d7ffae2296cd65cb1cef6a0c5
EBUILD bash-completion-2.1-r91.ebuild 3166 SHA256 4e752d86aa682b8b9be89bc0b53e489365ce919f1a8ac1bf73b1b5d1f1c320ec SHA512 a70bb49e468fe6b383140ce908172c7723d54ec40c2e651314b895fc3a75a54e778d828499c6e0d415be128a0ffa0b2d2298d6d2eff8563b484b38da1f47b667 WHIRLPOOL 4fcfc9f17322b236e12b40c04bd6a072ffbeb7355228253afd43cd422e83c74310368e742ab63e225db2dc29f55025783ebf96b0bf276947eb0dbfada77bf257
EBUILD bash-completion-2.1-r92.ebuild 3202 SHA256 f3122ea7d9554b43f98fe3f83ed86f724daedb3c8e23c2d095fa6d20c837f78b SHA512 95247e2f59eab66432ad0a8f04476a2f32bd77cd1c3deda11ebeb84df0239901eea3b252381010f65d62009b1e9d93c49c8a236ecb162654aa8f02f0557b7507 WHIRLPOOL 80ba4497503fe2bfe3dcb0a4443fc913ec557da760e103de9dcaac8bdfebe916d73f3e5faedfcb5c7bdf5f9ee9eb962d12a209f119dd558f88c99f4613a62e55
EBUILD bash-completion-2.1-r93.ebuild 3250 SHA256 1dbd74548ebf4944b9076e1bbc0a8226f7d09a44c3d3df9b396ad85904bc5ff2 SHA512 8b50a74c1b7f2d9449727f70cee39551b1b39224fff24c74f83c0837f8c267367da4692f500aabb02970fd437b65a8e95400fff4cfca7e46286146fc2ea1bf93 WHIRLPOOL 7a7cc8894c6573d1eb91c1ed0ba0a9dcc198933ff37f3d3922a42821a52e2a2727d89aaede42492a163989ab53ef252ddcc35580fafd23227110e283d0a95fde
EBUILD bash-completion-2.1.ebuild 3427 SHA256 ffdc918ea480b3b71201d41cf9dfd99b2bfb5dcbaca33d6e79fd5c390bbf4bed SHA512 474ff23b7757eac0958fde583e22f7be326040c2fd66963f1695ff14e8a5b13d14770528b7a5f82fb7e8f7a6731da44c04e9c7d6a25a8a36cd669d33f1f68f35 WHIRLPOOL ba03b5705da44febddee0905fe81ca8676fe0088e9fa2acb2f36124ff1b4c30ec3bcf0bd9747b159abead07da0ef1f1f31e3ba84269453e84d11000dc4b5b047
EBUILD bash-completion-2.1_p20141224.ebuild 3092 SHA256 b835edc72009092a6a5fa1777adf2cae598de7e7b8059a9918434d9ab70f3745 SHA512 9b784b298c687a86fad1eb8353e804ca9a6a5ff525eae6909bdc6e59f30f7c3c727970da725db4fe17aae4f16407bf7ca06f52eadd97cb5b544fdde8d8bf6578 WHIRLPOOL 57ff43b2da27aa15c212bfb80b548b64a642393f52440d68514f2835b439e4e711fee77ea27c7c71d690f33ec81e928c7abbb7e5878cc84023244925c6c16fe1
MISC ChangeLog 47964 SHA256 4fb5ac50c4f6df5f5136217172f0f73e595c27cd5f3913b7b5a44349330405e8 SHA512 290dedb4ee2c7769769cc4a5882e7c7815e78e829677b316e36ef4ed4ef933bf5451d9f407b794e0d33b7a71bf41a06a9ec325cf7a05b66eeed50e1f67bf1612 WHIRLPOOL 2e9e99a8db40f4a0b7b1b4c51593c63a79c600821ef5b5827cd91af3b5776c991572c5e5b15d5131bd5ab1227195f36016a280226ce89fed1fd24b25bfb1f537
MISC metadata.xml 1020 SHA256 785eaa20ef6e8c3d46916e22ecbf772ddc9ac12243d2f50ffd149b5f0e5c51c2 SHA512 305eddc1c77d281e6c64417c9d1c2373d20b6a88ae1f27764488814343eb7d5409705e645b31fb978774352c76cf4a14d0d51949a2f2945a8e8e168dd6d59528 WHIRLPOOL 52db2505ddd82f53c74675babc2ea35d3551091254f13638390662cb151bd65f87d36b26245ae90605cb6c9b8ba74cb25ce27158ce2016e8e2192ee47ea6f979
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQGcBAEBCAAGBQJVGub1AAoJEJQzkH1pP7W48REMALF2P/gyVbbHn98Cu/CMF3vT
wlmDBxGoIj1j7IeETfN2bKaJFEx+fL6/ajj06Mk5iXGJ2CSzngh+msJ+0kyr8n2s
fODfJIbMrD4ShIwAOu3nOiSP6+eaTFVjyOcjQsonV6y/mjGLFBPKYAtFCLtUz+JX
TkV9XHMsM5L3WKgAQTz3bWX9vJDiCuaNKJHKc09p+f+iI3WuGdFWG3kf35X/lBBS
aiO6OYpjIXRpRVRkhU0o1oo6YzSouV17Y/QRVePe9umVysV5a74TJY9saH1tGRVc
dSRjo1bXed3e4PGFwDr/0gMWjbG5TZ/FBr/WvZdQSjsuNpYnreLE9wlUpnKEKxD1
Mr0qtxan03akFPKBAyI2bFk+higTxMRhmTV+lyDXMPdTnfmhVmNwzgL3r3EF4HdN
fFyofrAGh4YrcIRKmEkDkdKqf+vyZukP4Dg+BXZNgbsNVxkOhreJDhqvekf6Xpqa
wiK5bspXd/6yXh94f/FVvVRZ7oK5Zs7Uuz5xuptIHw==
=NULj
-----END PGP SIGNATURE-----
DIST bashcomp-2.0.2.tar.gz 3625 SHA256 6ede58bfbe99f0dca1eb9236492aa20a6755e5731526de56e15d1e2b220165c9 SHA512 46bc1bcc32263135f44be68569459a409250dd2c81c18190735f11e13a26508e9d3cb91d24a8fe7b21bdea678347873b7ac1b67d5e8c78c8444011f85dfdcdce WHIRLPOOL 4b6cb989235d5fed8fd9986c1419ab337df38384fe2b307fd78f08f8696f4a2328845ed4f27913a36e9a544e973690bc0dd2af73816e272c3faf27ff2eafa585
EBUILD bash-completion-2.1_p20141224-r1.ebuild 3027 SHA256 77b28e05a1fbba1ca3015190bd972d50bd36ca349344d5756e209e38034c61c7 SHA512 f01107222332e4a8cc65ac8d2dc54240f5908c78b5ad8fff54aa4a9ab5dbdacc075e2ff53fbf75c56fbaa19d522900f1aee425f9b589a74d9cb5911002ac9271 WHIRLPOOL 92f6b9c81a928d6d388b9af7bcf9dd0415cda9ca2764325aa91cddfb546487df6858c02f21823066b75cc21aee1aa6c19cdfad7f566885d6e4e5eb2b1af34be7
EBUILD bash-completion-2.3-r2.ebuild 3251 SHA256 ae39abc77e35cf369436637d4e2e90679ce35f6b4d0574fd8968696807fa5a4a SHA512 ad2df7af8920e52b91abec75a09d2ecce279dd2a593a0eadc9dc6a5ecb53f75a4fd8549e3d784b224e23b8b980e3e5d9e8f58c3d45328f4d703dd6f581727677 WHIRLPOOL 95fe8d9f72b5a63b6b67fc48ef16e6ebb9edb5c125896d1089b5d5e94e9d0d7026973a4d3e17af90e79767f889f49d43989dab8080f19ac612025251fb455cd6
EBUILD bash-completion-2.4-r1.ebuild 3215 SHA256 7848069863d89db61089058809d6eb19dcc633f2b667f5458dec8ac040c606c9 SHA512 966f058cc60732661f7fbfced1d0df8ee37915f414bc11738642990c3fcfe19675efd9444e3cce34361bf52db5483c4f1d6999c31016b9b73be8e5363c0a4fbb WHIRLPOOL 430d31ed6a84a108ef010c2b6d1bbca35fc0cfc4818e7fd88294e35af72738e7be0f0d1f6d8899470465eecaff36d2f2f361c302da25c7e9b08ece60cd8942aa
EBUILD bash-completion-2.4.ebuild 3193 SHA256 7695de5b790dabad4695158975b6a58e5dbf5584f813f20dfb1dbe6ae3a99697 SHA512 7d2b82c42d115974eda9f2cd13c759e4603de49dd3e926122d85c9a692d6958e50d504ff6cc1f1f921eab2006d404e5f8cba937a001976136135f07528fd0c19 WHIRLPOOL be7f76ac610e09a07fd4b52dcdea409c1092973d392c506167c4dcdffefac59f34455a31a976b6ecc1422ed6c9566c5db4ccabaef776125250abba12be48185d
MISC ChangeLog 6192 SHA256 7aa78e4d3347e97e9a2676ad90b03dcfbf6bb185ce6f53050786420a7e58b42d SHA512 d689eca6fe0572923dbc618aa95d7a4b43a92654d6485ca14ae974581c3728dfeac45f139788b22b56d17ae86e063316e474f8ce10a7092e43abaad840579c2c WHIRLPOOL de6bc49d153a04b105d21a4de5def31dc028638190a4b51d66d241abaea7206d5704ddba15bef9a5f74acbce2a0b134d9bb38deacac896e9ab4efd16ccc22ddc
MISC ChangeLog-2015 49155 SHA256 df2d7ecd84a601d6a713409dd0ea3f8c2dacadf9b2f637769c6e8787d66cee1d SHA512 31fec84312c20ff1612f57f1bac506937c128b13005246ba36eaa449c1aff7712cc3645952fb9eebf3a24483590010fb5a954d43f238f47cd759911830fe5205 WHIRLPOOL 1463d6fa3480fd139341ade021e1e70884dd72e5f22aa16cb74eb11c8c4b606014b0b4f6369db06fcc9c76e354016d196a2b206fb0681c5b71237aa37991c914
MISC metadata.xml 1131 SHA256 8e1535f344b1750692fd065ef4b37d4da7be6706facbc9ae8ac04e36c50f52f8 SHA512 0fd3eeab32897a33a166a81a2d015d85c673189d78a79f3c096e1d6b1237c8bd3ba6c869d9421f60a617e4adf5b073a032f232aa6a910350a1bcea35f9b50ed1 WHIRLPOOL ebfdb017ceee9b8986e763ef390a2dd724afe39fe3168e668462bfe284b3f5f744ccae95b86f49e231742e474677bb22610d9b3ab96b46a20a91869d63c1b3e3

View File

@ -1,90 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-1.3-r2.ebuild,v 1.16 2015/03/31 18:26:57 ulm Exp $
EAPI=3
inherit prefix
DESCRIPTION="Programmable Completion for bash"
HOMEPAGE="http://bash-completion.alioth.debian.org/"
SRC_URI="http://bash-completion.alioth.debian.org/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
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"
IUSE=""
DEPEND=""
RDEPEND="|| ( app-eselect/eselect-bashcomp <app-admin/eselect-1.3.7 )
|| ( >=app-shells/bash-3.2 app-shells/zsh )
sys-apps/miscfiles"
PDEPEND="app-shells/gentoo-bashcomp"
src_prepare() {
cp "${FILESDIR}"/bash-completion.sh-gentoo-1.2 "${T}"/bash-completion.sh || die
eprefixify "${T}"/bash-completion.sh
find completions -name 'Makefile*' -exec rm -f {} +
# Part of >=sys-apps/util-linux-2.23 wrt #468544
rm -f completions/rtcwake
}
src_configure() { :; } # no-op
src_compile() { :; } # no-op
src_install() {
# Gentoo specific bash-completion.sh file.
insinto /etc/profile.d
doins "${T}"/bash-completion.sh || die
# All files from contrib/ in source package get installed
insinto /usr/share/bash-completion
doins -r "${S}"/completions/* || die
awk -v D="$ED" '
BEGIN { out=".pre" }
/^# A lot of the following one-liners/ { out="base" }
/^# start of section containing completion functions called by other functions/ { out=".pre" }
/^# start of section containing completion functions for external programs/ { out="base" }
/^# source completion directory/ { out="" }
/^unset -f have/ { out=".post" }
out != "" { print > D"/usr/share/bash-completion/"out }' \
bash_completion || die "failed to split bash_completion"
dodoc AUTHORS CHANGES README TODO || die "dodocs failes"
# This is backported from upstream 2.0 release. You can stop installing
# this file after 2.0 is in Portage and use the one from the tarball
# instead.
# Installed to datadir instead of libdir because bash-completion(s)
# are not ELF files.
insinto /usr/share/pkgconfig
doins "${FILESDIR}"/bash-completion.pc || die
}
pkg_postinst() {
elog "Any user can enable the module completions without editing their"
elog ".bashrc by running:"
elog
elog " eselect bashcomp enable <module>"
elog
elog "The system administrator can also be enable this globally with"
elog
elog " eselect bashcomp enable --global <module>"
elog
elog "Make sure you at least enable the base module! Additional completion"
elog "modules can be found by running"
elog
elog " eselect bashcomp list"
elog
elog "If you use non-login shells you still need to source"
elog "/etc/profile.d/bash-completion.sh in your ~/.bashrc."
if has_version 'app-shells/zsh' ; then
elog "If you are interested in using the provided bash completion functions with"
elog "zsh, valuable tips on the effective use of bashcompinit are available:"
elog " http://www.zsh.org/mla/workers/2003/msg00046.html"
elog
fi
}

View File

@ -1,118 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-2.1-r2.ebuild,v 1.8 2015/03/31 18:26:57 ulm Exp $
EAPI=5
inherit bash-completion-r1 prefix toolchain-funcs
DESCRIPTION="Programmable Completion for bash"
HOMEPAGE="http://bash-completion.alioth.debian.org/"
SRC_URI="http://bash-completion.alioth.debian.org/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
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"
IUSE=""
RDEPEND="|| ( app-eselect/eselect-bashcomp <app-admin/eselect-1.3.7 )
|| ( >=app-shells/bash-3.2 app-shells/zsh )
sys-apps/miscfiles"
PDEPEND="app-shells/gentoo-bashcomp"
src_prepare() {
cp "${FILESDIR}"/bash-completion.sh-gentoo-1.2 "${T}"/bash-completion.sh || die
eprefixify "${T}"/bash-completion.sh
cp "${FILESDIR}"/bash-completion.pc "${T}"/ || die
# reuse paths from the eclass -- those can come from pkg-config
# or defaults.
sed -i \
-e "/completionsdir/s@=.*\$@=$(get_bashcompdir)@" \
-e "/helpersdir/s@=.*\$@=$(get_bashhelpersdir)@" \
-e "/Version/s@1.3@${PV}@" \
"${T}"/bash-completion.pc || die
find -name 'Makefile*' -exec rm -f {} +
# Part of >=sys-apps/util-linux-2.23 wrt #468544
local file
for file in cal dmesg eject hexdump hwclock ionice look renice rtcwake; do
rm -f completions/${file}
done
# app-editors/vim-core:
rm -f completions/xxd
# net-misc/networkmanager:
rm -f completions/nmcli
# Forward-compatibility with new install location, for eselect-bashcomp.
echo "ES_BASHCOMP_DIRS=\"${EPREFIX}/usr/share/bash-completion/completions\"" \
> "${T}"/50bash_completion || die
}
src_configure() { :; } # no-op
src_compile() { :; } # no-op
src_install() {
# Gentoo specific bash-completion.sh file.
insinto /etc/profile.d
doins "${T}"/bash-completion.sh
# All files from contrib/ in source package get installed
dobashcomp "${S}"/completions/*
awk -v D="$ED" '
BEGIN { out=".pre" }
/^# A lot of the following one-liners/ { out="base" }
/^# start of section containing completion functions called by other functions/ { out=".pre" }
/^# start of section containing completion functions for external programs/ { out="base" }
/^# source completion directory/ { out="" }
/^unset -f have/ { out=".post" }
out != "" { print > D"/usr/share/bash-completion/"out }' \
bash_completion || die "failed to split bash_completion"
# Note: private eclass stuff, don't use it anywhere else!
insinto "$(_bash-completion-r1_get_bashhelpersdir)"
doins "${S}"/helpers/*
dodoc AUTHORS CHANGES README
# This is backported from upstream 2.0 release. You can stop installing
# this file after 2.0 is in Portage and use the one from the tarball
# instead.
# Installed to datadir instead of libdir because bash-completion(s)
# are not ELF files.
insinto /usr/share/pkgconfig
doins "${T}"/bash-completion.pc
doenvd "${T}"/50bash_completion
}
pkg_postinst() {
if ! has_version "${CATEGORY}/${PN}"; then
elog "Any user can enable the module completions without editing their"
elog ".bashrc by running:"
elog
elog " eselect bashcomp enable <module>"
elog
elog "The system administrator can also be enable this globally with"
elog
elog " eselect bashcomp enable --global <module>"
elog
elog "Make sure you at least enable the base module! Additional completion"
elog "modules can be found by running"
elog
elog " eselect bashcomp list"
elog
elog "If you use non-login shells you still need to source"
elog "/etc/profile.d/bash-completion.sh in your ~/.bashrc."
fi
if has_version 'app-shells/zsh' ; then
elog "If you are interested in using the provided bash completion functions with"
elog "zsh, valuable tips on the effective use of bashcompinit are available:"
elog " http://www.zsh.org/mla/workers/2003/msg00046.html"
elog
fi
}

View File

@ -1,100 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-2.1.ebuild,v 1.8 2015/03/31 18:26:57 ulm Exp $
EAPI=5
inherit prefix
DESCRIPTION="Programmable Completion for bash"
HOMEPAGE="http://bash-completion.alioth.debian.org/"
SRC_URI="http://bash-completion.alioth.debian.org/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
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"
IUSE=""
RDEPEND="|| ( app-eselect/eselect-bashcomp <app-admin/eselect-1.3.7 )
|| ( >=app-shells/bash-3.2 app-shells/zsh )
sys-apps/miscfiles"
PDEPEND="app-shells/gentoo-bashcomp"
src_prepare() {
cp "${FILESDIR}"/bash-completion.sh-gentoo-1.2 "${T}"/bash-completion.sh || die
eprefixify "${T}"/bash-completion.sh
find completions -name 'Makefile*' -exec rm -f {} +
# Part of >=sys-apps/util-linux-2.23 wrt #468544
local file
for file in cal dmesg eject hexdump hwclock ionice look renice rtcwake; do
rm -f completions/${file}
done
# app-editors/vim-core:
rm -f completions/xxd
# net-misc/networkmanager:
rm -f completions/nmcli
}
src_configure() { :; } # no-op
src_compile() { :; } # no-op
src_install() {
# Gentoo specific bash-completion.sh file.
insinto /etc/profile.d
doins "${T}"/bash-completion.sh
# All files from contrib/ in source package get installed
insinto /usr/share/bash-completion
doins -r "${S}"/completions/*
awk -v D="$ED" '
BEGIN { out=".pre" }
/^# A lot of the following one-liners/ { out="base" }
/^# start of section containing completion functions called by other functions/ { out=".pre" }
/^# start of section containing completion functions for external programs/ { out="base" }
/^# source completion directory/ { out="" }
/^unset -f have/ { out=".post" }
out != "" { print > D"/usr/share/bash-completion/"out }' \
bash_completion || die "failed to split bash_completion"
dodoc AUTHORS CHANGES README
# This is backported from upstream 2.0 release. You can stop installing
# this file after 2.0 is in Portage and use the one from the tarball
# instead.
# Installed to datadir instead of libdir because bash-completion(s)
# are not ELF files.
insinto /usr/share/pkgconfig
doins "${FILESDIR}"/bash-completion.pc
}
pkg_postinst() {
if ! has_version "${CATEGORY}/${PN}"; then
elog "Any user can enable the module completions without editing their"
elog ".bashrc by running:"
elog
elog " eselect bashcomp enable <module>"
elog
elog "The system administrator can also be enable this globally with"
elog
elog " eselect bashcomp enable --global <module>"
elog
elog "Make sure you at least enable the base module! Additional completion"
elog "modules can be found by running"
elog
elog " eselect bashcomp list"
elog
elog "If you use non-login shells you still need to source"
elog "/etc/profile.d/bash-completion.sh in your ~/.bashrc."
fi
if has_version 'app-shells/zsh' ; then
elog "If you are interested in using the provided bash completion functions with"
elog "zsh, valuable tips on the effective use of bashcompinit are available:"
elog " http://www.zsh.org/mla/workers/2003/msg00046.html"
elog
fi
}

View File

@ -1,40 +1,48 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-2.1-r91.ebuild,v 1.4 2015/03/31 18:26:57 ulm Exp $
# $Id$
EAPI=5
BASHCOMP_P=bashcomp-2.0.1
inherit versionator
DESCRIPTION="Programmable Completion for bash"
HOMEPAGE="http://bash-completion.alioth.debian.org/"
SRC_URI="http://bash-completion.alioth.debian.org/files/${P}.tar.bz2
http://dev.gentoo.org/~mgorny/dist/bashcomp2-pre1.tar.gz"
SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz
https://dev.gentoo.org/~mgorny/dist/${BASHCOMP_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
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"
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"
IUSE=""
RDEPEND="|| ( >=app-shells/bash-4.1 app-shells/zsh )
RDEPEND=">=app-shells/bash-4.3_p30-r1
sys-apps/miscfiles
!app-eselect/eselect-bashcomp"
DEPEND="app-arch/xz-utils"
PDEPEND=">=app-shells/gentoo-bashcomp-20140911"
# Remove unwanted completions.
STRIP_COMPLETIONS=(
# Included in util-linux, bug #468544
cal dmesg eject hd hexdump hwclock ionice look ncal renice rtcwake
# Slackware package stuff, quite generic names cause collisions
# (e.g. with sys-apps/pacman)
explodepkg installpkg makepkg pkgtool removepkg upgradepkg
# Debian/Red Hat network stuff
ifdown ifup ifstatus
# Installed in app-editors/vim-core
xxd
# Now-dead symlinks to deprecated completions
hd ncal
)
src_prepare() {
epatch "${WORKDIR}"/bashcomp2-pre1/*.patch
epatch "${WORKDIR}/${BASHCOMP_P}/${P}"-*.patch
# Bug 543100
epatch "${FILESDIR}/${PN}-2.1-escape-characters.patch"
}
src_test() { :; } # Skip testsuite because of interactive shell wrt #477066
@ -43,27 +51,21 @@ src_install() {
# work-around race conditions, bug #526996
mkdir -p "${ED}"/usr/share/bash-completion/{completions,helpers} || die
default
emake DESTDIR="${D}" profiledir="${EPREFIX}"/etc/bash/bashrc.d install
# use the copies from >=sys-apps/util-linux-2.23 wrt #468544 -> hd and ncal
# becomes dead symlinks as a result
local file
for file in "${STRIP_COMPLETIONS[@]}"; do
rm "${ED}"/usr/share/bash-completion/completions/${file} || die
done
# use the copy from app-editors/vim-core:
rm "${ED}"/usr/share/bash-completion/completions/xxd || die
# use the copy from net-misc/networkmanager:
rm "${ED}"/usr/share/bash-completion/completions/nmcli || die
# remove deprecated completions (moved to other packages)
rm "${ED}"/usr/share/bash-completion/completions/_* || die
dodoc AUTHORS CHANGES README
# install the eselect module
insinto /usr/share/eselect/modules
doins "${WORKDIR}"/bashcomp2-pre1/bashcomp.eselect
doman "${WORKDIR}"/bashcomp2-pre1/bashcomp.eselect.5
doins "${WORKDIR}/${BASHCOMP_P}/bashcomp.eselect"
doman "${WORKDIR}/${BASHCOMP_P}/bashcomp.eselect.5"
}
pkg_postinst() {

View File

@ -1,15 +1,16 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-2.1-r93.ebuild,v 1.2 2015/03/31 18:26:57 ulm Exp $
# $Id$
EAPI=5
EAPI=6
BASHCOMP_P=bashcomp-2.0.2
inherit versionator
DESCRIPTION="Programmable Completion for bash"
HOMEPAGE="http://bash-completion.alioth.debian.org/"
SRC_URI="http://bash-completion.alioth.debian.org/files/${P}.tar.bz2
http://dev.gentoo.org/~mgorny/dist/bashcomp2-pre1.tar.gz"
HOMEPAGE="https://github.com/scop/bash-completion"
SRC_URI="https://github.com/scop/bash-completion/releases/download/${PV}/${P}.tar.xz
https://bitbucket.org/mgorny/bashcomp2/downloads/${BASHCOMP_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
@ -19,23 +20,36 @@ IUSE=""
RDEPEND=">=app-shells/bash-4.3_p30-r1
sys-apps/miscfiles
!app-eselect/eselect-bashcomp"
DEPEND="app-arch/xz-utils"
PDEPEND=">=app-shells/gentoo-bashcomp-20140911"
# Remove unwanted completions.
STRIP_COMPLETIONS=(
# Included in util-linux, bug #468544
cal dmesg eject hd hexdump hwclock ionice look ncal renice rtcwake
# Slackware package stuff, quite generic names cause collisions
# (e.g. with sys-apps/pacman)
explodepkg installpkg makepkg pkgtool removepkg upgradepkg
# Debian/Red Hat network stuff
ifdown ifup ifstatus
# Installed in app-editors/vim-core
xxd
# Now-dead symlinks to deprecated completions
hd ncal
# Installed by sys-apps/util-linux-2.28
mount umount mount.linux umount.linux
# Dumb symlink to mplayer, removed upstream in git
mpv
)
src_prepare() {
epatch "${WORKDIR}"/bashcomp2-pre1/*.patch
eapply "${WORKDIR}/${BASHCOMP_P}/${PN}"-2.1_p*.patch
# Bug 543100
eapply "${FILESDIR}/${PN}-2.1-escape-characters.patch"
eapply_user
}
src_test() { :; } # Skip testsuite because of interactive shell wrt #477066
@ -44,27 +58,21 @@ src_install() {
# work-around race conditions, bug #526996
mkdir -p "${ED}"/usr/share/bash-completion/{completions,helpers} || die
emake DESTDIR="${D}" profiledir=/etc/bash/bashrc.d install
emake DESTDIR="${D}" profiledir="${EPREFIX}"/etc/bash/bashrc.d install
# use the copies from >=sys-apps/util-linux-2.23 wrt #468544 -> hd and ncal
# becomes dead symlinks as a result
local file
for file in "${STRIP_COMPLETIONS[@]}"; do
rm "${ED}"/usr/share/bash-completion/completions/${file} || die
done
# remove deprecated completions (moved to other packages)
rm "${ED}"/usr/share/bash-completion/completions/_* || die
# use the copy from app-editors/vim-core:
rm "${ED}"/usr/share/bash-completion/completions/xxd || die
# use the copy from net-misc/networkmanager:
rm "${ED}"/usr/share/bash-completion/completions/nmcli || die
dodoc AUTHORS CHANGES README
dodoc AUTHORS CHANGES CONTRIBUTING.md README.md
# install the eselect module
insinto /usr/share/eselect/modules
doins "${WORKDIR}"/bashcomp2-pre1/bashcomp.eselect
doman "${WORKDIR}"/bashcomp2-pre1/bashcomp.eselect.5
doins "${WORKDIR}/${BASHCOMP_P}/bashcomp.eselect"
doman "${WORKDIR}/${BASHCOMP_P}/bashcomp.eselect.5"
}
pkg_postinst() {

View File

@ -1,15 +1,16 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-2.1-r92.ebuild,v 1.3 2015/03/31 18:26:57 ulm Exp $
# $Id$
EAPI=5
EAPI=6
BASHCOMP_P=bashcomp-2.0.2
inherit versionator
DESCRIPTION="Programmable Completion for bash"
HOMEPAGE="http://bash-completion.alioth.debian.org/"
SRC_URI="http://bash-completion.alioth.debian.org/files/${P}.tar.bz2
http://dev.gentoo.org/~mgorny/dist/bashcomp2-pre1.tar.gz"
HOMEPAGE="https://github.com/scop/bash-completion"
SRC_URI="https://github.com/scop/bash-completion/releases/download/${PV}/${P}.tar.xz
https://bitbucket.org/mgorny/bashcomp2/downloads/${BASHCOMP_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
@ -19,22 +20,33 @@ IUSE=""
RDEPEND=">=app-shells/bash-4.3_p30-r1
sys-apps/miscfiles
!app-eselect/eselect-bashcomp"
DEPEND="app-arch/xz-utils"
PDEPEND=">=app-shells/gentoo-bashcomp-20140911"
# Remove unwanted completions.
STRIP_COMPLETIONS=(
# Included in util-linux, bug #468544
cal dmesg eject hd hexdump hwclock ionice look ncal renice rtcwake
# Slackware package stuff, quite generic names cause collisions
# (e.g. with sys-apps/pacman)
explodepkg installpkg makepkg pkgtool removepkg upgradepkg
# Debian/Red Hat network stuff
ifdown ifup ifstatus
# Installed in app-editors/vim-core
xxd
# Now-dead symlinks to deprecated completions
hd ncal
# Installed by sys-apps/util-linux-2.28
mount umount mount.linux umount.linux
)
src_prepare() {
epatch "${WORKDIR}"/bashcomp2-pre1/*.patch
eapply "${WORKDIR}/${BASHCOMP_P}/${PN}"-2.1_p*.patch
# Bug 543100, update bug 601194
eapply "${FILESDIR}/${PN}-2.1-escape-characters-r1.patch"
eapply_user
}
src_test() { :; } # Skip testsuite because of interactive shell wrt #477066
@ -43,27 +55,21 @@ src_install() {
# work-around race conditions, bug #526996
mkdir -p "${ED}"/usr/share/bash-completion/{completions,helpers} || die
emake DESTDIR="${D}" profiledir=/etc/bash/bashrc.d install
emake DESTDIR="${D}" profiledir="${EPREFIX}"/etc/bash/bashrc.d install
# use the copies from >=sys-apps/util-linux-2.23 wrt #468544 -> hd and ncal
# becomes dead symlinks as a result
local file
for file in "${STRIP_COMPLETIONS[@]}"; do
rm "${ED}"/usr/share/bash-completion/completions/${file} || die
done
# remove deprecated completions (moved to other packages)
rm "${ED}"/usr/share/bash-completion/completions/_* || die
# use the copy from app-editors/vim-core:
rm "${ED}"/usr/share/bash-completion/completions/xxd || die
# use the copy from net-misc/networkmanager:
rm "${ED}"/usr/share/bash-completion/completions/nmcli || die
dodoc AUTHORS CHANGES README
dodoc AUTHORS CHANGES CONTRIBUTING.md README.md
# install the eselect module
insinto /usr/share/eselect/modules
doins "${WORKDIR}"/bashcomp2-pre1/bashcomp.eselect
doman "${WORKDIR}"/bashcomp2-pre1/bashcomp.eselect.5
doins "${WORKDIR}/${BASHCOMP_P}/bashcomp.eselect"
doman "${WORKDIR}/${BASHCOMP_P}/bashcomp.eselect.5"
}
pkg_postinst() {

View File

@ -1,16 +1,16 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-2.1_p20141224.ebuild,v 1.3 2015/03/31 18:26:57 ulm Exp $
# $Id$
EAPI=5
EAPI=6
BASHCOMP_P=bashcomp-2.0.1
BASHCOMP_P=bashcomp-2.0.2
inherit versionator
DESCRIPTION="Programmable Completion for bash"
HOMEPAGE="http://bash-completion.alioth.debian.org/"
SRC_URI="http://dev.gentoo.org/~mgorny/dist/${P}.tar.xz
http://dev.gentoo.org/~mgorny/dist/${BASHCOMP_P}.tar.bz2"
HOMEPAGE="https://github.com/scop/bash-completion"
SRC_URI="https://github.com/scop/bash-completion/releases/download/${PV}/${P}.tar.xz
https://bitbucket.org/mgorny/bashcomp2/downloads/${BASHCOMP_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
@ -37,10 +37,16 @@ STRIP_COMPLETIONS=(
# Now-dead symlinks to deprecated completions
hd ncal
# Installed by sys-apps/util-linux-2.28
mount umount mount.linux umount.linux
)
src_prepare() {
epatch "${WORKDIR}/${BASHCOMP_P}/${P}"-*.patch
eapply "${WORKDIR}/${BASHCOMP_P}/${PN}"-2.1_p*.patch
# Bug 543100
eapply "${FILESDIR}/${PN}-2.1-escape-characters.patch"
eapply_user
}
src_test() { :; } # Skip testsuite because of interactive shell wrt #477066
@ -58,7 +64,7 @@ src_install() {
# remove deprecated completions (moved to other packages)
rm "${ED}"/usr/share/bash-completion/completions/_* || die
dodoc AUTHORS CHANGES README
dodoc AUTHORS CHANGES CONTRIBUTING.md README.md
# install the eselect module
insinto /usr/share/eselect/modules

View File

@ -0,0 +1,27 @@
--- bash-completion-2.1/bash_completion.orig 2014-03-09 17:38:14 +0000
+++ bash-completion-2.1/bash_completion 2014-03-13 23:26:44 +0000
@@ -536,13 +536,23 @@
# @param $2 Name of variable to return result to
_quote_readline_by_ref()
{
- if [[ $1 == \'* ]]; then
+ if [ -z "$1" ]; then
+ # avoid quoting if empty
+ printf -v $2 %s "$1"
+ elif [[ $1 == \'* ]]; then
# Leave out first character
printf -v $2 %s "${1:1}"
+ elif [[ $1 == \~* ]]; then
+ # avoid escaping first ~
+ printf -v $2 \~%q "${1:1}"
else
printf -v $2 %q "$1"
fi
+ # Replace double escaping ( \\ ) by single ( \ )
+ # This happens always when argument is already escaped at cmdline,
+ # and passed to this function as e.g.: file\ with\ spaces
+ [[ ${!2} == *\\* ]] && printf -v $2 %s "${1//\\\\/\\}"
# If result becomes quoted like this: $'string', re-evaluate in order to
# drop the additional quoting. See also: http://www.mail-archive.com/
# bash-completion-devel@lists.alioth.debian.org/msg01942.html

View File

@ -0,0 +1,27 @@
--- bash-completion-2.1/bash_completion.orig 2014-03-09 17:38:14 +0000
+++ bash-completion-2.1/bash_completion 2014-03-13 23:26:44 +0000
@@ -536,13 +536,23 @@
# @param $2 Name of variable to return result to
_quote_readline_by_ref()
{
- if [[ $1 == \'* ]]; then
+ if [ -z "$1" ]; then
+ # avoid quoting if empty
+ printf -v $2 %s "$1"
+ elif [[ $1 == \'* ]]; then
# Leave out first character
printf -v $2 %s "${1:1}"
+ elif [[ $1 == ~* ]]; then
+ # avoid escaping first ~
+ printf -v $2 ~%q "${1:1}"
else
printf -v $2 %q "$1"
fi
+ # Replace double escaping ( \\ ) by single ( \ )
+ # This happens always when argument is already escaped at cmdline,
+ # and passed to this function as e.g.: file\ with\ spaces
+ [[ ${!2} == *\\* ]] && printf -v $2 %s "${1//\\\\/\\}"
# If result becomes quoted like this: $'string', re-evaluate in order to
# drop the additional quoting. See also: http://www.mail-archive.com/
# bash-completion-devel@lists.alioth.debian.org/msg01942.html

View File

@ -1,9 +0,0 @@
prefix=/usr
compatdir=/etc/bash_completion.d
completionsdir=${prefix}/share/bash-completion
helpersdir=${prefix}/share/bash-completion/helpers
Name: bash-completion
Description: programmable completion for the bash shell
URL: http://bash-completion.alioth.debian.org/
Version: 1.3

View File

@ -1,52 +0,0 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/files/bash-completion.sh-gentoo-1.2,v 1.1 2010/07/02 15:07:33 darkside Exp $
# Check for interactive bash and that we haven't already been sourced.
[ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION" ] && return
# Check for recent enough version of bash.
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
if [ $bmajor -gt 3 ] || [ $bmajor -eq 3 -a $bminor -ge 2 ]; then
_load_completions() {
declare f x loaded_pre=false
for f; do
if [[ -f $f ]]; then
# Prevent loading base twice, initially and via glob
if $loaded_pre && [[ $f == */base ]]; then
continue
fi
# Some modules, including base, depend on the definitions
# in .pre. See the ebuild for how this is created.
if ! $loaded_pre; then
if [[ ${BASH_COMPLETION-unset} == unset ]]; then
BASH_COMPLETION="@GENTOO_PORTAGE_EPREFIX@/usr/share/bash-completion/base"
fi
source "@GENTOO_PORTAGE_EPREFIX@/usr/share/bash-completion/.pre"
loaded_pre=true
fi
source "$f"
fi
done
# Clean up
$loaded_pre && source "@GENTOO_PORTAGE_EPREFIX@/usr/share/bash-completion/.post"
unset -f _load_completions # not designed to be called more than once
}
# 1. Load base, if eselected. This was previously known as
# /etc/bash_completion
# 2. Load completion modules, maintained via eselect bashcomp --global
# 3. Load user completion modules, maintained via eselect bashcomp
# 4. Load user completion file last, overrides modules at user discretion
# This order is subject to change once upstream decides on something.
_load_completions \
"@GENTOO_PORTAGE_EPREFIX@/etc/bash_completion.d/base" \
~/.bash_completion.d/base \
"@GENTOO_PORTAGE_EPREFIX@/etc/bash_completion.d/"* \
~/.bash_completion.d/* \
~/.bash_completion
fi
unset bash bmajor bminor

View File

@ -1,11 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>shell-tools</herd>
<maintainer>
<maintainer type="person">
<email>mgorny@gentoo.org</email>
<name>Michał Górny</name>
</maintainer>
<maintainer type="project">
<email>shell-tools@gentoo.org</email>
<name>Gentoo Shell Tools Project</name>
</maintainer>
<longdescription>
Since v2.04, bash has allowed you to intelligently program and extend its
standard completion behavior to achieve complex command lines with just a

View File

@ -1,12 +0,0 @@
DEFINED_PHASES=compile configure install postinst prepare
DESCRIPTION=Programmable Completion for bash
EAPI=3
HOMEPAGE=http://bash-completion.alioth.debian.org/
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
LICENSE=GPL-2
PDEPEND=app-shells/gentoo-bashcomp
RDEPEND=|| ( app-eselect/eselect-bashcomp <app-admin/eselect-1.3.7 ) || ( >=app-shells/bash-3.2 app-shells/zsh ) sys-apps/miscfiles
SLOT=0
SRC_URI=http://bash-completion.alioth.debian.org/files/bash-completion-1.3.tar.bz2
_eclasses_=prefix e7f2b9c6e57342e5d25eac22fce23062
_md5_=9bdeddbcd5abe2e37706cbed3edcf633

View File

@ -1,12 +0,0 @@
DEFINED_PHASES=compile configure install postinst prepare
DESCRIPTION=Programmable Completion for bash
EAPI=5
HOMEPAGE=http://bash-completion.alioth.debian.org/
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
LICENSE=GPL-2
PDEPEND=app-shells/gentoo-bashcomp
RDEPEND=|| ( app-eselect/eselect-bashcomp <app-admin/eselect-1.3.7 ) || ( >=app-shells/bash-3.2 app-shells/zsh ) sys-apps/miscfiles
SLOT=0
SRC_URI=http://bash-completion.alioth.debian.org/files/bash-completion-2.1.tar.bz2
_eclasses_=prefix e7f2b9c6e57342e5d25eac22fce23062
_md5_=3bd2b230b2f132b0cbd10d4c28351bf8

View File

@ -1,12 +0,0 @@
DEFINED_PHASES=compile configure install postinst prepare
DESCRIPTION=Programmable Completion for bash
EAPI=5
HOMEPAGE=http://bash-completion.alioth.debian.org/
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
LICENSE=GPL-2
PDEPEND=app-shells/gentoo-bashcomp
RDEPEND=|| ( app-eselect/eselect-bashcomp <app-admin/eselect-1.3.7 ) || ( >=app-shells/bash-3.2 app-shells/zsh ) sys-apps/miscfiles
SLOT=0
SRC_URI=http://bash-completion.alioth.debian.org/files/bash-completion-2.1.tar.bz2
_eclasses_=bash-completion-r1 acf715fa09463f043fbfdc1640f3fb85 multilib 3972ca401cf7dbb430df9995f5d8d580 prefix e7f2b9c6e57342e5d25eac22fce23062 toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85
_md5_=0175dddd24b14f4b639183e36bdc3a99

View File

@ -1,11 +0,0 @@
DEFINED_PHASES=install postinst prepare test
DESCRIPTION=Programmable Completion for bash
EAPI=5
HOMEPAGE=http://bash-completion.alioth.debian.org/
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
LICENSE=GPL-2
RDEPEND=|| ( >=app-shells/bash-4.1 app-shells/zsh ) sys-apps/miscfiles !app-eselect/eselect-bashcomp
SLOT=0
SRC_URI=http://bash-completion.alioth.debian.org/files/bash-completion-2.1.tar.bz2 http://dev.gentoo.org/~mgorny/dist/bashcomp2-pre1.tar.gz
_eclasses_=eutils 9d81603248f2ba3ec59124320d123e5e multilib 3972ca401cf7dbb430df9995f5d8d580 toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
_md5_=2dc8152e867826f74c971e16562bc608

View File

@ -0,0 +1,13 @@
DEFINED_PHASES=install postinst prepare test
DEPEND=app-arch/xz-utils
DESCRIPTION=Programmable Completion for bash
EAPI=5
HOMEPAGE=http://bash-completion.alioth.debian.org/
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
LICENSE=GPL-2
PDEPEND=>=app-shells/gentoo-bashcomp-20140911
RDEPEND=>=app-shells/bash-4.3_p30-r1 sys-apps/miscfiles !app-eselect/eselect-bashcomp
SLOT=0
SRC_URI=https://dev.gentoo.org/~mgorny/dist/bash-completion-2.1_p20141224.tar.xz https://dev.gentoo.org/~mgorny/dist/bashcomp-2.0.1.tar.bz2
_eclasses_=eutils 9d81603248f2ba3ec59124320d123e5e multilib 3972ca401cf7dbb430df9995f5d8d580 toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
_md5_=eb2b5654c93dac70270f960e87e09e02

View File

@ -1,13 +1,13 @@
DEFINED_PHASES=install postinst prepare test
DEPEND=app-arch/xz-utils
DESCRIPTION=Programmable Completion for bash
EAPI=5
HOMEPAGE=http://bash-completion.alioth.debian.org/
EAPI=6
HOMEPAGE=https://github.com/scop/bash-completion
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
LICENSE=GPL-2
PDEPEND=>=app-shells/gentoo-bashcomp-20140911
RDEPEND=>=app-shells/bash-4.3_p30-r1 sys-apps/miscfiles !app-eselect/eselect-bashcomp
SLOT=0
SRC_URI=http://dev.gentoo.org/~mgorny/dist/bash-completion-2.1_p20141224.tar.xz http://dev.gentoo.org/~mgorny/dist/bashcomp-2.0.1.tar.bz2
SRC_URI=https://github.com/scop/bash-completion/releases/download/2.3/bash-completion-2.3.tar.xz https://bitbucket.org/mgorny/bashcomp2/downloads/bashcomp-2.0.2.tar.gz
_eclasses_=eutils 9d81603248f2ba3ec59124320d123e5e multilib 3972ca401cf7dbb430df9995f5d8d580 toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
_md5_=e0cb0a75a459e79b7f58ee4d9ff1ab21
_md5_=f3d06941e00e1128c8599788f6d0a918

View File

@ -1,12 +1,13 @@
DEFINED_PHASES=install postinst prepare test
DEPEND=app-arch/xz-utils
DESCRIPTION=Programmable Completion for bash
EAPI=5
HOMEPAGE=http://bash-completion.alioth.debian.org/
EAPI=6
HOMEPAGE=https://github.com/scop/bash-completion
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
LICENSE=GPL-2
PDEPEND=>=app-shells/gentoo-bashcomp-20140911
RDEPEND=>=app-shells/bash-4.3_p30-r1 sys-apps/miscfiles !app-eselect/eselect-bashcomp
SLOT=0
SRC_URI=http://bash-completion.alioth.debian.org/files/bash-completion-2.1.tar.bz2 http://dev.gentoo.org/~mgorny/dist/bashcomp2-pre1.tar.gz
SRC_URI=https://github.com/scop/bash-completion/releases/download/2.4/bash-completion-2.4.tar.xz https://bitbucket.org/mgorny/bashcomp2/downloads/bashcomp-2.0.2.tar.gz
_eclasses_=eutils 9d81603248f2ba3ec59124320d123e5e multilib 3972ca401cf7dbb430df9995f5d8d580 toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
_md5_=752a40b74d27389c3f1450bed0701cca
_md5_=0ccd480c9fb9934e2b6ff49c1ddea8e4

View File

@ -1,11 +1,13 @@
DEFINED_PHASES=install postinst prepare test
DEPEND=app-arch/xz-utils
DESCRIPTION=Programmable Completion for bash
EAPI=5
HOMEPAGE=http://bash-completion.alioth.debian.org/
EAPI=6
HOMEPAGE=https://github.com/scop/bash-completion
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
LICENSE=GPL-2
PDEPEND=>=app-shells/gentoo-bashcomp-20140911
RDEPEND=>=app-shells/bash-4.3_p30-r1 sys-apps/miscfiles !app-eselect/eselect-bashcomp
SLOT=0
SRC_URI=http://bash-completion.alioth.debian.org/files/bash-completion-2.1.tar.bz2 http://dev.gentoo.org/~mgorny/dist/bashcomp2-pre1.tar.gz
SRC_URI=https://github.com/scop/bash-completion/releases/download/2.4/bash-completion-2.4.tar.xz https://bitbucket.org/mgorny/bashcomp2/downloads/bashcomp-2.0.2.tar.gz
_eclasses_=eutils 9d81603248f2ba3ec59124320d123e5e multilib 3972ca401cf7dbb430df9995f5d8d580 toolchain-funcs 7a212e5e01adfa4805c9978366e6ee85 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
_md5_=0109e74121ed0de3fd3b9bdaec85099f
_md5_=ae42e21efc6f04b01b9a0a67d99a8c61