From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=DMARC_NONE,MAILING_LIST_MULTI, RDNS_DYNAMIC autolearn=no autolearn_force=no version=4.0.0 Received: from pd2mo3so.prod.shaw.ca (h24-71-223-13.cg.shawcable.net [24.71.223.13]) by chiba.3jane.net (Postfix) with ESMTP id 017D515951 for ; Sun, 9 Dec 2001 16:45:12 -0600 (CST) Received: from pd4mr2so.prod.shaw.ca (pd4mr2so-qfe3.prod.shaw.ca [10.0.141.213]) by l-daemon (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GO300B40LVAVD@l-daemon> for gentoo-dev@gentoo.org; Sun, 09 Dec 2001 15:45:10 -0700 (MST) Received: from pn2ml7so (pn2ml7so-qfe0.prod.shaw.ca [10.0.121.151]) by l-daemon (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GO3009G1LVA0J@l-daemon> for gentoo-dev@gentoo.org; Sun, 09 Dec 2001 15:45:10 -0700 (MST) Received: from shaw.ca ([24.68.91.28]) by l-daemon (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GO300AIOLVA5U@l-daemon> for gentoo-dev@gentoo.org; Sun, 09 Dec 2001 15:45:11 -0700 (MST) Date: Sun, 09 Dec 2001 14:48:43 -0800 From: Zach Forrest To: gentoo-dev@gentoo.org Message-id: <3C13EA4B.2070309@shaw.ca> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_zK9pxrltDZbOiTANueOxZw)" X-Accept-Language: en-us User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011130 References: <200112092010.ACU39946@thor.inter.net.il> <1103.24.38.252.76.1007931574.squirrel@thinktank.mediafarm.ch> <3C13DF9A.2090909@shaw.ca> Subject: [gentoo-dev] Re: [gentoo-ebuild] Bash 2.05a with bash_completion Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Developer discussion list List-Unsubscribe: , List-Archive: X-Archives-Salt: 98d6276b-7924-42ae-a480-59dbc0376607 X-Archives-Hash: ee5cc0066873c1e35e773ebe479ac972 This is a multi-part message in MIME format. --Boundary_(ID_zK9pxrltDZbOiTANueOxZw) Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT 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 --Boundary_(ID_zK9pxrltDZbOiTANueOxZw) Content-type: text/plain; name=bash-2.05a-r2.ebuild Content-transfer-encoding: 7BIT Content-disposition: inline; filename=bash-2.05a-r2.ebuild # Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Daniel Robbins # /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 } --Boundary_(ID_zK9pxrltDZbOiTANueOxZw) Content-type: text/plain; name=digest-bash-2.05a-r2 Content-transfer-encoding: 7BIT Content-disposition: inline; filename=digest-bash-2.05a-r2 MD5 eeabc3f624861c4a8a687f7701db3d06 bash-2.05a.tar.gz 1814528 --Boundary_(ID_zK9pxrltDZbOiTANueOxZw) Content-type: text/plain; name=bash-completion-2.05a.ebuild Content-transfer-encoding: 7BIT Content-disposition: inline; filename=bash-completion-2.05a.ebuild # Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Zach Forrest # /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 } --Boundary_(ID_zK9pxrltDZbOiTANueOxZw) Content-type: text/plain; name=digest-bash-completion-2.05a Content-transfer-encoding: 7BIT Content-disposition: inline; filename=digest-bash-completion-2.05a MD5 e0c166ed38bef641be6254ce7b8738b4 bash_completion.gz 12288 --Boundary_(ID_zK9pxrltDZbOiTANueOxZw)--