1 |
commit: 1668173bee719d0cafb608bd3c29d39a8cf11bcf |
2 |
Author: Jonas Stein <jstein <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 24 10:16:42 2019 +0000 |
4 |
Commit: Jonas Stein <jstein <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 24 10:17:16 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1668173b |
7 |
|
8 |
x11-misc/shutter: Version bump and cleanup |
9 |
|
10 |
Bump to 0.94.3 |
11 |
change SRC_URI to launchpad |
12 |
Bump EAPI=7 |
13 |
add xdg_icon_cache_update, xdg_desktop_database_update |
14 |
drop eutils |
15 |
drop obsolete patches |
16 |
|
17 |
Closes: https://bugs.gentoo.org/687042 |
18 |
Closes: https://bugs.gentoo.org/687960 |
19 |
Package-Manager: Portage-2.3.67, Repoman-2.3.14 |
20 |
Signed-off-by: Jonas Stein <jstein <AT> gentoo.org> |
21 |
|
22 |
x11-misc/shutter/Manifest | 1 + |
23 |
x11-misc/shutter/shutter-0.94.3.ebuild | 89 ++++++++++++++++++++++++++++++++++ |
24 |
2 files changed, 90 insertions(+) |
25 |
|
26 |
diff --git a/x11-misc/shutter/Manifest b/x11-misc/shutter/Manifest |
27 |
index 0cb2b89a380..d7a0818090e 100644 |
28 |
--- a/x11-misc/shutter/Manifest |
29 |
+++ b/x11-misc/shutter/Manifest |
30 |
@@ -1 +1,2 @@ |
31 |
DIST shutter-0.93.1.tar.gz 3432204 BLAKE2B 7c61942c1ddc288b912e8addd31111309b2b7305582f0d684f364552e4695ad45a54b2ef39b456f4410ee1434f20422c1abf0fffd7c15525e25810fd58a28008 SHA512 50a635fdf73454b15351a7e2c4507bf0f9fd816273affbed412f42b1032087304ecf1fb4a4b655bc056820f267b98214ff5104f4fcd9e843f78e70ac4a7a4a04 |
32 |
+DIST shutter-0.94.3.tar.gz 3375447 BLAKE2B e996966722999ee11ed3c185fd17a77e8982688ec17253f3558f89ccfd2e3afefec34d9214acffb10009fc1a28f587a5b994e32d7bb3538cde5e4f398b8e7b95 SHA512 7f67ed6fbc94aee4b6caa73662ab20684e2d8bdfd7208dcd407bdce4e1b93f2aa1fa256ad6bce66b92c741500726b90e5701e7f31bc831709568e5c4c27bff3b |
33 |
|
34 |
diff --git a/x11-misc/shutter/shutter-0.94.3.ebuild b/x11-misc/shutter/shutter-0.94.3.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..1bdd2fcc248 |
37 |
--- /dev/null |
38 |
+++ b/x11-misc/shutter/shutter-0.94.3.ebuild |
39 |
@@ -0,0 +1,89 @@ |
40 |
+# Copyright 1999-2019 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=7 |
44 |
+inherit xdg-utils desktop |
45 |
+ |
46 |
+DESCRIPTION="Feature-rich screenshot program" |
47 |
+HOMEPAGE="http://shutter-project.org/" |
48 |
+#SRC_URI="http://shutter-project.org/wp-content/uploads/releases/tars/${P}.tar.gz" |
49 |
+SRC_URI="https://launchpad.net/shutter/0.9x/${PV}/+download/${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="GPL-3" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+IUSE="drawing" |
55 |
+ |
56 |
+RDEPEND="dev-lang/perl |
57 |
+ drawing? ( dev-perl/Goo-Canvas ) |
58 |
+ dev-perl/libxml-perl |
59 |
+ dev-perl/gnome2-canvas |
60 |
+ dev-perl/gnome2-perl |
61 |
+ dev-perl/gnome2-wnck |
62 |
+ dev-perl/Gtk2-Unique |
63 |
+ dev-perl/Gtk2-ImageView |
64 |
+ dev-perl/File-DesktopEntry |
65 |
+ dev-perl/File-HomeDir |
66 |
+ dev-perl/File-Which |
67 |
+ dev-perl/JSON |
68 |
+ dev-perl/File-Copy-Recursive |
69 |
+ dev-perl/File-MimeInfo |
70 |
+ dev-perl/Locale-gettext |
71 |
+ dev-perl/Net-DBus |
72 |
+ dev-perl/Proc-Simple |
73 |
+ dev-perl/Proc-ProcessTable |
74 |
+ dev-perl/Sort-Naturally |
75 |
+ dev-perl/WWW-Mechanize |
76 |
+ dev-perl/X11-Protocol |
77 |
+ dev-perl/XML-Simple |
78 |
+ dev-perl/libwww-perl |
79 |
+ virtual/imagemagick-tools[perl]" |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ |
84 |
+ use drawing || eapply "${FILESDIR}"/${PN}-0.90-goocanvas.patch |
85 |
+ |
86 |
+ #Fix tray icon because it doesn't pick the right icon using various themes |
87 |
+ sed -i -e "/\$tray->set_from_icon_name/s:set_from_icon_name:set_from_file:" \ |
88 |
+ -e "s:shutter-panel:/usr/share/icons/hicolor/scalable/apps/&.svg:" \ |
89 |
+ bin/shutter || die "failed to fix trayicon" |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ dobin bin/${PN} || die "dobin failed" |
94 |
+ insinto /usr/share/${PN} |
95 |
+ doins -r share/${PN}/* || die "doins failed" |
96 |
+ dodoc README || die "dodoc failed" |
97 |
+ domenu share/applications/${PN}.desktop |
98 |
+ # Man page is broken. Reconstruct it. |
99 |
+ gunzip share/man/man1/${PN}.1.gz || die "gunzip failed" |
100 |
+ doman share/man/man1/${PN}.1 || die "doman failed" |
101 |
+ doicon share/pixmaps/${PN}.png |
102 |
+ doins -r share/locale || die "doins failed" |
103 |
+ insinto /usr/share/icons/hicolor |
104 |
+ doins -r share/icons/hicolor/* || die "doins failed" |
105 |
+ find "${D}"/usr/share/shutter/resources/system/plugins/ -type f ! -name '*.*' -exec chmod 755 {} \; \ |
106 |
+ || die "failed to make plugins executables" |
107 |
+ find "${D}"/usr/share/shutter/resources/system/upload_plugins/upload -type f \ |
108 |
+ -name "*.pm" -exec chmod 755 {} \; || die "failed to make upload plugins executables" |
109 |
+} |
110 |
+ |
111 |
+pkg_postinst() { |
112 |
+ xdg_icon_cache_update |
113 |
+ xdg_desktop_database_update |
114 |
+ |
115 |
+ elog "" |
116 |
+ elog "These optional dependencies provide additional functions:" |
117 |
+ elog "" |
118 |
+ elog "- media-libs/exiftool : Writing Exif information" |
119 |
+ elog "- dev-libs/libappindicator : Status icon support for Unity" |
120 |
+ elog "- dev-perl/{Net-OAuth,Path-Class}: Dropbox support" |
121 |
+ elog "- dev-perl/JSON-XS : vgy.me image hosting support" |
122 |
+ elog"" |
123 |
+} |
124 |
+ |
125 |
+pkg_postrm() { |
126 |
+ xdg_icon_cache_update |
127 |
+ xdg_desktop_database_update |
128 |
+} |