Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/zathura/files/, app-text/zathura/
Date: Thu, 28 Jan 2016 16:05:50
Message-Id: 1453997138.6d73c36e7dfa885c9bdaad4ab159eca8659c7429.xmw@gentoo
1 commit: 6d73c36e7dfa885c9bdaad4ab159eca8659c7429
2 Author: Michael Weber <xmw <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 28 15:59:15 2016 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 16:05:38 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d73c36e
7
8 app-text/zathura: drop synctex patch (bug 573162, thanks Luis Ressel).
9
10 Package-Manager: portage-2.2.26
11
12 app-text/zathura/files/zathura-9999-synctex.patch | 51 -----------------------
13 app-text/zathura/zathura-9999.ebuild | 4 --
14 2 files changed, 55 deletions(-)
15
16 diff --git a/app-text/zathura/files/zathura-9999-synctex.patch b/app-text/zathura/files/zathura-9999-synctex.patch
17 deleted file mode 100644
18 index 1a8a492..0000000
19 --- a/app-text/zathura/files/zathura-9999-synctex.patch
20 +++ /dev/null
21 @@ -1,51 +0,0 @@
22 -From f0a86c6ef7c43eec07b0ddc7c002dba506ca1e26 Mon Sep 17 00:00:00 2001
23 -From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <petr.pisar@×××××.cz>
24 -Date: Sat, 9 Jan 2016 09:48:53 +0100
25 -Subject: [PATCH] Use synctex_editor only if WITH_SYNCTEX
26 -MIME-Version: 1.0
27 -Content-Type: text/plain; charset=UTF-8
28 -Content-Transfer-Encoding: 8bit
29 -
30 -Without installed synctex, the build fails like:
31 -
32 -zathura/main.c: In function ‘main’:
33 -zathura/main.c:254:26: error: ‘synctex_editor’ undeclared (first use in this function)
34 - plugin_path, argv, synctex_editor, embed);
35 - ^
36 -zathura/main.c:254:26: note: each undeclared identifier is reported only once for each function it appears in
37 -Makefile:103: recipe for target 'build/release/zathura/main.o' failed
38 -
39 -This patch fixes it.
40 -
41 -<https://bugs.gentoo.org/show_bug.cgi?id=571346>
42 ----
43 - zathura/main.c | 11 ++++++++---
44 - 1 file changed, 8 insertions(+), 3 deletions(-)
45 -
46 -diff --git a/zathura/main.c b/zathura/main.c
47 -index 060382a..9c0d0d3 100644
48 ---- a/zathura/main.c
49 -+++ b/zathura/main.c
50 -@@ -250,11 +250,16 @@ main(int argc, char* argv[])
51 -
52 - /* Create zathura session */
53 - zathura_t* zathura = init_zathura(config_dir, data_dir, cache_dir,
54 --#ifdef GDK_WINDOWING_X11
55 -- plugin_path, argv, synctex_editor, embed);
56 -+ plugin_path, argv,
57 -+#ifdef WITH_SYNCTEX
58 -+ synctex_editor
59 - #else
60 -- plugin_path, argv, synctex_editor);
61 -+ NULL
62 -+#endif
63 -+#ifdef GDK_WINDOWING_X11
64 -+ , embed
65 - #endif
66 -+ );
67 - if (zathura == NULL) {
68 - girara_error("Could not initialize zathura.");
69 - return -1;
70 ---
71 -2.4.10
72 -
73
74 diff --git a/app-text/zathura/zathura-9999.ebuild b/app-text/zathura/zathura-9999.ebuild
75 index ff9ff67..5abb1d2 100644
76 --- a/app-text/zathura/zathura-9999.ebuild
77 +++ b/app-text/zathura/zathura-9999.ebuild
78 @@ -52,10 +52,6 @@ pkg_setup() {
79 )
80 }
81
82 -src_prepare() {
83 - epatch "${FILESDIR}"/${P}-synctex.patch
84 -}
85 -
86 src_compile() {
87 emake "${myzathuraconf[@]}"
88 }