Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: app-text/evince/files/, app-text/evince/
Date: Tue, 30 Aug 2011 09:21:58
Message-Id: 542f256f634329ea407fee610563a3cb85b24e3b.tetromino@gentoo
1 commit: 542f256f634329ea407fee610563a3cb85b24e3b
2 Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
3 AuthorDate: Tue Aug 30 08:08:59 2011 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Tue Aug 30 08:08:59 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=542f256f
7
8 app-text/evince: 3.1.2 → 3.1.90
9
10 Version bump with a number of bugfixes. Add missing kpathsea, atk,
11 libX11, gdk-pixbuf dependencies. Patches were applied upstream.
12
13 ---
14 .../{evince-3.1.2.ebuild => evince-3.1.90.ebuild} | 22 ++---
15 app-text/evince/evince-9999.ebuild | 7 ++
16 ...evince-3.1.2-fix-evinceview-introspection.patch | 21 -----
17 .../evince/files/evince-3.1.2-gdk-targets.patch | 21 -----
18 .../evince-3.1.2-limit-thumbnailing-time.patch | 93 --------------------
19 5 files changed, 15 insertions(+), 149 deletions(-)
20
21 diff --git a/app-text/evince/evince-3.1.2.ebuild b/app-text/evince/evince-3.1.90.ebuild
22 similarity index 84%
23 rename from app-text/evince/evince-3.1.2.ebuild
24 rename to app-text/evince/evince-3.1.90.ebuild
25 index 6326179..8f0c09d 100644
26 --- a/app-text/evince/evince-3.1.2.ebuild
27 +++ b/app-text/evince/evince-3.1.90.ebuild
28 @@ -6,7 +6,7 @@ EAPI="4"
29 GCONF_DEBUG="yes"
30 GNOME2_LA_PUNT="yes"
31
32 -inherit autotools eutils gnome2
33 +inherit eutils gnome2
34 if [[ ${PV} = 9999 ]]; then
35 inherit gnome2-live
36 fi
37 @@ -25,11 +25,17 @@ fi
38
39 # Since 2.26.2, can handle poppler without cairo support. Make it optional ?
40 # not mature enough
41 +# atk used in libview
42 +# gdk-pixbuf used all over the place
43 +# libX11 used for totem-screensaver
44 RDEPEND="
45 >=app-text/libspectre-0.2.0
46 + dev-libs/atk
47 >=dev-libs/glib-2.25.11:2
48 >=dev-libs/libxml2-2.5:2
49 + x11-libs/gdk-pixbuf:2
50 >=x11-libs/gtk+-3.0.2:3[introspection?]
51 + x11-libs/libX11
52 >=x11-libs/libSM-1
53 x11-libs/libICE
54 gnome-base/gsettings-desktop-schemas
55 @@ -41,6 +47,7 @@ RDEPEND="
56 djvu? ( >=app-text/djvu-3.5.17 )
57 dvi? (
58 virtual/tex-base
59 + dev-libs/kpathsea
60 t1lib? ( >=media-libs/t1lib-5.0.0 ) )
61 gnome-keyring? ( >=gnome-base/gnome-keyring-2.22.0 )
62 introspection? ( >=dev-libs/gobject-introspection-0.6 )
63 @@ -100,18 +107,5 @@ src_prepare() {
64 # Fix .desktop file so menu item shows up
65 epatch "${FILESDIR}"/${PN}-0.7.1-display-menu.patch
66
67 - # Various patches from upstream git, will be in next release
68 - # Fix building of EvinceView-3.0.gir, needs eautoreconf
69 - epatch "${FILESDIR}/${P}-fix-evinceview-introspection.patch"
70 - # Adapt to changes in gdk-3.0.pc, needs eautoreconf
71 - epatch "${FILESDIR}/${P}-gdk-targets.patch"
72 - # Don't hang nautilus when a document takes too long to thumbnail
73 - epatch "${FILESDIR}/${P}-limit-thumbnailing-time.patch"
74 -
75 - if [[ ${PV} != 9999 ]]; then
76 - intltoolize --force --copy --automake || die "intltoolize failed"
77 - eautoreconf
78 - fi
79 -
80 gnome2_src_prepare
81 }
82
83 diff --git a/app-text/evince/evince-9999.ebuild b/app-text/evince/evince-9999.ebuild
84 index e712132..8f0c09d 100644
85 --- a/app-text/evince/evince-9999.ebuild
86 +++ b/app-text/evince/evince-9999.ebuild
87 @@ -25,11 +25,17 @@ fi
88
89 # Since 2.26.2, can handle poppler without cairo support. Make it optional ?
90 # not mature enough
91 +# atk used in libview
92 +# gdk-pixbuf used all over the place
93 +# libX11 used for totem-screensaver
94 RDEPEND="
95 >=app-text/libspectre-0.2.0
96 + dev-libs/atk
97 >=dev-libs/glib-2.25.11:2
98 >=dev-libs/libxml2-2.5:2
99 + x11-libs/gdk-pixbuf:2
100 >=x11-libs/gtk+-3.0.2:3[introspection?]
101 + x11-libs/libX11
102 >=x11-libs/libSM-1
103 x11-libs/libICE
104 gnome-base/gsettings-desktop-schemas
105 @@ -41,6 +47,7 @@ RDEPEND="
106 djvu? ( >=app-text/djvu-3.5.17 )
107 dvi? (
108 virtual/tex-base
109 + dev-libs/kpathsea
110 t1lib? ( >=media-libs/t1lib-5.0.0 ) )
111 gnome-keyring? ( >=gnome-base/gnome-keyring-2.22.0 )
112 introspection? ( >=dev-libs/gobject-introspection-0.6 )
113
114 diff --git a/app-text/evince/files/evince-3.1.2-fix-evinceview-introspection.patch b/app-text/evince/files/evince-3.1.2-fix-evinceview-introspection.patch
115 deleted file mode 100644
116 index b228e01..0000000
117 --- a/app-text/evince/files/evince-3.1.2-fix-evinceview-introspection.patch
118 +++ /dev/null
119 @@ -1,21 +0,0 @@
120 -From 1915baa92e72242450b6042603ad0e20de072c17 Mon Sep 17 00:00:00 2001
121 -From: Dominique Leuenberger <dominique-gnomezilla@×××××××××××.net>
122 -Date: Sun, 19 Jun 2011 14:46:15 +0000
123 -Subject: libview: fix build with --enable-introspection
124 -
125 -Fixes bug #643382.
126 ----
127 -diff --git a/libview/Makefile.am b/libview/Makefile.am
128 -index 7766c4b..2e8671e 100644
129 ---- a/libview/Makefile.am
130 -+++ b/libview/Makefile.am
131 -@@ -136,6 +136,7 @@ EvinceView-$(EV_API_VERSION).gir: libevview3.la Makefile $(INST_H_FILES) $(filte
132 - --output $@ \
133 - --pkg evince-document-$(EV_API_VERSION) \
134 - --pkg evince-view-$(EV_API_VERSION) \
135 -+ -L$(top_builddir)/libdocument/ \
136 - -I$(top_srcdir) \
137 - -I$(top_builddir) \
138 - -DEVINCE_COMPILATION \
139 ---
140 -cgit v0.9.0.2
141
142 diff --git a/app-text/evince/files/evince-3.1.2-gdk-targets.patch b/app-text/evince/files/evince-3.1.2-gdk-targets.patch
143 deleted file mode 100644
144 index f787f36..0000000
145 --- a/app-text/evince/files/evince-3.1.2-gdk-targets.patch
146 +++ /dev/null
147 @@ -1,21 +0,0 @@
148 -From 908348d355ba22ea364318f32dc033a8c9761f04 Mon Sep 17 00:00:00 2001
149 -From: Michael Biebl <biebl@××××××.org>
150 -Date: Thu, 30 Jun 2011 13:23:49 +0000
151 -Subject: configure: Update smclient check for gdk targets
152 -
153 ----
154 -diff --git a/configure.ac b/configure.ac
155 -index 20301dd..768c922 100644
156 ---- a/configure.ac
157 -+++ b/configure.ac
158 -@@ -179,7 +179,7 @@ PKG_CHECK_MODULES([SHELL_CORE],[libxml-2.0 >= $LIBXML_REQUIRED gtk+-3.0 >= $GTK_
159 - # SM client
160 - # *********
161 -
162 --GDK_TARGET="$($PKG_CONFIG --variable target gdk-3.0)"
163 -+GDK_TARGET="$($PKG_CONFIG --variable targets gdk-3.0)"
164 -
165 - AC_MSG_CHECKING([which smclient backend to use])
166 - AC_ARG_WITH([smclient],
167 ---
168 -cgit v0.9.0.2
169
170 diff --git a/app-text/evince/files/evince-3.1.2-limit-thumbnailing-time.patch b/app-text/evince/files/evince-3.1.2-limit-thumbnailing-time.patch
171 deleted file mode 100644
172 index 6c4f1a3..0000000
173 --- a/app-text/evince/files/evince-3.1.2-limit-thumbnailing-time.patch
174 +++ /dev/null
175 @@ -1,93 +0,0 @@
176 -From 6e6d6e2afa7373579de4a651df0dc1fb45c5f6d2 Mon Sep 17 00:00:00 2001
177 -From: Carlos Garcia Campos <carlosgc@×××××.org>
178 -Date: Sun, 26 Jun 2011 11:00:30 +0000
179 -Subject: thumbnailer: limit thumbnailing time to 15 seconds by default
180 -
181 -The limit can be disabled with no-limit command line option.
182 -
183 -Fixes bug #651655.
184 ----
185 -diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c
186 -index 94d6b77..596d264 100644
187 ---- a/thumbnailer/evince-thumbnailer.c
188 -+++ b/thumbnailer/evince-thumbnailer.c
189 -@@ -35,12 +35,17 @@
190 - #endif
191 -
192 - #define THUMBNAIL_SIZE 128
193 -+#define DEFAULT_SLEEP_TIME (15 * G_USEC_PER_SEC) /* 15 seconds */
194 -+
195 -+static gboolean finished = TRUE;
196 -
197 - static gint size = THUMBNAIL_SIZE;
198 -+static gboolean time_limit = TRUE;
199 - static const gchar **file_arguments;
200 -
201 - static const GOptionEntry goption_options[] = {
202 - { "size", 's', 0, G_OPTION_ARG_INT, &size, NULL, "SIZE" },
203 -+ { "no-limit", 'l', G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &time_limit, "Don't limit the thumbnailing time to 15 seconds", NULL },
204 - { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &file_arguments, NULL, "<input> <ouput>" },
205 - { NULL }
206 - };
207 -@@ -52,6 +57,41 @@ struct AsyncData {
208 - gboolean success;
209 - };
210 -
211 -+/* Time monitor: copied from totem */
212 -+G_GNUC_NORETURN static gpointer
213 -+time_monitor (gpointer data)
214 -+{
215 -+ const gchar *app_name;
216 -+
217 -+ g_usleep (DEFAULT_SLEEP_TIME);
218 -+
219 -+ if (finished)
220 -+ g_thread_exit (NULL);
221 -+
222 -+ app_name = g_get_application_name ();
223 -+ if (app_name == NULL)
224 -+ app_name = g_get_prgname ();
225 -+ g_print ("%s couldn't process file: '%s'\n"
226 -+ "Reason: Took too much time to process.\n",
227 -+ app_name,
228 -+ (const char *) data);
229 -+
230 -+ exit (0);
231 -+}
232 -+
233 -+static void
234 -+time_monitor_start (const char *input)
235 -+{
236 -+ finished = FALSE;
237 -+ g_thread_create (time_monitor, (gpointer) input, FALSE, NULL);
238 -+}
239 -+
240 -+static void
241 -+time_monitor_stop (void)
242 -+{
243 -+ finished = TRUE;
244 -+}
245 -+
246 - static void
247 - delete_temp_file (GFile *file)
248 - {
249 -@@ -269,6 +309,9 @@ main (int argc, char *argv[])
250 - return -2;
251 - }
252 -
253 -+ if (time_limit)
254 -+ time_monitor_start (input);
255 -+
256 - if (EV_IS_ASYNC_RENDERER (document)) {
257 - struct AsyncData data;
258 -
259 -@@ -295,6 +338,7 @@ main (int argc, char *argv[])
260 - return -2;
261 - }
262 -
263 -+ time_monitor_stop ();
264 - g_object_unref (document);
265 - ev_shutdown ();
266 -
267 ---
268 -cgit v0.9.0.2