* [gentoo-commits] gentoo-x86 commit in app-shells/bash-completion: ChangeLog bash-completion-20060301-r3.ebuild bash-completion-20060301-r2.ebuild
@ 2008-06-15 23:22 Bo Oersted Andresen (zlin)
0 siblings, 0 replies; only message in thread
From: Bo Oersted Andresen (zlin) @ 2008-06-15 23:22 UTC (permalink / raw
To: gentoo-commits
zlin 08/06/15 23:22:32
Modified: ChangeLog
Added: bash-completion-20060301-r3.ebuild
Removed: bash-completion-20060301-r2.ebuild
Log:
Get rid of 'bash: BASH_COMPLETION: readonly variable' message.
(Portage version: 2.1.5.5)
Revision Changes Path
1.142 app-shells/bash-completion/ChangeLog
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.142&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/ChangeLog?rev=1.142&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/ChangeLog?r1=1.141&r2=1.142
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -r1.141 -r1.142
--- ChangeLog 12 Jan 2008 18:35:56 -0000 1.141
+++ ChangeLog 15 Jun 2008 23:22:31 -0000 1.142
@@ -1,6 +1,13 @@
# ChangeLog for app-shells/bash-completion
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.141 2008/01/12 18:35:56 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/ChangeLog,v 1.142 2008/06/15 23:22:31 zlin Exp $
+
+*bash-completion-20060301-r3 (15 Jun 2008)
+
+ 15 Jun 2008; Bo Ørsted Andresen <zlin@gentoo.org>
+ files/bash-completion.sh, -bash-completion-20060301-r2.ebuild,
+ +bash-completion-20060301-r3.ebuild:
+ Get rid of 'bash: BASH_COMPLETION: readonly variable' message.
12 Jan 2008; Vlastimil Babka <caster@gentoo.org>
bash-completion-20050121-r10.ebuild, bash-completion-20050721.ebuild,
1.1 app-shells/bash-completion/bash-completion-20060301-r3.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/bash-completion-20060301-r3.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-shells/bash-completion/bash-completion-20060301-r3.ebuild?rev=1.1&content-type=text/plain
Index: bash-completion-20060301-r3.ebuild
===================================================================
# Copyright 1999-2008 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-r3.ebuild,v 1.1 2008/06/15 23:22:31 zlin 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 ~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() {
elog
elog "Versions of bash-completion prior to 20060301-r1 required each user to"
elog "explicitly source /etc/profile.d/bash-completion in ~/.bashrc. This"
elog "was kludgy and inconsistent with the completion modules which are"
elog "enabled with eselect bashcomp. Now any user can enable the base"
elog "completions without editing their .bashrc by running"
elog
elog " eselect bashcomp enable base"
elog
elog "The system administrator can also be enable this globally with"
elog
elog " eselect bashcomp enable --global base"
elog
elog "Additional completion functions can also be enabled or"
elog "disabled using eselect's bashcomp module."
elog
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 " http://zshwiki.org/ZshSwitchingTo"
elog
fi
}
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-15 23:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-15 23:22 [gentoo-commits] gentoo-x86 commit in app-shells/bash-completion: ChangeLog bash-completion-20060301-r3.ebuild bash-completion-20060301-r2.ebuild Bo Oersted Andresen (zlin)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox