1 |
commit: a895df014e07ab454142d9b2cd5200edab6d9b83 |
2 |
Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 5 18:07:19 2016 +0000 |
4 |
Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 5 18:07:19 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-mate.git/commit/?id=a895df01 |
7 |
|
8 |
mate-extra/mate-utils: Backport gtk3 fix for mate-dict |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
.../files/mate-utils-1.12.0-dict-gtk3.patch | 53 ++++++++++++++++++++++ |
13 |
....12.0-r1.ebuild => mate-utils-1.12.0-r2.ebuild} | 2 + |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/mate-extra/mate-utils/files/mate-utils-1.12.0-dict-gtk3.patch b/mate-extra/mate-utils/files/mate-utils-1.12.0-dict-gtk3.patch |
17 |
new file mode 100644 |
18 |
index 0000000..dff6dbe |
19 |
--- /dev/null |
20 |
+++ b/mate-extra/mate-utils/files/mate-utils-1.12.0-dict-gtk3.patch |
21 |
@@ -0,0 +1,53 @@ |
22 |
+From 5ab184661ff38baca3ea2709d81932a578654392 Mon Sep 17 00:00:00 2001 |
23 |
+From: Kir Kolyshkin <kir@××××××.org> |
24 |
+Date: Mon, 16 May 2016 14:52:28 -0700 |
25 |
+Subject: [PATCH] mate-dict.pc: depend upon proper gtk version |
26 |
+ |
27 |
+If the package is built against gtk-3.0 (as in |
28 |
+./configure --with-gtk=3.0), mate-dict.pc still wants gtk-2.0 |
29 |
+since it's hardcoded it there. This can lead to improper builds |
30 |
+of packages using libmatedict (although I can't find any now), |
31 |
+as well as improper RPM dependencies, like this: |
32 |
+ |
33 |
+ $ rpm -e gtk2-devel |
34 |
+ error: Failed dependencies: |
35 |
+ ... |
36 |
+ pkgconfig(gtk+-2.0) is needed by (installed) mate-utils-devel-1.14.0-1gtk3.fc23.x86_64 |
37 |
+ |
38 |
+Fortunately, the file is already generated, so it's trivial to add |
39 |
+a proper substitution. |
40 |
+ |
41 |
+[v2: also add min GTK version required] |
42 |
+ |
43 |
+Signed-off-by: Kir Kolyshkin <kir@××××××.org> |
44 |
+--- |
45 |
+ configure.ac | 2 ++ |
46 |
+ mate-dictionary/libgdict/mate-dict.pc.in | 2 +- |
47 |
+ 2 files changed, 3 insertions(+), 1 deletion(-) |
48 |
+ |
49 |
+diff --git a/configure.ac b/configure.ac |
50 |
+index 64aba70..39cc6f8 100644 |
51 |
+--- a/configure.ac |
52 |
++++ b/configure.ac |
53 |
+@@ -89,6 +89,8 @@ case "$with_gtk" in |
54 |
+ LIBCANBERRA_GTK_REQUIRED=0.4 |
55 |
+ ;; |
56 |
+ esac |
57 |
++AC_SUBST(GTK_API_VERSION) |
58 |
++AC_SUBST(GTK_REQUIRED) |
59 |
+ |
60 |
+ # common checks |
61 |
+ PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED) |
62 |
+diff --git a/mate-dictionary/libgdict/mate-dict.pc.in b/mate-dictionary/libgdict/mate-dict.pc.in |
63 |
+index e409a0c..8168de2 100644 |
64 |
+--- a/mate-dictionary/libgdict/mate-dict.pc.in |
65 |
++++ b/mate-dictionary/libgdict/mate-dict.pc.in |
66 |
+@@ -5,7 +5,7 @@ includedir=@includedir@ |
67 |
+ |
68 |
+ Name: gdict-1.0 |
69 |
+ Description: MATE Dictionary Protocol client library |
70 |
+-Requires: gtk+-2.0 |
71 |
++Requires: gtk+-@GTK_API_VERSION@ >= @GTK_REQUIRED@ |
72 |
+ Version: @GDICT_VERSION@ |
73 |
+ Libs: -L${libdir} -lmatedict |
74 |
+ Cflags: -I${includedir}/mate-dict |
75 |
|
76 |
diff --git a/mate-extra/mate-utils/mate-utils-1.12.0-r1.ebuild b/mate-extra/mate-utils/mate-utils-1.12.0-r2.ebuild |
77 |
similarity index 96% |
78 |
rename from mate-extra/mate-utils/mate-utils-1.12.0-r1.ebuild |
79 |
rename to mate-extra/mate-utils/mate-utils-1.12.0-r2.ebuild |
80 |
index 9453ec5..1022226 100644 |
81 |
--- a/mate-extra/mate-utils/mate-utils-1.12.0-r1.ebuild |
82 |
+++ b/mate-extra/mate-utils/mate-utils-1.12.0-r2.ebuild |
83 |
@@ -50,6 +50,8 @@ DEPEND="${RDEPEND} |
84 |
sys-devel/gettext:* |
85 |
virtual/pkgconfig:*" |
86 |
|
87 |
+PATCHES=( "${FILESDIR}/${P}-dict-gtk3.patch" ) |
88 |
+ |
89 |
src_configure() { |
90 |
mate_src_configure \ |
91 |
--disable-maintainer-flags \ |