blob: 179ea5f5724c77f5483113dd8d2d48cdab114d03 (
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
35
36
37
38
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
MY_PV=${PV/_p/-}
inherit bash-completion-r1 eutils
DESCRIPTION="Screen capture utility using imlib2 library"
HOMEPAGE="http://scrot.sourcearchive.com/"
SRC_URI="http://${PN}.sourcearchive.com/downloads/${MY_PV}/${PN}_0.8.orig.tar.gz
http://${PN}.sourcearchive.com/downloads/${MY_PV}/${PN}_${MY_PV}.debian.tar.gz"
LICENSE="feh LGPL-2+"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
IUSE=""
RDEPEND=">=media-libs/imlib2-1.0.3
>=media-libs/giblib-1.2.3"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${PN}-0.8
src_prepare() {
local d=${WORKDIR}/debian/patches
EPATCH_SOURCE=${d} epatch $(<"${d}"/series)
}
src_install() {
emake DESTDIR="${D}" install
rm -r "${D}"/usr/doc
dodoc AUTHORS ChangeLog
newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN}
}
|