1 |
commit: 218b7b4d8cf5227f6af719f0fbdb48c9a145dace |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 12 13:03:24 2015 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 12 14:28:35 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=218b7b4d |
7 |
|
8 |
gnome-base/librsvg: Version bump |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
gnome-base/librsvg/Manifest | 1 + |
13 |
.../files/librsvg-2.40.12-gtk-optional.patch | 58 +++++++++++++ |
14 |
gnome-base/librsvg/librsvg-2.40.12.ebuild | 99 ++++++++++++++++++++++ |
15 |
3 files changed, 158 insertions(+) |
16 |
|
17 |
diff --git a/gnome-base/librsvg/Manifest b/gnome-base/librsvg/Manifest |
18 |
index f5976a6..bbeeff2 100644 |
19 |
--- a/gnome-base/librsvg/Manifest |
20 |
+++ b/gnome-base/librsvg/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST librsvg-2.40.10.tar.xz 522668 SHA256 965c807438ce90b204e930ff80c92eba1606a2f6fd5ccfd09335c99896dd3479 SHA512 e6b630e8332587df414ac5e4e597a4c93ed6f805f378228b7f882f42d03cba68c952e9c1627b3c57dc105cd5ac739a0f6bbe61595c211de0f9e3bd7867904c96 WHIRLPOOL 96b37494e8fd37242371e1e7f10bcf616993f172fd75ab86b65a0743a432dad9e201975281625fcb70baad697c615c5624fc97a2783e2356c9fbd0365f5072ad |
23 |
DIST librsvg-2.40.11.tar.xz 539428 SHA256 611ac0f544debd0c9bf1ef5509c990d218e83dd1d8c83297075c4b29796a2e02 SHA512 89fc4f94150ab47665ab1b6c26979c8072efe40dd74ff13284598cb63de8594e7cfe4b73a151e54002a4811b5de56b93f5d52215ef0862b994d230fafe04b4fc WHIRLPOOL 7c9a0292faf42dd396a59b38c6900a1b78a254c8bd8c724b5636d506c41934d19c924fbf86c2faab7151c065dd134252b78adfd94940b09acd601ef2dc86a5cc |
24 |
+DIST librsvg-2.40.12.tar.xz 548648 SHA256 ffe40c4378bf3899f4d679a475726bab03a127a5bdccddec86404cc329ffb550 SHA512 baf9f2bbf98dfc2df1ac426ac5f665105ad8388676a3eeb0718df9e733e5113924ee0dfc1e8f98371240993dc685f097fbb81ba68dfa9b5f326ca0f7efb3521c WHIRLPOOL c33c014c16a007be816290877a721fb658c197197650c1aa1dd612631ba5e0513c6c9b73c6925fa29581d6da20633caaec534c3fb1535d0a9526e77180aabbab |
25 |
DIST librsvg-2.40.9.tar.xz 519172 SHA256 13964c5d35357552b47d365c34215eee0a63bf0e6059b689f048648c6bf5f43a SHA512 17b72b509b0d38b1291a2a0594739fd650622ab2a913a5e0c864e5060b15093fc49e436c9e2494d57b475572183d1059ae50b7a1d44a1d4d071ac5ef3bcbeaf6 WHIRLPOOL 59bc56631a212893566fb8ed90e45b3e954f7522c21ee1d7b56987a2cc527c6ea8c43238786b159ab0df43e661108b3b089b4b43845f7d9effb4f064cfde7d12 |
26 |
|
27 |
diff --git a/gnome-base/librsvg/files/librsvg-2.40.12-gtk-optional.patch b/gnome-base/librsvg/files/librsvg-2.40.12-gtk-optional.patch |
28 |
new file mode 100644 |
29 |
index 0000000..b7c5b85 |
30 |
--- /dev/null |
31 |
+++ b/gnome-base/librsvg/files/librsvg-2.40.12-gtk-optional.patch |
32 |
@@ -0,0 +1,58 @@ |
33 |
+From 18917f7fd3160afe06019f4b6234aeb78a3fdb4e Mon Sep 17 00:00:00 2001 |
34 |
+From: Ross Burton <ross.burton@×××××.com> |
35 |
+Date: Tue, 19 Nov 2013 16:00:29 +0000 |
36 |
+Subject: [PATCH] configure: add option to enable/disable use of GTK+ |
37 |
+ |
38 |
+Distro packagers like predictability and automatically detected optional |
39 |
+dependencies are not predicable. Add a --with-gtk3 option (default to "auto") |
40 |
+for forcibly controlling whether GTK+ will be used or not. |
41 |
+ |
42 |
+Signed-off-by: Ross Burton <ross.burton@×××××.com> |
43 |
+ |
44 |
+https://bugzilla.gnome.org/show_bug.cgi?id=712693 |
45 |
+--- |
46 |
+ configure.in | 17 +++++++++++------ |
47 |
+ 1 file changed, 11 insertions(+), 6 deletions(-) |
48 |
+ |
49 |
+diff --git a/configure.in b/configure.in |
50 |
+index f7a89dc..1498f72 100644 |
51 |
+--- a/configure.ac |
52 |
++++ b/configure.ac |
53 |
+@@ -119,17 +119,22 @@ AC_CHECK_FUNCS(strtok_r) |
54 |
+ # GTK |
55 |
+ # =========================================================================== |
56 |
+ |
57 |
+-PKG_CHECK_MODULES([GTK3],[gtk+-3.0 >= $GTK3_REQUIRED],[have_gtk_3=yes],[have_gtk_3=no]) |
58 |
+- |
59 |
+ GTK3_BINARY_VERSION= |
60 |
+ |
61 |
+-if test "$have_gtk_3" = "yes"; then |
62 |
+- GTK3_BINARY_VERSION="`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`" |
63 |
++AC_MSG_CHECKING([whether to use GTK+ 3]) |
64 |
++AC_ARG_WITH([gtk3], |
65 |
++ [AS_HELP_STRING([--without-gtk3],[Don't build GTK+3 tools (default=auto)])], |
66 |
++ [],[PKG_CHECK_EXISTS([gtk+-3.0 >= $GTK3_REQUIRED],[with_gtk3=yes],[with_gtk3=no])]) |
67 |
++AC_MSG_RESULT([$with_gtk3]) |
68 |
++ |
69 |
++if test "$with_gtk3" = "yes"; then |
70 |
++ PKG_CHECK_MODULES(GTK3, [gtk+-3.0 >= $GTK3_REQUIRED]) |
71 |
++ GTK3_BINARY_VERSION="`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`" |
72 |
+ fi |
73 |
+ |
74 |
+ AC_SUBST([GTK3_BINARY_VERSION]) |
75 |
+ |
76 |
+-AM_CONDITIONAL([HAVE_GTK_3],[test "$have_gtk_3" = "yes"]) |
77 |
++AM_CONDITIONAL([HAVE_GTK_3],[test "$with_gtk3" = "yes"]) |
78 |
+ |
79 |
+ dnl =========================================================================== |
80 |
+ dnl GDK-Pixbuf SVG loader |
81 |
+@@ -305,6 +310,6 @@ librsvg-$VERSION |
82 |
+ Build introspectable bindings: ${found_introspection} |
83 |
+ Build Vala bindings: ${enable_vala} |
84 |
+ Build GdkPixbuf loader: ${enable_pixbuf_loader} |
85 |
+- GTK+ $GTK3_REQUIRED or later: ${have_gtk_3} |
86 |
++ GTK 3.0: ${with_gtk3} |
87 |
+ Build miscellaneous tools: ${build_misc_tools} |
88 |
+ " |
89 |
+-- |
90 |
+1.7.10.4 |
91 |
\ No newline at end of file |
92 |
|
93 |
diff --git a/gnome-base/librsvg/librsvg-2.40.12.ebuild b/gnome-base/librsvg/librsvg-2.40.12.ebuild |
94 |
new file mode 100644 |
95 |
index 0000000..d38ade1 |
96 |
--- /dev/null |
97 |
+++ b/gnome-base/librsvg/librsvg-2.40.12.ebuild |
98 |
@@ -0,0 +1,99 @@ |
99 |
+# Copyright 1999-2015 Gentoo Foundation |
100 |
+# Distributed under the terms of the GNU General Public License v2 |
101 |
+# $Id$ |
102 |
+ |
103 |
+EAPI="5" |
104 |
+GCONF_DEBUG="no" |
105 |
+GNOME2_LA_PUNT="yes" |
106 |
+VALA_USE_DEPEND="vapigen" |
107 |
+ |
108 |
+inherit autotools gnome2 multilib-minimal vala |
109 |
+ |
110 |
+DESCRIPTION="Scalable Vector Graphics (SVG) rendering library" |
111 |
+HOMEPAGE="https://wiki.gnome.org/Projects/LibRsvg" |
112 |
+ |
113 |
+LICENSE="LGPL-2" |
114 |
+SLOT="2" |
115 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
116 |
+ |
117 |
+IUSE="+introspection vala tools" |
118 |
+REQUIRED_USE="vala? ( introspection )" |
119 |
+ |
120 |
+RDEPEND=" |
121 |
+ >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] |
122 |
+ >=x11-libs/cairo-1.12.14-r4[${MULTILIB_USEDEP}] |
123 |
+ >=x11-libs/pango-1.36.3[${MULTILIB_USEDEP}] |
124 |
+ >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}] |
125 |
+ >=dev-libs/libcroco-0.6.8-r1[${MULTILIB_USEDEP}] |
126 |
+ >=x11-libs/gdk-pixbuf-2.30.7:2[introspection?,${MULTILIB_USEDEP}] |
127 |
+ introspection? ( >=dev-libs/gobject-introspection-0.10.8:= ) |
128 |
+ tools? ( >=x11-libs/gtk+-3.10.0:3 ) |
129 |
+" |
130 |
+DEPEND="${RDEPEND} |
131 |
+ dev-libs/gobject-introspection-common |
132 |
+ dev-libs/vala-common |
133 |
+ >=dev-util/gtk-doc-am-1.13 |
134 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
135 |
+ vala? ( $(vala_depend) ) |
136 |
+" |
137 |
+# >=gtk-doc-am-1.13, gobject-introspection-common, vala-common needed by eautoreconf |
138 |
+ |
139 |
+src_prepare() { |
140 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=653323 |
141 |
+ epatch "${FILESDIR}/${PN}-2.40.12-gtk-optional.patch" |
142 |
+ |
143 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=731826 |
144 |
+ epatch "${FILESDIR}/${PN}-2.40.2-vala-out-of-source.patch" |
145 |
+ |
146 |
+ eautoreconf |
147 |
+ |
148 |
+ use vala && vala_src_prepare |
149 |
+ gnome2_src_prepare |
150 |
+} |
151 |
+ |
152 |
+multilib_src_configure() { |
153 |
+ local myconf=() |
154 |
+ |
155 |
+ # -Bsymbolic is not supported by the Darwin toolchain |
156 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
157 |
+ myconf+=( --disable-Bsymbolic ) |
158 |
+ fi |
159 |
+ |
160 |
+ # --disable-tools even when USE=tools; the tools/ subdirectory is useful |
161 |
+ # only for librsvg developers |
162 |
+ ECONF_SOURCE=${S} \ |
163 |
+ gnome2_src_configure \ |
164 |
+ --disable-static \ |
165 |
+ --disable-tools \ |
166 |
+ $(multilib_native_use_enable introspection) \ |
167 |
+ $(multilib_native_use_with tools gtk3) \ |
168 |
+ $(multilib_native_use_enable vala) \ |
169 |
+ --enable-pixbuf-loader \ |
170 |
+ "${myconf[@]}" |
171 |
+ |
172 |
+ if multilib_is_native_abi; then |
173 |
+ ln -s "${S}"/doc/html doc/html || die |
174 |
+ fi |
175 |
+} |
176 |
+ |
177 |
+multilib_src_compile() { |
178 |
+ # causes segfault if set, see bug #411765 |
179 |
+ unset __GL_NO_DSO_FINALIZER |
180 |
+ gnome2_src_compile |
181 |
+} |
182 |
+ |
183 |
+multilib_src_install() { |
184 |
+ gnome2_src_install |
185 |
+} |
186 |
+ |
187 |
+pkg_postinst() { |
188 |
+ # causes segfault if set, see bug 375615 |
189 |
+ unset __GL_NO_DSO_FINALIZER |
190 |
+ multilib_foreach_abi gnome2_pkg_postinst |
191 |
+} |
192 |
+ |
193 |
+pkg_postrm() { |
194 |
+ # causes segfault if set, see bug 375615 |
195 |
+ unset __GL_NO_DSO_FINALIZER |
196 |
+ multilib_foreach_abi gnome2_pkg_postrm |
197 |
+} |