You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/scrot/scrot-0.8_p13-r1.ebuild

39 lines
978 B

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
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 ~arm64 ~hppa ppc ppc64 ~sh sparc x86"
IUSE=""
RDEPEND=">=media-libs/imlib2-1.0.3
>=media-libs/giblib-1.2.3
|| ( media-libs/imlib2[gif] media-libs/imlib2[jpeg] media-libs/imlib2[png] )"
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 "${ED}"/usr/doc || die
dodoc AUTHORS ChangeLog
newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN}
}