From: Zach Forrest <diatribe@shaw.ca>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] Re: [gentoo-ebuild] Bash 2.05a with bash_completion
Date: Sun, 09 Dec 2001 14:48:43 -0800 [thread overview]
Message-ID: <3C13EA4B.2070309@shaw.ca> (raw)
In-Reply-To: 3C13DF9A.2090909@shaw.ca
[-- Attachment #1: Type: text/plain, Size: 261 bytes --]
I've given in to simplicity. The bash package is now just that --
nothing fancy. I've created a new package, app-admin/bash-completion,
for those interested in some new, swanky bash functionality. Did I
mention that 'cd' only completes on directories?
Zach
[-- Attachment #2: bash-2.05a-r2.ebuild --]
[-- Type: text/plain, Size: 1309 bytes --]
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Daniel Robbins <drobbins@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/sys-apps/bash/bash-2.05a-r2.ebuild
S=${WORKDIR}/${P}
DESCRIPTION="The standard GNU Bourne again shell"
SRC_URI="ftp://ftp.gnu.org/gnu/bash/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/bash/bash.html"
DEPEND=">=sys-libs/ncurses-5.2-r2
readline? ( >=sys-libs/readline-4.1-r2 )"
RDEPEND="virtual/glibc"
src_compile() {
local myconf
[ "`use readline`" ] && myconf="--with-installed-readline"
[ -z "`use nls`" ] && myconf="${myconf} --disable-nls"
./configure --prefix=/ --mandir=/usr/share/man --infodir=/usr/share/info --host=${CHOST} --disable-profiling --with-curses --enable-static-link ${myconf} || die
emake || die
}
src_install() {
make prefix=${D}/usr mandir=${D}/usr/share/man infodir=${D}/usr/share/info install
dodir /bin
mv ${D}/usr/bin/bash ${D}/bin
dosym bash /bin/sh
if [ -z "`use build`" ]
then
doman doc/*.1
if [ -z "`use readline`" ]
then
doman doc/*.3
fi
dodoc README NEWS AUTHORS CHANGES COMPAT COPYING Y2K
dodoc doc/FAQ doc/INTRO
else
rm -rf ${D}/usr
fi
}
[-- Attachment #3: digest-bash-2.05a-r2 --]
[-- Type: text/plain, Size: 63 bytes --]
MD5 eeabc3f624861c4a8a687f7701db3d06 bash-2.05a.tar.gz 1814528
[-- Attachment #4: bash-completion-2.05a.ebuild --]
[-- Type: text/plain, Size: 2193 bytes --]
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Zach Forrest <diatribe@shaw.ca>
# /space/gentoo/cvsroot/gentoo-x86/app-admin/bash-completion/bash-completion-2.05a.ebuild
S=${WORKDIR}/${P}
DESCRIPTION="Some programmable completion functions for bash 2.05a."
SRC_URI="http://www.caliban.org/files/bash/bash_completion.gz"
HOMEPAGE="http://www.caliban.org/bash/index.shtml#completion"
DEPEND=">=sys-apps/bash-2.05a-r2"
src_unpack() {
echo "Nothing to unpack (despite what the next message says)."
}
src_install() {
echo "Installing bash_completion into ${D}/etc"
mkdir ${D}/etc
gzip -dc ${DISTDIR}/bash_completion.gz > ${D}/etc/bash_completion
}
pkg_postinst () {
echo
echo "*****************************************************************"
echo "* To enable the bash_completion package, a collection of shell *"
echo "* functions that take advantage of the programmable completion *"
echo "* feature of bash 2.05a and later, add the following code *"
echo "* to /etc/profile or /etc/bashrc. *"
echo "* *"
echo "* Alternatively, if you don't want it to be available to all *"
echo "* users, just source it from your ~/.bashrc *"
echo "*****************************************************************"
echo
echo 'if [ "${PS1}" ] && [ ${BASH_VERSION%.*} = "2.05a" ] \'
echo ' && [ -f /etc/bash_completion ]; then # interactive shell'
echo ' # Source completion code'
echo ' . /etc/bash_completion'
echo 'fi'
echo
echo "*****************************************************************"
echo "* This is by no means necessary, but if context sensitive *"
echo "* completion of cd, cvs, GNU make, ssh, chown, umount, insmod, *"
echo "* rmmod, man, find, chkconfig, route, iptables, sudo, and other *"
echo "* commands sounds useful, you might want to give it a try. *"
echo "*****************************************************************"
echo
}
[-- Attachment #5: digest-bash-completion-2.05a --]
[-- Type: text/plain, Size: 62 bytes --]
MD5 e0c166ed38bef641be6254ce7b8738b4 bash_completion.gz 12288
prev parent reply other threads:[~2001-12-09 22:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200112092010.ACU39946@thor.inter.net.il>
2001-12-09 20:59 ` [gentoo-dev] Re: [gentoo-ebuild] Bash 2.05a with bash_completion Tom von Schwerdtner
2001-12-09 22:03 ` Zach Forrest
2001-12-09 20:51 ` Chad Huneycutt
2001-12-09 23:52 ` Zach Forrest
2001-12-09 22:48 ` Zach Forrest [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C13EA4B.2070309@shaw.ca \
--to=diatribe@shaw.ca \
--cc=gentoo-dev@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox