Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2021 Gentoo Authors |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=7 |
5 |
|
6 |
inherit desktop optfeature prefix xdg |
7 |
|
8 |
DESCRIPTION="Feature-rich screenshot program" |
9 |
HOMEPAGE="https://shutter-project.org/" |
10 |
SRC_URI="https://github.com/shutter-project/shutter/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
11 |
|
12 |
LICENSE="GPL-3" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~x86" |
15 |
|
16 |
RDEPEND=" |
17 |
dev-lang/perl |
18 |
dev-perl/libxml-perl |
19 |
dev-perl/libwww-perl |
20 |
dev-perl/Glib-Object-Introspection |
21 |
dev-perl/GooCanvas2 |
22 |
dev-perl/GooCanvas2-CairoTypes |
23 |
dev-perl/Gtk3 |
24 |
>=dev-perl/Gtk3-ImageView-9 |
25 |
dev-perl/File-DesktopEntry |
26 |
dev-perl/File-HomeDir |
27 |
dev-perl/File-Which |
28 |
dev-perl/JSON |
29 |
dev-perl/File-Copy-Recursive |
30 |
dev-perl/File-MimeInfo |
31 |
dev-perl/Locale-gettext |
32 |
dev-perl/Net-DBus |
33 |
dev-perl/Number-Bytes-Human |
34 |
dev-perl/Pango |
35 |
dev-perl/Proc-Simple |
36 |
dev-perl/Proc-ProcessTable |
37 |
dev-perl/Sort-Naturally |
38 |
dev-perl/WWW-Mechanize |
39 |
dev-perl/X11-Protocol |
40 |
dev-perl/XML-Simple |
41 |
virtual/imagemagick-tools[perl] |
42 |
x11-libs/libwnck:3[introspection] |
43 |
" |
44 |
|
45 |
src_prepare() { |
46 |
hprefixify bin/shutter |
47 |
default |
48 |
} |
49 |
|
50 |
src_install() { |
51 |
dobin bin/shutter |
52 |
dodoc README |
53 |
domenu share/applications/shutter.desktop |
54 |
doicon share/pixmaps/shutter.png |
55 |
doman share/man/man1/shutter.1 |
56 |
|
57 |
insinto /usr/share |
58 |
doins -r share/shutter |
59 |
doins -r share/locale |
60 |
doins -r share/icons |
61 |
|
62 |
insinto /usr/share/metainfo |
63 |
doins share/appdata/shutter.appdata.xml |
64 |
|
65 |
# .po doesn't belong to installed system, only .mo |
66 |
rm -r "${ED}"/usr/share/shutter/resources/po || die |
67 |
|
68 |
# shutter executes perl scripts as standalone scripts, and after that "require"s them. |
69 |
find "${ED}"/usr/share/shutter/resources/system/plugins/ -type f ! -name '*.*' -exec chmod 755 {} \; \ |
70 |
|| die "failed to make plugins executables" |
71 |
find "${ED}"/usr/share/shutter/resources/system/upload_plugins/upload -type f \ |
72 |
-name "*.pm" -exec chmod 755 {} \; || die "failed to make upload plugins executables" |
73 |
} |
74 |
|
75 |
pkg_postinst() { |
76 |
xdg_pkg_postinst |
77 |
|
78 |
optfeature "writing Exif information" media-libs/exiftool |
79 |
optfeature "image hostings uploading" "dev-perl/JSON-MaybeXS dev-perl/Net-OAuth dev-perl/Path-Class" |
80 |
} |