blob: e70f3000494ad2e947c25c0827ca3b9c56529bd4 (
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-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit gnome.org gnome2-utils meson readme.gentoo-r1 xdg
if [[ ${PV} = 9999 ]]; then
inherit git-r3
SRC_URI=""
EGIT_REPO_URI="git://git.gnome.org/gnome-screenshot"
fi
DESCRIPTION="Screenshot utility for GNOME"
HOMEPAGE="https://wiki.gnome.org/Apps/Attic/GnomeUtils"
LICENSE="GPL-2+"
SLOT="0"
IUSE=""
if [[ ${PV} != 9999 ]]; then
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
fi
# libcanberra 0.26-r2 is needed for gtk+:3 fixes
COMMON_DEPEND="
x11-libs/libX11
x11-libs/libXext
>=dev-libs/glib-2.35.1:2[dbus]
>=x11-libs/gtk+-3.0.3:3
>=media-libs/libcanberra-0.26-r2[gtk3]
"
RDEPEND="${COMMON_DEPEND}
>=gnome-base/gsettings-desktop-schemas-0.1.0
"
DEPEND="${COMMON_DEPEND}
dev-libs/libxml2:2
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
x11-base/xorg-proto
"
DOC_CONTENTS="${P} saves screenshots in ~/Pictures/ and defaults to
non-interactive mode when launched from a terminal. If you want to choose
where to save the screenshot, run 'gnome-screenshot --interactive'"
src_install() {
meson_src_install
readme.gentoo_create_doc
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
readme.gentoo_print_elog
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}
|