summaryrefslogtreecommitdiff
blob: 9ecb1768e0706903dc464cb50a3b37ed486f8148 (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
30
31
32
33
34
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/scrot/scrot-0.8.ebuild,v 1.10 2004/11/04 00:19:06 ka0ttic Exp $

inherit bash-completion

DESCRIPTION="Screen Shooter"
SRC_URI="http://www.linuxbrit.co.uk/downloads/${P}.tar.gz"
HOMEPAGE="http://www.linuxbrit.co.uk/"

SLOT="0"
LICENSE="as-is BSD"
KEYWORDS="x86 ~alpha ~ppc ~amd64 ~sparc ppc64"
IUSE=""

DEPEND=">=media-libs/imlib2-1.0.3
	>=media-libs/giblib-1.2.3"

src_install () {
	make DESTDIR=${D} install || die
	rm -r ${D}/usr/doc/${PN}

	dodoc TODO README AUTHORS ChangeLog

	dobashcompletion ${FILESDIR}/${PN}.bash-completion ${PN}
}

pkg_postinst() {
	echo
	einfo "To enable command-line completion for scrot, issue the following"
	einfo "command as root:"
	einfo "  ln -s /usr/share/bash-completion/scrot /etc/bash_completion.d/"
	echo
}