--- quilt/quilt-0.37.ebuild 2005-01-21 11:50:51.000000000 +0000 +++ quilt/quilt-0.37.ebuild 2005-01-21 11:50:51.000000000 +0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/quilt/quilt-0.32.ebuild,v 1.4 2004/12/18 11:51:36 blubb Exp $ -inherit eutils +inherit bash-completion DESCRIPTION="quilt patch manager" HOMEPAGE="http://savannah.nongnu.org/projects/quilt" @@ -33,4 +33,13 @@ src_compile() { src_install() { make BUILD_ROOT=${D} install || die + + # Install the bash completion file in the usual Gentoo way, so users + # can decide whether it should be enabled or not. + rm ${D}/etc/bash_completion.d/quilt + dobashcompletion bash_completion ${PN} +} + +pkg_postinst() { + bash-completion_pkg_postinst }