# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion-config/bash-completion-config-0.8.ebuild,v 1.9 2005/03/30 16:09:23 hansmi Exp $ MY_PN="bashcomp-config" MY_P="${MY_PN}-${PV}" S="${WORKDIR}/${MY_P}" DESCRIPTION="Utility to easily add/remove bash-completions to your environment" HOMEPAGE="http://developer.berlios.de/projects/bashcomp-config/" SRC_URI="http://download.berlios.de/${MY_PN}/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ~ppc64 ~ppc-macos s390 sparc x86" IUSE="" DEPEND=">=app-shells/bash-2.05" src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS TODO ChangeLog README } # remove files that bashcomp-config provides for non-Gentoo platforms pkg_preinst() { [ -e "${ROOT}/etc/profile.d/bash-completion" ] && rm -fr "${D}/etc" rm -fr "${D}/usr/share/${PN}" } pkg_postinst() { echo einfo "To enable command-line completion for bash-completion-config," einfo "run the following as root:" einfo einfo " bash-completion-config --global --install bash-completion-config" echo }