From: Aron Griffis Date: Mon, 20 Nov 2006 23:06:15 +0000 (+0000) Subject: Break /etc/bash_completion into /usr/share/bash-completion/{.pre,base,.post} X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0dad47c19ca10b54b9bcf45d3ead835db67b9dc0;p=gentoo.git Break /etc/bash_completion into /usr/share/bash-completion/{.pre,base,.post} so that the base definitions can be eselected. Rename /etc/profile.d/bash-completion to have a .sh extension so it's loaded automatically by /etc/profile. This is okay because it doesn't do anything until modules have been eselected. All of this makes it possible to configure bash-completions entirely with eselect instead of needing to add snippets to one's .bashrc Package-Manager: portage-2.1.2_rc1-r7 --- diff --git a/app-shells/bash-completion/ChangeLog b/app-shells/bash-completion/ChangeLog index c951548970c3..9dd00c78676b 100644 --- a/app-shells/bash-completion/ChangeLog +++ b/app-shells/bash-completion/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for app-shells/bash-completion # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.133 2006/03/02 12:03:27 ka0ttic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.134 2006/11/20 23:06:15 agriffis Exp $ + +*bash-completion-20060301-r1 (20 Nov 2006) + + 20 Nov 2006; Aron Griffis +files/bash-completion.sh, + +bash-completion-20060301-r1.ebuild: + Break /etc/bash_completion into /usr/share/bash-completion/{.pre,base,.post} + so that the base definitions can be eselected. Rename + /etc/profile.d/bash-completion to have a .sh extension so it's loaded + automatically by /etc/profile. This is okay because it doesn't do anything + until modules have been eselected. All of this makes it possible to + configure bash-completions entirely with eselect instead of needing to add + snippets to one's .bashrc *bash-completion-20060301 (02 Mar 2006) diff --git a/app-shells/bash-completion/Manifest b/app-shells/bash-completion/Manifest index 208f99a80149..b917aa56af13 100644 --- a/app-shells/bash-completion/Manifest +++ b/app-shells/bash-completion/Manifest @@ -1,82 +1,117 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 1991d56fb5804ea023defb9b01dfcfc0 ChangeLog 23492 -RMD160 a83c31d9d10e1c4a639c6f4b502b0a2882082008 ChangeLog 23492 -SHA256 012b524499c938cad0bc540a2b1fa3d9f180c60bdd7181a87ab5c35e76a64cd4 ChangeLog 23492 -MD5 d16038abdb251bdd8d087142cb14f4a6 bash-completion-20050121-r10.ebuild 2000 -RMD160 cabc7ad1e3558b64e43c00be5163bf999cd33be1 bash-completion-20050121-r10.ebuild 2000 -SHA256 67283fc48236b3def3a0b9722e01de32509eac1e186c12dfab26044421406cb0 bash-completion-20050121-r10.ebuild 2000 -MD5 66eb82e5a9df017daec7510a9a188f47 bash-completion-20050721.ebuild 2009 -RMD160 bf8c44338677996c7c8d8c29663dfa57d57c59ab bash-completion-20050721.ebuild 2009 -SHA256 7e26826d461ff73a183cbe5f9174901ae9f305b27c0993b8a1d2d4141f47f531 bash-completion-20050721.ebuild 2009 -MD5 72c6afed9ca9eaa1294b83fd960a378d bash-completion-20060301.ebuild 2059 -RMD160 613c723739df569c0acaeb468b73d1d9b7b96f57 bash-completion-20060301.ebuild 2059 -SHA256 97ad74c9a03ee26a05fc8028df990f1518b8711993f00f5224d15a79b5f8883b bash-completion-20060301.ebuild 2059 +AUX 20050121/01_all_gkrellm.diff 246 RMD160 def8fc4574f42096fc86308d4d57a0c502fec2a9 SHA1 88443eb4d472c54bb5219f083eb71b7cd61dc1d5 SHA256 a0fe56bf9b04331b5ba1eab3b4bc81ad5d6064770e5753be095078d8f3fd5d14 MD5 bc7bb8b50049a7c6d412b60b273b55d4 files/20050121/01_all_gkrellm.diff 246 RMD160 def8fc4574f42096fc86308d4d57a0c502fec2a9 files/20050121/01_all_gkrellm.diff 246 SHA256 a0fe56bf9b04331b5ba1eab3b4bc81ad5d6064770e5753be095078d8f3fd5d14 files/20050121/01_all_gkrellm.diff 246 +AUX 20050121/02_all_cvs.diff 772 RMD160 7b02a7f077f518171c4c098594aeba092f762834 SHA1 f7973ee916088795b95072b9a34784aa405f5a97 SHA256 d7ba6efac6021219e3531351f6de7207faed307a71b361c19e4ec6c0363dfa70 MD5 a5a7bf3f82466146a212f2e54a5bb1d9 files/20050121/02_all_cvs.diff 772 RMD160 7b02a7f077f518171c4c098594aeba092f762834 files/20050121/02_all_cvs.diff 772 SHA256 d7ba6efac6021219e3531351f6de7207faed307a71b361c19e4ec6c0363dfa70 files/20050121/02_all_cvs.diff 772 +AUX 20050121/03_all_timidity.diff 844 RMD160 b0a6b5b270cd1b15598511d909d81b4ae4921211 SHA1 458e204ecce53f7dc0bca50848373b7c9e3c8f5b SHA256 3ed942e1b81c5a171407c34c95cca871d5f5b0c4354fde66feef29c5b0caa891 MD5 ffcc2a25851c78eed228d5bf9a34a471 files/20050121/03_all_timidity.diff 844 RMD160 b0a6b5b270cd1b15598511d909d81b4ae4921211 files/20050121/03_all_timidity.diff 844 SHA256 3ed942e1b81c5a171407c34c95cca871d5f5b0c4354fde66feef29c5b0caa891 files/20050121/03_all_timidity.diff 844 +AUX 20050121/04_all_mplayer.diff 974 RMD160 f3bc0b002e6097c50df603323ae42dc1624e0544 SHA1 f72cfb380880185dc5b69c94413c80f0f6439d87 SHA256 dfc491ec2fa944d86f39778dcc34091ac6bbb1892b9ebb7bebc4515f06093fd6 MD5 a68ebcc5af6af06535fcc9895b6066b3 files/20050121/04_all_mplayer.diff 974 RMD160 f3bc0b002e6097c50df603323ae42dc1624e0544 files/20050121/04_all_mplayer.diff 974 SHA256 dfc491ec2fa944d86f39778dcc34091ac6bbb1892b9ebb7bebc4515f06093fd6 files/20050121/04_all_mplayer.diff 974 +AUX 20050121/05_all_muttng.diff 2293 RMD160 306e97ddcae57b5a7ba6eb71de70ba885152a182 SHA1 680d3ec1c4d4322815e1df9fc39ac219649fd6af SHA256 19e81c934607b82b66dab95ae62b59a7bca6429f62b37c4d43171d13f4656f12 MD5 61f83b8578faa6f1d522ce1a9411e0cd files/20050121/05_all_muttng.diff 2293 RMD160 306e97ddcae57b5a7ba6eb71de70ba885152a182 files/20050121/05_all_muttng.diff 2293 SHA256 19e81c934607b82b66dab95ae62b59a7bca6429f62b37c4d43171d13f4656f12 files/20050121/05_all_muttng.diff 2293 +AUX 20050121/06_all_tar.diff 827 RMD160 80b2cb67cb2a7d211c3941ad22d35d46c65f5370 SHA1 087af46289f5ea721a66a8a69ec4045ae03f34c4 SHA256 f3128118d6259969b8e45797b81c0feea23c69c649d188321de207034a15f565 MD5 31476209402957127cb06cb385b81417 files/20050121/06_all_tar.diff 827 RMD160 80b2cb67cb2a7d211c3941ad22d35d46c65f5370 files/20050121/06_all_tar.diff 827 SHA256 f3128118d6259969b8e45797b81c0feea23c69c649d188321de207034a15f565 files/20050121/06_all_tar.diff 827 +AUX 20050121/07_all_find.diff 947 RMD160 48b9380478716bb934cd320be6b7588f743033f9 SHA1 68a5bb7a21097f2d6c2ba2d2c9d58e01a68f15a0 SHA256 c58c0a2a30b40cf7fcbb8bba92188f1dd2ef4ec17b02f97f83c0865e16b5e945 MD5 5a5965b5055a1d6ee5d7ae884bc0cc18 files/20050121/07_all_find.diff 947 RMD160 48b9380478716bb934cd320be6b7588f743033f9 files/20050121/07_all_find.diff 947 SHA256 c58c0a2a30b40cf7fcbb8bba92188f1dd2ef4ec17b02f97f83c0865e16b5e945 files/20050121/07_all_find.diff 947 +AUX 20050121/08_all_lvm.diff 868 RMD160 2d23602ddedb1447331b218a45a1b2b170ad5914 SHA1 ca05ff77b591262e9e01fae0b5414ede807cae05 SHA256 a7065c5b75ab7bcef9151d8611c6b1d3fa8cf3fe0715a174ff02d8de4e808b81 MD5 d53ba451ff7064515327649c28ec37fb files/20050121/08_all_lvm.diff 868 RMD160 2d23602ddedb1447331b218a45a1b2b170ad5914 files/20050121/08_all_lvm.diff 868 SHA256 a7065c5b75ab7bcef9151d8611c6b1d3fa8cf3fe0715a174ff02d8de4e808b81 files/20050121/08_all_lvm.diff 868 +AUX 20050121/09_all_command.diff 492 RMD160 9b28f3dcaaa5be0d2773feee3562ad19b2ef33c2 SHA1 a638150e2be4c06bab53b8e2df48a7f97a5f5d57 SHA256 e7a928637bdb777366f27baf495854d8a2a444b47e34c9d429cc0f9d0c6f6265 MD5 bb517a3e3dea3755291f4629330481f2 files/20050121/09_all_command.diff 492 RMD160 9b28f3dcaaa5be0d2773feee3562ad19b2ef33c2 files/20050121/09_all_command.diff 492 SHA256 e7a928637bdb777366f27baf495854d8a2a444b47e34c9d429cc0f9d0c6f6265 files/20050121/09_all_command.diff 492 +AUX 20050721/01_all_gkrellm.diff 246 RMD160 def8fc4574f42096fc86308d4d57a0c502fec2a9 SHA1 88443eb4d472c54bb5219f083eb71b7cd61dc1d5 SHA256 a0fe56bf9b04331b5ba1eab3b4bc81ad5d6064770e5753be095078d8f3fd5d14 MD5 bc7bb8b50049a7c6d412b60b273b55d4 files/20050721/01_all_gkrellm.diff 246 RMD160 def8fc4574f42096fc86308d4d57a0c502fec2a9 files/20050721/01_all_gkrellm.diff 246 SHA256 a0fe56bf9b04331b5ba1eab3b4bc81ad5d6064770e5753be095078d8f3fd5d14 files/20050721/01_all_gkrellm.diff 246 +AUX 20050721/02_all_cvs.diff 772 RMD160 7b02a7f077f518171c4c098594aeba092f762834 SHA1 f7973ee916088795b95072b9a34784aa405f5a97 SHA256 d7ba6efac6021219e3531351f6de7207faed307a71b361c19e4ec6c0363dfa70 MD5 a5a7bf3f82466146a212f2e54a5bb1d9 files/20050721/02_all_cvs.diff 772 RMD160 7b02a7f077f518171c4c098594aeba092f762834 files/20050721/02_all_cvs.diff 772 SHA256 d7ba6efac6021219e3531351f6de7207faed307a71b361c19e4ec6c0363dfa70 files/20050721/02_all_cvs.diff 772 +AUX 20050721/03_all_find.diff 947 RMD160 48b9380478716bb934cd320be6b7588f743033f9 SHA1 68a5bb7a21097f2d6c2ba2d2c9d58e01a68f15a0 SHA256 c58c0a2a30b40cf7fcbb8bba92188f1dd2ef4ec17b02f97f83c0865e16b5e945 MD5 5a5965b5055a1d6ee5d7ae884bc0cc18 files/20050721/03_all_find.diff 947 RMD160 48b9380478716bb934cd320be6b7588f743033f9 files/20050721/03_all_find.diff 947 SHA256 c58c0a2a30b40cf7fcbb8bba92188f1dd2ef4ec17b02f97f83c0865e16b5e945 files/20050721/03_all_find.diff 947 +AUX 20050721/04_all_command.diff 492 RMD160 9b28f3dcaaa5be0d2773feee3562ad19b2ef33c2 SHA1 a638150e2be4c06bab53b8e2df48a7f97a5f5d57 SHA256 e7a928637bdb777366f27baf495854d8a2a444b47e34c9d429cc0f9d0c6f6265 MD5 bb517a3e3dea3755291f4629330481f2 files/20050721/04_all_command.diff 492 RMD160 9b28f3dcaaa5be0d2773feee3562ad19b2ef33c2 files/20050721/04_all_command.diff 492 SHA256 e7a928637bdb777366f27baf495854d8a2a444b47e34c9d429cc0f9d0c6f6265 files/20050721/04_all_command.diff 492 +AUX 20060301/01_all_no_xine.diff 868 RMD160 87c39896ac86c3264a0e4f75a6a36c5768671abc SHA1 4f321f528a7ad4f6fe6db1136f8dd7284c4d6746 SHA256 2375a581a7d1dee5872e082bba59620f8ffd6fc0aea2916aada35db6f11c7144 MD5 446dcb05f2c367b96e6bd5d03f7e88e3 files/20060301/01_all_no_xine.diff 868 RMD160 87c39896ac86c3264a0e4f75a6a36c5768671abc files/20060301/01_all_no_xine.diff 868 SHA256 2375a581a7d1dee5872e082bba59620f8ffd6fc0aea2916aada35db6f11c7144 files/20060301/01_all_no_xine.diff 868 +AUX 20060301/02_all_mplayer_flac.diff 481 RMD160 dec76457b90b7c745e6e9027a4c15d7cc2932f8c SHA1 ece53ed36bee8536c411508bf9120e0a17cd20cc SHA256 6f3efc7cf2b0d52f99f1f9d402d4be0c3d619e00275b599eb60eb47f265d02e7 MD5 47b4e0365c93cc9c2b7ae8560fe81427 files/20060301/02_all_mplayer_flac.diff 481 RMD160 dec76457b90b7c745e6e9027a4c15d7cc2932f8c files/20060301/02_all_mplayer_flac.diff 481 SHA256 6f3efc7cf2b0d52f99f1f9d402d4be0c3d619e00275b599eb60eb47f265d02e7 files/20060301/02_all_mplayer_flac.diff 481 +AUX bash-completion 724 RMD160 dc15f6b02f08a2fa656fa2d0c9ed15d20a7b9dc8 SHA1 d71224475d73b134085bf5f70fb1eb311397cae2 SHA256 6898275f2b0ab67af4b35c8a239d04a233e0c252acb5ed76692fd65881d3be0e MD5 3b7f1d6155d6deff5812264ef6bc4c07 files/bash-completion 724 RMD160 dc15f6b02f08a2fa656fa2d0c9ed15d20a7b9dc8 files/bash-completion 724 SHA256 6898275f2b0ab67af4b35c8a239d04a233e0c252acb5ed76692fd65881d3be0e files/bash-completion 724 -MD5 8872557b2357f405c7c702497b2fdf68 files/digest-bash-completion-20050121-r10 76 -RMD160 deb47ab0bbf244966363fb8031febf6ff1d25d0c files/digest-bash-completion-20050121-r10 76 -SHA256 0efc6025548096b9d0a2c18ac016e15b6984bdc9c08cc59a6c744b583727dcb6 files/digest-bash-completion-20050121-r10 76 -MD5 b1cfae1023e07fa54d4d7eba57de0f7a files/digest-bash-completion-20050721 76 -RMD160 7dd798bc633204cf5353c6aadac1c7f9ab714c6e files/digest-bash-completion-20050721 76 -SHA256 371f0a0f432d2d023837cfde177ac40ec42f06f68ae725314a4a1ac3f7cbb882 files/digest-bash-completion-20050721 76 -MD5 c2f575e2eb05dcb99e4715921cf0ee65 files/digest-bash-completion-20060301 277 -RMD160 25c058254d036eb2d95cbd1394a48e2e30b16c73 files/digest-bash-completion-20060301 277 -SHA256 6db83773985ad0568d96f86d5b972bd85777b3feb321961823cff1aaba5edb5b files/digest-bash-completion-20060301 277 +AUX bash-completion.sh 1473 RMD160 ab07700e6b7c8937c1efa972c33e40213ba8350b SHA1 41c7dc5a9c38d4d4e7af95b654511a7eb6a38388 SHA256 c1985b7deeb24db7899bde9ab01fcd04f7866c14d815061b49669ac14d38dbd7 +MD5 ddb01a4025fdec3cc66a746a44beaf14 files/bash-completion.sh 1473 +RMD160 ab07700e6b7c8937c1efa972c33e40213ba8350b files/bash-completion.sh 1473 +SHA256 c1985b7deeb24db7899bde9ab01fcd04f7866c14d815061b49669ac14d38dbd7 files/bash-completion.sh 1473 +DIST bash-completion-20050121.tar.bz2 90140 RMD160 3804cb7b0824d69a45113caf83c3996266e60915 SHA1 395f67db99dd3588484a66b3681300d3f1d5de0e SHA256 cef765204a7b507a38179156e2e6f0ca3a05797821b645fc58e33c5082587531 +DIST bash-completion-20050721.tar.bz2 92923 RMD160 6e1c25572d68a832bca4974ca02fcce456ea0aca SHA1 bd77fd6c2d7bd5a7af308023c93d8ac1b5358578 SHA256 fdb632afeacfe07f5f67bfbfbbdc229a88abe9d4fe09305a46c549d76a3d855e +DIST bash-completion-20060301.tar.bz2 102357 RMD160 eaa9112289607bae51868f047a9673ee6f3e6a0c SHA1 19521f0fde4d9d06401ccd26ed4ec33d7d3aa23d SHA256 16727406bd3fbb6a23da375d4f3ca7c5d518afeb7dfb82c061a452eb7a93ceca +EBUILD bash-completion-20050121-r10.ebuild 2000 RMD160 cabc7ad1e3558b64e43c00be5163bf999cd33be1 SHA1 bbeafc1d36b94567ad9eee8382f7444b5462fa28 SHA256 67283fc48236b3def3a0b9722e01de32509eac1e186c12dfab26044421406cb0 +MD5 d16038abdb251bdd8d087142cb14f4a6 bash-completion-20050121-r10.ebuild 2000 +RMD160 cabc7ad1e3558b64e43c00be5163bf999cd33be1 bash-completion-20050121-r10.ebuild 2000 +SHA256 67283fc48236b3def3a0b9722e01de32509eac1e186c12dfab26044421406cb0 bash-completion-20050121-r10.ebuild 2000 +EBUILD bash-completion-20050721.ebuild 2009 RMD160 bf8c44338677996c7c8d8c29663dfa57d57c59ab SHA1 abef73cfa15b63cd60312d7343f46f223ec8bd69 SHA256 7e26826d461ff73a183cbe5f9174901ae9f305b27c0993b8a1d2d4141f47f531 +MD5 66eb82e5a9df017daec7510a9a188f47 bash-completion-20050721.ebuild 2009 +RMD160 bf8c44338677996c7c8d8c29663dfa57d57c59ab bash-completion-20050721.ebuild 2009 +SHA256 7e26826d461ff73a183cbe5f9174901ae9f305b27c0993b8a1d2d4141f47f531 bash-completion-20050721.ebuild 2009 +EBUILD bash-completion-20060301-r1.ebuild 3088 RMD160 79aa6d419cfc754791a094f5ab8c9780f87dcdb0 SHA1 52a334e849cf6214e20f0bc1b775e7300ca44622 SHA256 6e4a9a5af8861748c42427fa73c1707e4f80c51a58b610b4f748c2dd9fc502f2 +MD5 99db7ff16bb5b2f458265dee439fc45c bash-completion-20060301-r1.ebuild 3088 +RMD160 79aa6d419cfc754791a094f5ab8c9780f87dcdb0 bash-completion-20060301-r1.ebuild 3088 +SHA256 6e4a9a5af8861748c42427fa73c1707e4f80c51a58b610b4f748c2dd9fc502f2 bash-completion-20060301-r1.ebuild 3088 +EBUILD bash-completion-20060301.ebuild 2059 RMD160 613c723739df569c0acaeb468b73d1d9b7b96f57 SHA1 575af43ee05a50a3e5fc21695c2ee96e71428ec1 SHA256 97ad74c9a03ee26a05fc8028df990f1518b8711993f00f5224d15a79b5f8883b +MD5 72c6afed9ca9eaa1294b83fd960a378d bash-completion-20060301.ebuild 2059 +RMD160 613c723739df569c0acaeb468b73d1d9b7b96f57 bash-completion-20060301.ebuild 2059 +SHA256 97ad74c9a03ee26a05fc8028df990f1518b8711993f00f5224d15a79b5f8883b bash-completion-20060301.ebuild 2059 +MISC ChangeLog 24113 RMD160 3ef532f7acef507dd41b20c5880e032c4bf7bec2 SHA1 42866e4119f6d01bd338be4320d3f0e8adfb4d3b SHA256 7813dab6b9cbc4e0728eb53ec76ec98afcad1bccfeed5147479af568b664ec76 +MD5 0b7a46ff20c6f432782bbab09c0fc202 ChangeLog 24113 +RMD160 3ef532f7acef507dd41b20c5880e032c4bf7bec2 ChangeLog 24113 +SHA256 7813dab6b9cbc4e0728eb53ec76ec98afcad1bccfeed5147479af568b664ec76 ChangeLog 24113 +MISC metadata.xml 1019 RMD160 cdc1aaaf47ada6e5e6651c8da3894482291553ad SHA1 c5f65d079f4f5642e5ecbea5914cb1620214af79 SHA256 8befa6a5366b7142e59ccfc58745cd874b8a47fe7aef571d90a31d78057223a5 MD5 08ab540760a142dbc2af127d5f71be07 metadata.xml 1019 RMD160 cdc1aaaf47ada6e5e6651c8da3894482291553ad metadata.xml 1019 SHA256 8befa6a5366b7142e59ccfc58745cd874b8a47fe7aef571d90a31d78057223a5 metadata.xml 1019 +MD5 757ff9e0e7f45b0a416b1f59324965af files/digest-bash-completion-20050121-r10 274 +RMD160 c331a118c73cdb0abcae995dfc60479acc17dc69 files/digest-bash-completion-20050121-r10 274 +SHA256 5cf185eab395ccccb3eab1d91cc38132279b8db3a5fc7df34000636200e9bf02 files/digest-bash-completion-20050121-r10 274 +MD5 fee4766a47a73e26300a7d9b91fb187a files/digest-bash-completion-20050721 274 +RMD160 e414a4248c39395eacf7da8ff49e7ce805899d8f files/digest-bash-completion-20050721 274 +SHA256 39ad32a3a50342a8b49e6ae05768a4cc6d105049f0267967a77651ce81308364 files/digest-bash-completion-20050721 274 +MD5 c2f575e2eb05dcb99e4715921cf0ee65 files/digest-bash-completion-20060301 277 +RMD160 25c058254d036eb2d95cbd1394a48e2e30b16c73 files/digest-bash-completion-20060301 277 +SHA256 6db83773985ad0568d96f86d5b972bd85777b3feb321961823cff1aaba5edb5b files/digest-bash-completion-20060301 277 +MD5 c2f575e2eb05dcb99e4715921cf0ee65 files/digest-bash-completion-20060301-r1 277 +RMD160 25c058254d036eb2d95cbd1394a48e2e30b16c73 files/digest-bash-completion-20060301-r1 277 +SHA256 6db83773985ad0568d96f86d5b972bd85777b3feb321961823cff1aaba5edb5b files/digest-bash-completion-20060301-r1 277 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2.1 (GNU/Linux) +Version: GnuPG v1.4.5 (GNU/Linux) -iD8DBQFEBuHfEZCkKN40op4RAg35AJ9oi8cjOUupJ+YHmOBG1EGRb5iH6ACdGFBn -aZDKZR3x7htRVSz6MuLVjHw= -=2kJc +iD8DBQFFYjT5JrHF4yAQTrARAhsZAJoDCeQhCVQ62jxq0sD2xBNsmSgK0QCfVAja +vV+yEvaLYRQZy+vELdtqPl4= +=hW3J -----END PGP SIGNATURE----- diff --git a/app-shells/bash-completion/bash-completion-20060301-r1.ebuild b/app-shells/bash-completion/bash-completion-20060301-r1.ebuild new file mode 100644 index 000000000000..50b1c70816e2 --- /dev/null +++ b/app-shells/bash-completion/bash-completion-20060301-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/bash-completion-20060301-r1.ebuild,v 1.1 2006/11/20 23:06:15 agriffis Exp $ + +inherit eutils + +DESCRIPTION="Programmable Completion for bash" +HOMEPAGE="http://www.caliban.org/bash/index.shtml#completion" +SRC_URI="http://www.caliban.org/files/bash/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="app-admin/eselect + || ( + >=app-shells/bash-2.05a + app-shells/zsh + )" +PDEPEND="app-shells/gentoo-bashcomp" + +S="${WORKDIR}/${PN/-/_}" + +src_unpack() { + unpack ${A} + cd ${S} + EPATCH_SUFFIX="diff" epatch ${FILESDIR}/20050721 + EPATCH_SUFFIX="diff" epatch ${FILESDIR}/${PV} +} + +src_install() { + # split /etc/bash_completion into three parts: + # 1. /usr/share/bash-completion/.pre -- hidden from eselect + # 2. /usr/share/bash-completion/default -- eselectable + # 3. /usr/share/bash-completion/.post -- hidden from eselect + dodir /usr/share/bash-completion + awk -v D="$D" ' + BEGIN { out=".pre" } + /^# A lot of the following one-liners/ { 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" + + exeinto /etc/profile.d + doexe ${FILESDIR}/bash-completion.sh || die "failed to install profile.d" + + # dev-util/subversion provides an extremely superior completion + rm contrib/subversion + insinto /usr/share/bash-completion + doins contrib/* || die "failed to install contrib completions" + + dodoc Changelog README +} + +pkg_preinst() { + # This file is now being installed as bash-completion.sh, so rename it + # first. That allows CONFIG_PROTECT to kick in properly + if [[ -f ${ROOT}/etc/profile.d/bash-completion && \ + ! -f ${ROOT}/etc/profile.d/bash-completion.sh ]] + then + mv ${ROOT}/etc/profile.d/bash-completion{,.sh} + fi +} + +pkg_postinst() { + einfo + einfo "Versions of bash-completion prior to 20060301-r1 required each user to" + einfo "explicitly source /etc/profile.d/bash-completion in ~/.bashrc. This" + einfo "was kludgy and inconsistent with the completion modules which are" + einfo "enabled with eselect bashcomp. Now any user can enable the base" + einfo "completions without editing their .bashrc by running" + einfo + einfo " eselect bashcomp enable base" + einfo + einfo "The system administrator can also be enable this globally with" + einfo + einfo " eselect bashcomp enable --global base" + einfo + einfo "Additional completion functions can also be enabled or" + einfo "disabled using eselect's bashcomp module." + einfo + + if has_version 'app-shells/zsh' ; then + einfo "If you are interested in using the provided bash completion functions with" + einfo "zsh, valuable tips on the effective use of bashcompinit are available:" + einfo " http://www.zsh.org/mla/workers/2003/msg00046.html" + einfo " http://zshwiki.org/ZshSwitchingTo" + einfo + fi +} diff --git a/app-shells/bash-completion/files/bash-completion.sh b/app-shells/bash-completion/files/bash-completion.sh new file mode 100644 index 000000000000..36a194508a4e --- /dev/null +++ b/app-shells/bash-completion/files/bash-completion.sh @@ -0,0 +1,44 @@ +# Copyright 1999-2004 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,v 1.1 2006/11/20 23:06:15 agriffis Exp $ +# +# START bash completion -- do not remove this line + +# Need interactive bash with complete builtin +if [ -n "$PS1" -a -n "$BASH_VERSION" -a \ + "`type -t complete 2>/dev/null`" = builtin ] +then + _load_completions() { + declare f x loaded_pre=false + for f; do + if [[ -f $f ]]; then + # Some modules, including default, depend on the definitions + # in .pre. See the ebuild for how this is created. + if ! $loaded_pre; then + BASH_COMPLETION=/usr/share/bash-completion/base + source /usr/share/bash-completion/.pre + loaded_pre=true + fi + source "$f" + fi + done + + # Clean up + $loaded_pre && source /usr/share/bash-completion/.post + unset -f _load_completions + } + + # 1. Load defaults, 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 + _load_completions \ + /etc/bash_completion.d/default \ + ~/.bash_completion.d/default \ + /etc/bash_completion.d/* \ + ~/.bash_completion.d/* \ + ~/.bash_completion +fi + +# END bash completion -- do not remove this line diff --git a/app-shells/bash-completion/files/digest-bash-completion-20050121-r10 b/app-shells/bash-completion/files/digest-bash-completion-20050121-r10 index 5b0dcdfbb97e..233abee193b8 100644 --- a/app-shells/bash-completion/files/digest-bash-completion-20050121-r10 +++ b/app-shells/bash-completion/files/digest-bash-completion-20050121-r10 @@ -1 +1,3 @@ MD5 fafeed562b01a8dee079eb851579f2d2 bash-completion-20050121.tar.bz2 90140 +RMD160 3804cb7b0824d69a45113caf83c3996266e60915 bash-completion-20050121.tar.bz2 90140 +SHA256 cef765204a7b507a38179156e2e6f0ca3a05797821b645fc58e33c5082587531 bash-completion-20050121.tar.bz2 90140 diff --git a/app-shells/bash-completion/files/digest-bash-completion-20050721 b/app-shells/bash-completion/files/digest-bash-completion-20050721 index fbea20fa8b67..036032235c84 100644 --- a/app-shells/bash-completion/files/digest-bash-completion-20050721 +++ b/app-shells/bash-completion/files/digest-bash-completion-20050721 @@ -1 +1,3 @@ MD5 4de9f0dee0663f08b5e24f64490e642e bash-completion-20050721.tar.bz2 92923 +RMD160 6e1c25572d68a832bca4974ca02fcce456ea0aca bash-completion-20050721.tar.bz2 92923 +SHA256 fdb632afeacfe07f5f67bfbfbbdc229a88abe9d4fe09305a46c549d76a3d855e bash-completion-20050721.tar.bz2 92923 diff --git a/app-shells/bash-completion/files/digest-bash-completion-20060301-r1 b/app-shells/bash-completion/files/digest-bash-completion-20060301-r1 new file mode 100644 index 000000000000..845b62873eb5 --- /dev/null +++ b/app-shells/bash-completion/files/digest-bash-completion-20060301-r1 @@ -0,0 +1,3 @@ +MD5 ed95a89f57357a42b8e4eb95487bf9d0 bash-completion-20060301.tar.bz2 102357 +RMD160 eaa9112289607bae51868f047a9673ee6f3e6a0c bash-completion-20060301.tar.bz2 102357 +SHA256 16727406bd3fbb6a23da375d4f3ca7c5d518afeb7dfb82c061a452eb7a93ceca bash-completion-20060301.tar.bz2 102357