blob: be497f99d128d14261adea67546a955bcc666c15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/gentoo-bashcomp/gentoo-bashcomp-20080521.ebuild,v 1.1 2008/05/21 19:00:17 nyhm Exp $
DESCRIPTION="Gentoo-specific bash command-line completions (emerge, ebuild, equery, etc)"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE=""
RDEPEND="app-shells/bash-completion"
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS TODO
}
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
}
|