1 |
commit: 0053dbfdeb402940ea20cc2c521c22975ad3bfdb |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 9 00:53:57 2017 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 9 01:17:09 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0053dbfd |
7 |
|
8 |
x11-libs/gtk+: bump to 3.22.12 |
9 |
|
10 |
x11-libs/gtk+/Manifest | 1 + |
11 |
x11-libs/gtk+/gtk+-3.22.12.ebuild | 229 ++++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 230 insertions(+) |
13 |
|
14 |
diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest |
15 |
index e75eadc7949..cd91e2e16cf 100644 |
16 |
--- a/x11-libs/gtk+/Manifest |
17 |
+++ b/x11-libs/gtk+/Manifest |
18 |
@@ -1,3 +1,4 @@ |
19 |
DIST gtk+-2.24.31.tar.xz 12805344 SHA256 68c1922732c7efc08df4656a5366dcc3afdc8791513400dac276009b40954658 SHA512 75b846661308d94b5236e7e1c367deabf57753792ca87e92f9769822dd5ec90e00cd8d5574adcc12162e3702e1ae6dc152278a1d218f9bd9e4d1c8dc1dd520c1 WHIRLPOOL 6f59d444b28910b0f4cd7d0d0bf04f8e442acd945205679c19e5adf7ca3f8e7406d4095e9ff9ca597882eb937a7551e19af63b6597e7b57c0babe5b061f9110e |
20 |
DIST gtk+-3.20.9.tar.xz 17174872 SHA256 83a609ba2f3424b5509e73967c49c67833af466d6f91081b24ee5c64fce6ac17 SHA512 5848403959f76633511009231c80a814cfe24a7ba07c9429704f432191e51b54d3e6621ce5b578f79999f21993920af3a45c8d03dad6ba03af5f9a342b32626e WHIRLPOOL 7964b82dabf72b5d45a34565874ba02e0dda09b0f358f640ca0c602c3c7aa4618432829d047794f5f202424c34c837bbdc31ccb3c5457768e252f048afd30107 |
21 |
DIST gtk+-3.22.11.tar.xz 18250068 SHA256 db440670cb6f3c098b076df3735fbc4e69359bd605385e87c90ee48344a804ca SHA512 0dd8c0b8cf01a687bd7b9548308a8719fda4a30e0b47139db049906333d23c1eee3867af130dc3ecd0fb4a1381c8065e9929ccd9cb4def376bbb0b136ec05a7e WHIRLPOOL 4ab9e69f3d7987cfdc67555657e402ac181817d0a91ba61f8a238ee4190150766c36fff67765a6af56941a02383db0737812a39dae81ab432269586f4d711165 |
22 |
+DIST gtk+-3.22.12.tar.xz 18236348 SHA256 84fae0cefb6a11ee2b4e86b8ac42fe46a3d30b4ad16661d5fc51e8ae03e2a98c SHA512 a37121dd4737c68f72f3172830ac3f26faeb09b4040f2a341b04a87cab26876b437777d512ed416a968d68d6a52e0401c045b78c2eac0f87b3b0bf8ef34e3ba9 WHIRLPOOL 075e48efa2a83d4bedef8b4f0ed5dd96fe41298e4b6c0cd9809d319ddc06e6522a667e72ca9a1218c7427449dd897f878e3bd575f527ded813e04b315e999b13 |
23 |
|
24 |
diff --git a/x11-libs/gtk+/gtk+-3.22.12.ebuild b/x11-libs/gtk+/gtk+-3.22.12.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..b48690742f5 |
27 |
--- /dev/null |
28 |
+++ b/x11-libs/gtk+/gtk+-3.22.12.ebuild |
29 |
@@ -0,0 +1,229 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+GNOME2_LA_PUNT="yes" |
35 |
+ |
36 |
+inherit autotools flag-o-matic gnome2 multilib virtualx multilib-minimal |
37 |
+ |
38 |
+DESCRIPTION="Gimp ToolKit +" |
39 |
+HOMEPAGE="http://www.gtk.org/" |
40 |
+ |
41 |
+LICENSE="LGPL-2+" |
42 |
+SLOT="3" |
43 |
+IUSE="aqua broadway cloudprint colord cups examples +introspection test vim-syntax wayland +X xinerama" |
44 |
+REQUIRED_USE=" |
45 |
+ || ( aqua wayland X ) |
46 |
+ xinerama? ( X ) |
47 |
+" |
48 |
+ |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
50 |
+ |
51 |
+# Upstream wants us to do their job: |
52 |
+# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1 |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+# FIXME: introspection data is built against system installation of gtk+:3, |
56 |
+# bug #???? |
57 |
+COMMON_DEPEND=" |
58 |
+ >=dev-libs/atk-2.15[introspection?,${MULTILIB_USEDEP}] |
59 |
+ >=dev-libs/glib-2.49.4:2[${MULTILIB_USEDEP}] |
60 |
+ media-libs/fontconfig[${MULTILIB_USEDEP}] |
61 |
+ >=media-libs/libepoxy-1.0[X(+)?,${MULTILIB_USEDEP}] |
62 |
+ >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}] |
63 |
+ >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}] |
64 |
+ >=x11-libs/pango-1.37.3[introspection?,${MULTILIB_USEDEP}] |
65 |
+ x11-misc/shared-mime-info |
66 |
+ |
67 |
+ cloudprint? ( |
68 |
+ >=net-libs/rest-0.7[${MULTILIB_USEDEP}] |
69 |
+ >=dev-libs/json-glib-1.0[${MULTILIB_USEDEP}] ) |
70 |
+ colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] ) |
71 |
+ cups? ( >=net-print/cups-1.2[${MULTILIB_USEDEP}] ) |
72 |
+ introspection? ( >=dev-libs/gobject-introspection-1.39:= ) |
73 |
+ wayland? ( |
74 |
+ >=dev-libs/wayland-1.9.91[${MULTILIB_USEDEP}] |
75 |
+ >=dev-libs/wayland-protocols-1.7 |
76 |
+ media-libs/mesa[wayland,${MULTILIB_USEDEP}] |
77 |
+ >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}] |
78 |
+ ) |
79 |
+ X? ( |
80 |
+ >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}] |
81 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
82 |
+ >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}] |
83 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
84 |
+ >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}] |
85 |
+ x11-libs/libXcursor[${MULTILIB_USEDEP}] |
86 |
+ x11-libs/libXfixes[${MULTILIB_USEDEP}] |
87 |
+ x11-libs/libXcomposite[${MULTILIB_USEDEP}] |
88 |
+ x11-libs/libXdamage[${MULTILIB_USEDEP}] |
89 |
+ xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
90 |
+ ) |
91 |
+" |
92 |
+DEPEND="${COMMON_DEPEND} |
93 |
+ app-text/docbook-xsl-stylesheets |
94 |
+ app-text/docbook-xml-dtd:4.1.2 |
95 |
+ dev-libs/libxslt |
96 |
+ dev-libs/gobject-introspection-common |
97 |
+ >=dev-util/gdbus-codegen-2.48 |
98 |
+ >=dev-util/gtk-doc-am-1.20 |
99 |
+ >=sys-devel/gettext-0.19.7[${MULTILIB_USEDEP}] |
100 |
+ virtual/pkgconfig[${MULTILIB_USEDEP}] |
101 |
+ X? ( |
102 |
+ x11-proto/xextproto[${MULTILIB_USEDEP}] |
103 |
+ x11-proto/xproto[${MULTILIB_USEDEP}] |
104 |
+ x11-proto/inputproto[${MULTILIB_USEDEP}] |
105 |
+ x11-proto/damageproto[${MULTILIB_USEDEP}] |
106 |
+ xinerama? ( x11-proto/xineramaproto[${MULTILIB_USEDEP}] ) |
107 |
+ ) |
108 |
+ test? ( |
109 |
+ media-fonts/font-misc-misc |
110 |
+ media-fonts/font-cursor-misc ) |
111 |
+" |
112 |
+# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90 |
113 |
+# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90 |
114 |
+# >=xorg-server-1.11.4 needed for |
115 |
+# https://mail.gnome.org/archives/desktop-devel-list/2012-March/msg00024.html |
116 |
+RDEPEND="${COMMON_DEPEND} |
117 |
+ >=dev-util/gtk-update-icon-cache-3 |
118 |
+ !<gnome-base/gail-1000 |
119 |
+ !<x11-libs/vte-0.31.0:2.90 |
120 |
+ >=x11-themes/adwaita-icon-theme-3.14 |
121 |
+ X? ( !<x11-base/xorg-server-1.11.4 ) |
122 |
+" |
123 |
+# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710 |
124 |
+PDEPEND=" |
125 |
+ gnome-base/librsvg[${MULTILIB_USEDEP}] |
126 |
+ vim-syntax? ( app-vim/gtk-syntax ) |
127 |
+" |
128 |
+ |
129 |
+MULTILIB_CHOST_TOOLS=( |
130 |
+ /usr/bin/gtk-query-immodules-3.0$(get_exeext) |
131 |
+) |
132 |
+ |
133 |
+strip_builddir() { |
134 |
+ local rule=$1 |
135 |
+ shift |
136 |
+ local directory=$1 |
137 |
+ shift |
138 |
+ sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
139 |
+ || die "Could not strip director ${directory} from build." |
140 |
+} |
141 |
+ |
142 |
+src_prepare() { |
143 |
+ if ! use test ; then |
144 |
+ # don't waste time building tests |
145 |
+ strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in} |
146 |
+ |
147 |
+ # the tests dir needs to be build now because since commit |
148 |
+ # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there |
149 |
+ # strip_builddir SRC_SUBDIRS tests Makefile.{am,in} |
150 |
+ fi |
151 |
+ |
152 |
+ if ! use examples; then |
153 |
+ # don't waste time building demos |
154 |
+ strip_builddir SRC_SUBDIRS demos Makefile.{am,in} |
155 |
+ strip_builddir SRC_SUBDIRS examples Makefile.{am,in} |
156 |
+ fi |
157 |
+ |
158 |
+ # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache |
159 |
+ eapply "${FILESDIR}"/${PN}-3.22.2-update-icon-cache.patch |
160 |
+ |
161 |
+ eautoreconf |
162 |
+ gnome2_src_prepare |
163 |
+} |
164 |
+ |
165 |
+multilib_src_configure() { |
166 |
+ # need libdir here to avoid a double slash in a path that libtool doesn't |
167 |
+ # grok so well during install (// between $EPREFIX and usr ...) |
168 |
+ ECONF_SOURCE=${S} \ |
169 |
+ gnome2_src_configure \ |
170 |
+ $(use_enable aqua quartz-backend) \ |
171 |
+ $(use_enable broadway broadway-backend) \ |
172 |
+ $(use_enable cloudprint) \ |
173 |
+ $(use_enable colord) \ |
174 |
+ $(use_enable cups cups auto) \ |
175 |
+ $(multilib_native_use_enable introspection) \ |
176 |
+ $(use_enable wayland wayland-backend) \ |
177 |
+ $(use_enable X x11-backend) \ |
178 |
+ $(use_enable X xcomposite) \ |
179 |
+ $(use_enable X xdamage) \ |
180 |
+ $(use_enable X xfixes) \ |
181 |
+ $(use_enable X xkb) \ |
182 |
+ $(use_enable X xrandr) \ |
183 |
+ $(use_enable xinerama) \ |
184 |
+ --disable-papi \ |
185 |
+ --disable-mir-backend \ |
186 |
+ --enable-man \ |
187 |
+ --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \ |
188 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
189 |
+ CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config" |
190 |
+ |
191 |
+ # work-around gtk-doc out-of-source brokedness |
192 |
+ if multilib_is_native_abi; then |
193 |
+ local d |
194 |
+ for d in gdk gtk libgail-util; do |
195 |
+ ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
196 |
+ done |
197 |
+ fi |
198 |
+} |
199 |
+ |
200 |
+multilib_src_test() { |
201 |
+ "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die |
202 |
+ GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check |
203 |
+} |
204 |
+ |
205 |
+multilib_src_install() { |
206 |
+ gnome2_src_install |
207 |
+} |
208 |
+ |
209 |
+multilib_src_install_all() { |
210 |
+ insinto /etc/gtk-3.0 |
211 |
+ doins "${FILESDIR}"/settings.ini |
212 |
+ # Skip README.{in,commits,win32} and useless ChangeLog that would get installed by default |
213 |
+ DOCS=( AUTHORS NEWS README ) |
214 |
+ einstalldocs |
215 |
+} |
216 |
+ |
217 |
+pkg_preinst() { |
218 |
+ gnome2_pkg_preinst |
219 |
+ |
220 |
+ multilib_pkg_preinst() { |
221 |
+ # Make immodules.cache belongs to gtk+ alone |
222 |
+ local cache="usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
223 |
+ |
224 |
+ if [[ -e ${EROOT}${cache} ]]; then |
225 |
+ cp "${EROOT}"${cache} "${ED}"/${cache} || die |
226 |
+ else |
227 |
+ touch "${ED}"/${cache} || die |
228 |
+ fi |
229 |
+ } |
230 |
+ multilib_parallel_foreach_abi multilib_pkg_preinst |
231 |
+} |
232 |
+ |
233 |
+pkg_postinst() { |
234 |
+ gnome2_pkg_postinst |
235 |
+ |
236 |
+ multilib_pkg_postinst() { |
237 |
+ gnome2_query_immodules_gtk3 \ |
238 |
+ || die "Update immodules cache failed (for ${ABI})" |
239 |
+ } |
240 |
+ multilib_parallel_foreach_abi multilib_pkg_postinst |
241 |
+ |
242 |
+ if ! has_version "app-text/evince"; then |
243 |
+ elog "Please install app-text/evince for print preview functionality." |
244 |
+ elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
245 |
+ elog "add it to your settings.ini file." |
246 |
+ fi |
247 |
+} |
248 |
+ |
249 |
+pkg_postrm() { |
250 |
+ gnome2_pkg_postrm |
251 |
+ |
252 |
+ if [[ -z ${REPLACED_BY_VERSION} ]]; then |
253 |
+ multilib_pkg_postrm() { |
254 |
+ rm -f "${EROOT}"usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache |
255 |
+ } |
256 |
+ multilib_foreach_abi multilib_pkg_postrm |
257 |
+ fi |
258 |
+} |