1 |
commit: 8649ed39020a524f234bbc2875435d1573b3b66b |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 22 10:02:38 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 22 10:02:53 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8649ed39 |
7 |
|
8 |
x11-misc/shutter: eapi6 bump, don't require gnome-web-photo as it will be removed |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
x11-misc/shutter/Manifest | 1 + |
13 |
.../shutter/files/0.86.4-disable-goocanvas.patch | 21 ------ |
14 |
.../shutter/files/disable-goocanvas-0.87.1.patch | 18 ----- |
15 |
.../shutter/files/disable_webphoto-0.87.1.patch | 17 ----- |
16 |
x11-misc/shutter/metadata.xml | 1 - |
17 |
x11-misc/shutter/shutter-0.93.1-r1.ebuild | 83 ++++++++++++++++++++++ |
18 |
6 files changed, 84 insertions(+), 57 deletions(-) |
19 |
|
20 |
diff --git a/x11-misc/shutter/Manifest b/x11-misc/shutter/Manifest |
21 |
new file mode 100644 |
22 |
index 0000000..ef10d9a |
23 |
--- /dev/null |
24 |
+++ b/x11-misc/shutter/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST shutter-0.93.1.tar.gz 3432204 SHA256 536d1f7bc69fff518bf5a6a040d6a2d65beb2eecd5429967c71c25cf991e9625 SHA512 50a635fdf73454b15351a7e2c4507bf0f9fd816273affbed412f42b1032087304ecf1fb4a4b655bc056820f267b98214ff5104f4fcd9e843f78e70ac4a7a4a04 WHIRLPOOL e81f5970850638c711ae958365edde5f7f2b9678d292ce666c89a6611a30ce143440de5db47916b6e84b737bf3416bbed164e79954d8210382ff3f4546a840ad |
27 |
|
28 |
diff --git a/x11-misc/shutter/files/0.86.4-disable-goocanvas.patch b/x11-misc/shutter/files/0.86.4-disable-goocanvas.patch |
29 |
deleted file mode 100644 |
30 |
index aea2e67..0000000 |
31 |
--- a/x11-misc/shutter/files/0.86.4-disable-goocanvas.patch |
32 |
+++ /dev/null |
33 |
@@ -1,21 +0,0 @@ |
34 |
-Index: shutter-0.86.4/bin/shutter |
35 |
-=================================================================== |
36 |
---- shutter-0.86.4.orig/bin/shutter |
37 |
-+++ shutter-0.86.4/bin/shutter |
38 |
-@@ -8350,14 +8350,9 @@ sub fct_init_depend { |
39 |
- $nautilus_sendto = FALSE; |
40 |
- } |
41 |
- |
42 |
-- #goocanvas |
43 |
-- eval { require Goo::Canvas }; |
44 |
-- if ($@) { |
45 |
-- warn "WARNING: Goo::Canvas/libgoocanvas is missing --> drawing tool will be disabled!\n\n"; |
46 |
-- $goocanvas = FALSE; |
47 |
-- } |
48 |
-+ $goocanvas = FALSE; |
49 |
- |
50 |
-- eval { require Net::DBus::GLib }; |
51 |
-+ eval { require Net::DBus::GLib }; |
52 |
- if ($@) { |
53 |
- warn "WARNING: Net::DBus::GLib is missing --> Ubuntu One support will be disabled!\n\n"; |
54 |
- $ubuntuone = FALSE; |
55 |
|
56 |
diff --git a/x11-misc/shutter/files/disable-goocanvas-0.87.1.patch b/x11-misc/shutter/files/disable-goocanvas-0.87.1.patch |
57 |
deleted file mode 100644 |
58 |
index 7819e60..0000000 |
59 |
--- a/x11-misc/shutter/files/disable-goocanvas-0.87.1.patch |
60 |
+++ /dev/null |
61 |
@@ -1,18 +0,0 @@ |
62 |
-Index: shutter-0.87.1/bin/shutter |
63 |
-=================================================================== |
64 |
---- shutter-0.87.1.orig/bin/shutter |
65 |
-+++ shutter-0.87.1/bin/shutter |
66 |
-@@ -9188,12 +9188,7 @@ if ($app->is_running) { |
67 |
- $nautilus_sendto = FALSE; |
68 |
- } |
69 |
- |
70 |
-- #goocanvas |
71 |
-- eval { require Goo::Canvas }; |
72 |
-- if ($@) { |
73 |
-- warn "WARNING: Goo::Canvas/libgoo-canvas-perl is missing --> drawing tool will be disabled!\n\n"; |
74 |
-- $goocanvas = FALSE; |
75 |
-- } |
76 |
-+ $goocanvas = FALSE; |
77 |
- |
78 |
- #net-dbus-glib-perl |
79 |
- eval { require Net::DBus::GLib }; |
80 |
|
81 |
diff --git a/x11-misc/shutter/files/disable_webphoto-0.87.1.patch b/x11-misc/shutter/files/disable_webphoto-0.87.1.patch |
82 |
deleted file mode 100644 |
83 |
index 7db728c..0000000 |
84 |
--- a/x11-misc/shutter/files/disable_webphoto-0.87.1.patch |
85 |
+++ /dev/null |
86 |
@@ -1,17 +0,0 @@ |
87 |
-Index: shutter-0.87.1/bin/shutter |
88 |
-=================================================================== |
89 |
---- shutter-0.87.1.orig/bin/shutter |
90 |
-+++ shutter-0.87.1/bin/shutter |
91 |
-@@ -9181,11 +9181,7 @@ if ($app->is_running) { |
92 |
- die "ERROR: imagemagick is missing --> aborting!\n\n"; |
93 |
- } |
94 |
- |
95 |
-- #gnome-web-photo |
96 |
-- unless ( File::Which::which('gnome-web-photo') ) { |
97 |
-- warn "WARNING: gnome-web-photo is missing --> screenshots of websites will be disabled!\n\n"; |
98 |
-- $gnome_web_photo = FALSE; |
99 |
-- } |
100 |
-+ $gnome_web_photo = FALSE; |
101 |
- |
102 |
- #nautilus-sendto |
103 |
- unless ( File::Which::which('nautilus-sendto') ) { |
104 |
|
105 |
diff --git a/x11-misc/shutter/metadata.xml b/x11-misc/shutter/metadata.xml |
106 |
index 812b6c0..c0e72da 100644 |
107 |
--- a/x11-misc/shutter/metadata.xml |
108 |
+++ b/x11-misc/shutter/metadata.xml |
109 |
@@ -10,7 +10,6 @@ |
110 |
<name>Gentoo Graphics Project</name> |
111 |
</maintainer> |
112 |
<use> |
113 |
- <flag name="webphoto">Enables screenshots of websites</flag> |
114 |
<flag name="drawing">Enables drawing tool</flag> |
115 |
</use> |
116 |
<longdescription lang="en"> |
117 |
|
118 |
diff --git a/x11-misc/shutter/shutter-0.93.1-r1.ebuild b/x11-misc/shutter/shutter-0.93.1-r1.ebuild |
119 |
new file mode 100644 |
120 |
index 0000000..0285d1f |
121 |
--- /dev/null |
122 |
+++ b/x11-misc/shutter/shutter-0.93.1-r1.ebuild |
123 |
@@ -0,0 +1,83 @@ |
124 |
+# Copyright 1999-2016 Gentoo Foundation |
125 |
+# Distributed under the terms of the GNU General Public License v2 |
126 |
+# $Id$ |
127 |
+ |
128 |
+EAPI=6 |
129 |
+inherit eutils |
130 |
+ |
131 |
+DESCRIPTION="Feature-rich screenshot program" |
132 |
+HOMEPAGE="http://shutter-project.org/" |
133 |
+SRC_URI="http://shutter-project.org/wp-content/uploads/releases/tars/${P}.tar.gz" |
134 |
+ |
135 |
+LICENSE="GPL-3" |
136 |
+SLOT="0" |
137 |
+KEYWORDS="~amd64 ~x86" |
138 |
+IUSE="drawing" |
139 |
+ |
140 |
+RDEPEND="dev-lang/perl |
141 |
+ drawing? ( dev-perl/Goo-Canvas ) |
142 |
+ || ( media-gfx/imagemagick[perl] media-gfx/graphicsmagick[imagemagick,perl] ) |
143 |
+ dev-perl/libxml-perl |
144 |
+ dev-perl/gnome2-canvas |
145 |
+ dev-perl/gnome2-perl |
146 |
+ dev-perl/gnome2-wnck |
147 |
+ dev-perl/Gtk2-Unique |
148 |
+ dev-perl/Gtk2-ImageView |
149 |
+ dev-perl/File-DesktopEntry |
150 |
+ dev-perl/File-HomeDir |
151 |
+ dev-perl/File-Which |
152 |
+ dev-perl/JSON |
153 |
+ dev-perl/File-Copy-Recursive |
154 |
+ dev-perl/File-MimeInfo |
155 |
+ dev-perl/Locale-gettext |
156 |
+ dev-perl/Net-DBus |
157 |
+ dev-perl/Proc-Simple |
158 |
+ dev-perl/Proc-ProcessTable |
159 |
+ dev-perl/Sort-Naturally |
160 |
+ dev-perl/WWW-Mechanize |
161 |
+ dev-perl/X11-Protocol |
162 |
+ dev-perl/XML-Simple |
163 |
+ dev-perl/libwww-perl" |
164 |
+ |
165 |
+src_prepare() { |
166 |
+ default |
167 |
+ |
168 |
+ eapply "${FILESDIR}"/${PN}-0.90-webphoto.patch |
169 |
+ use drawing || eapply "${FILESDIR}"/${PN}-0.90-goocanvas.patch |
170 |
+ |
171 |
+ #Fix tray icon because it doesn't pick the right icon using various themes |
172 |
+ sed -i -e "/\$tray->set_from_icon_name/s:set_from_icon_name:set_from_file:" \ |
173 |
+ -e "s:shutter-panel:/usr/share/icons/hicolor/scalable/apps/&.svg:" \ |
174 |
+ bin/shutter || die "failed to fix trayicon" |
175 |
+} |
176 |
+ |
177 |
+src_install() { |
178 |
+ dobin bin/${PN} || die "dobin failed" |
179 |
+ insinto /usr/share/${PN} |
180 |
+ doins -r share/${PN}/* || die "doins failed" |
181 |
+ dodoc README || die "dodoc failed" |
182 |
+ domenu share/applications/${PN}.desktop |
183 |
+ # Man page is broken. Reconstruct it. |
184 |
+ gunzip share/man/man1/${PN}.1.gz || die "gunzip failed" |
185 |
+ doman share/man/man1/${PN}.1 || die "doman failed" |
186 |
+ doicon share/pixmaps/${PN}.png |
187 |
+ doins -r share/locale || die "doins failed" |
188 |
+ insinto /usr/share/icons/hicolor |
189 |
+ doins -r share/icons/hicolor/* || die "doins failed" |
190 |
+ find "${D}"/usr/share/shutter/resources/system/plugins/ -type f ! -name '*.*' -exec chmod 755 {} \; \ |
191 |
+ || die "failed to make plugins executables" |
192 |
+ find "${D}"/usr/share/shutter/resources/system/upload_plugins/upload -type f \ |
193 |
+ -name "*.pm" -exec chmod 755 {} \; || die "failed to make upload plugins executables" |
194 |
+} |
195 |
+ |
196 |
+pkg_postinst() { |
197 |
+ elog "" |
198 |
+ elog "The following optional dependencies can be used to provide" |
199 |
+ elog "additional functionality:" |
200 |
+ elog "" |
201 |
+ elog "- media-libs/exiftool : Writing Exif information" |
202 |
+ elog "- dev-libs/libappindicator : Status icon support for Unity" |
203 |
+ elog "- dev-perl/{Net-OAuth,Path-Class}: Dropbox support" |
204 |
+ elog "- dev-perl/JSON-XS : vgy.me image hosting support" |
205 |
+ elog"" |
206 |
+} |