# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-shells/gentoo-bashcomp/gentoo-bashcomp-20050516.ebuild,v 1.10 2005/11/25 21:01:50 tgall Exp $ DESCRIPTION="Gentoo-specific bash command-line completions (emerge, ebuild, equery, etc)" HOMEPAGE="http://developer.berlios.de/projects/gentoo-bashcomp/" SRC_URI="http://download.berlios.de/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ~ppc-macos ppc64 s390 sparc x86" IUSE="" RDEPEND=">=app-shells/bash-completion-20050121-r3" src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog TODO NEWS } pkg_postinst() { local g="${ROOT}/etc/bash_completion.d/gentoo" if [[ -e "${g}" && ! -L "${g}" ]] ; then echo ewarn "The gentoo completion functions have moved to /usr/share/bash-completion." ewarn "Please run etc-update to replace /etc/bash_completion.d/gentoo with a symlink." echo fi }