blob: 85fb69e814436c3162274e2a1629facc7979ec63 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit bash-completion-r1
DESCRIPTION="Screen capture utility using imlib2 library"
HOMEPAGE="https://github.com/resurrecting-open-source-projects/scrot"
if [[ ${PV} == *9999* ]] ; then
EGIT_REPO_URI="https://github.com/resurrecting-open-source-projects/${PN}"
inherit autotools git-r3
else
SRC_URI="https://github.com/resurrecting-open-source-projects/${PN}/releases/download/${PV}/${P}.tar.bz2"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ppc ppc64 ~riscv sparc x86"
fi
LICENSE="feh"
SLOT="0"
# imlib2[X] needed for imlib_create_image_from_drawable, bug #835582
# imlib2[png] not technically requried, but it's the default format used by
# scrot, so unconditionally depend on it to avoid breaking basic commands which
# don't specify an output format.
RDEPEND="
media-libs/imlib2[X,filters(+),text(+)]
x11-libs/libXext
x11-libs/libX11
x11-libs/libXcomposite
x11-libs/libXfixes
x11-libs/libXinerama
media-libs/imlib2[png]
"
DEPEND="
${RDEPEND}
x11-base/xorg-proto
elibc_musl? ( sys-libs/queue-standalone )
"
BDEPEND="
sys-devel/autoconf-archive
virtual/pkgconfig
"
DOCS=(
AUTHORS ChangeLog README.md
)
src_prepare() {
default
[[ ${PV} == *9999* ]] && eautoreconf
}
src_install() {
default
newbashcomp "${FILESDIR}"/${PN}-1.7.bash-completion ${PN}
}
|