1 |
pacho 14/06/26 11:20:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gtk+-2.24.24.ebuild |
5 |
Log: |
6 |
Version bump, fix tests when compiling out of sources directory (#510596 by mgorny) |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.725 x11-libs/gtk+/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.725&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.725&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.724&r2=1.725 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v |
20 |
retrieving revision 1.724 |
21 |
retrieving revision 1.725 |
22 |
diff -u -r1.724 -r1.725 |
23 |
--- ChangeLog 24 Jun 2014 22:19:57 -0000 1.724 |
24 |
+++ ChangeLog 26 Jun 2014 11:20:22 -0000 1.725 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for x11-libs/gtk+ |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.724 2014/06/24 22:19:57 mgorny Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.725 2014/06/26 11:20:22 pacho Exp $ |
30 |
+ |
31 |
+*gtk+-2.24.24 (26 Jun 2014) |
32 |
+ |
33 |
+ 26 Jun 2014; Pacho Ramos <pacho@g.o> |
34 |
+ +files/gtk+-2.24.24-out-of-source.patch, +gtk+-2.24.24.ebuild: |
35 |
+ Version bump, fix tests when compiling out of sources directory (#510596 by |
36 |
+ mgorny) |
37 |
|
38 |
24 Jun 2014; Michał Górny <mgorny@g.o> gtk+-2.24.23-r2.ebuild: |
39 |
Lower dev-libs/glib dep to first known EAPI=5 version, requested by Funtoo for |
40 |
|
41 |
|
42 |
|
43 |
1.1 x11-libs/gtk+/gtk+-2.24.24.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.24.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.24.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: gtk+-2.24.24.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.24.ebuild,v 1.1 2014/06/26 11:20:22 pacho Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
GCONF_DEBUG="no" |
56 |
|
57 |
inherit eutils flag-o-matic gnome2 multilib virtualx autotools readme.gentoo multilib-minimal |
58 |
|
59 |
DESCRIPTION="Gimp ToolKit +" |
60 |
HOMEPAGE="http://www.gtk.org/" |
61 |
|
62 |
LICENSE="LGPL-2+" |
63 |
SLOT="2" |
64 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
65 |
IUSE="aqua cups debug examples +introspection test vim-syntax xinerama" |
66 |
|
67 |
# NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf) |
68 |
COMMON_DEPEND=" |
69 |
!aqua? ( |
70 |
>=x11-libs/libXrender-0.9.8[${MULTILIB_USEDEP}] |
71 |
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
72 |
>=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}] |
73 |
>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
74 |
>=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] |
75 |
>=x11-libs/libXcursor-1.1.14[${MULTILIB_USEDEP}] |
76 |
>=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] |
77 |
>=x11-libs/libXcomposite-0.4.4-r1[${MULTILIB_USEDEP}] |
78 |
>=x11-libs/libXdamage-1.1.4-r1[${MULTILIB_USEDEP}] |
79 |
>=x11-libs/cairo-1.12.14-r4:=[X,svg,${MULTILIB_USEDEP}] |
80 |
>=x11-libs/gdk-pixbuf-2.30.7:2[X,introspection?,${MULTILIB_USEDEP}] |
81 |
) |
82 |
aqua? ( |
83 |
>=x11-libs/cairo-1.6:=[aqua,svg] |
84 |
x11-libs/gdk-pixbuf:2[introspection?] |
85 |
) |
86 |
xinerama? ( >=x11-libs/libXinerama-1.1.3[${MULTILIB_USEDEP}] ) |
87 |
>=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] |
88 |
>=x11-libs/pango-1.36.3[introspection?,${MULTILIB_USEDEP}] |
89 |
>=dev-libs/atk-2.10.0[introspection?,${MULTILIB_USEDEP}] |
90 |
>=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] |
91 |
x11-misc/shared-mime-info |
92 |
cups? ( >=net-print/cups-1.7.1-r2:=[${MULTILIB_USEDEP}] ) |
93 |
introspection? ( >=dev-libs/gobject-introspection-0.9.3 ) |
94 |
!<gnome-base/gail-1000 |
95 |
" |
96 |
DEPEND="${COMMON_DEPEND} |
97 |
sys-devel/gettext |
98 |
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
99 |
!aqua? ( |
100 |
>=x11-proto/xextproto-7.2.1-r1[${MULTILIB_USEDEP}] |
101 |
>=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}] |
102 |
>=x11-proto/inputproto-2.3[${MULTILIB_USEDEP}] |
103 |
>=x11-proto/damageproto-1.2.1-r1[${MULTILIB_USEDEP}] |
104 |
) |
105 |
xinerama? ( >=x11-proto/xineramaproto-1.2.1-r1[${MULTILIB_USEDEP}] ) |
106 |
>=dev-util/gtk-doc-am-1.20 |
107 |
test? ( |
108 |
x11-themes/hicolor-icon-theme |
109 |
media-fonts/font-misc-misc |
110 |
media-fonts/font-cursor-misc ) |
111 |
" |
112 |
|
113 |
# gtk+-2.24.8 breaks Alt key handling in <=x11-libs/vte-0.28.2:0 |
114 |
# Add blocker against old gtk-builder-convert to be sure we maintain both |
115 |
# in sync. |
116 |
RDEPEND="${COMMON_DEPEND} |
117 |
!<dev-util/gtk-builder-convert-${PV} |
118 |
!<x11-libs/vte-0.28.2-r201:0 |
119 |
abi_x86_32? ( |
120 |
!<=app-emulation/emul-linux-x86-gtklibs-20140508 |
121 |
!app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)] |
122 |
) |
123 |
" |
124 |
PDEPEND="vim-syntax? ( app-vim/gtk-syntax )" |
125 |
|
126 |
DISABLE_AUTOFORMATTING="yes" |
127 |
DOC_CONTENTS="To make the gtk2 file chooser use 'current directory' mode by default, |
128 |
edit ~/.config/gtk-2.0/gtkfilechooser.ini to contain the following: |
129 |
[Filechooser Settings] |
130 |
StartupMode=cwd" |
131 |
|
132 |
MULTILIB_CHOST_TOOLS=( |
133 |
/usr/bin/gtk-query-immodules-2.0 |
134 |
) |
135 |
|
136 |
strip_builddir() { |
137 |
local rule=$1 |
138 |
shift |
139 |
local directory=$1 |
140 |
shift |
141 |
sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
142 |
|| die "Could not strip director ${directory} from build." |
143 |
} |
144 |
|
145 |
set_gtk2_confdir() { |
146 |
# An arch specific config directory is used on multilib systems |
147 |
GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}" |
148 |
} |
149 |
|
150 |
src_prepare() { |
151 |
# Fix building due to moved definition, upstream bug #704766 |
152 |
epatch "${FILESDIR}"/${PN}-2.24.20-darwin-quartz-pasteboard.patch |
153 |
|
154 |
# Fix tests running when building out of sources, bug #510596 |
155 |
epatch "${FILESDIR}"/${PN}-2.24.24-out-of-source.patch |
156 |
|
157 |
# marshalers code was pre-generated with glib-2.31, upstream bug #671763 |
158 |
rm -v gdk/gdkmarshalers.c gtk/gtkmarshal.c gtk/gtkmarshalers.c \ |
159 |
perf/marshalers.c || die |
160 |
|
161 |
# Stop trying to build unmaintained docs, bug #349754 |
162 |
strip_builddir SUBDIRS tutorial docs/Makefile.am docs/Makefile.in |
163 |
strip_builddir SUBDIRS faq docs/Makefile.am docs/Makefile.in |
164 |
|
165 |
# -O3 and company cause random crashes in applications. Bug #133469 |
166 |
replace-flags -O3 -O2 |
167 |
strip-flags |
168 |
|
169 |
if ! use test; then |
170 |
# don't waste time building tests |
171 |
strip_builddir SRC_SUBDIRS tests Makefile.{am,in} |
172 |
strip_builddir SUBDIRS tests gdk/Makefile.{am,in} gtk/Makefile.{am,in} |
173 |
else |
174 |
# Non-working test in gentoo's env |
175 |
sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \ |
176 |
-i gtk/tests/testing.c || die "sed 1 failed" |
177 |
|
178 |
# Cannot work because glib is too clever to find real user's home |
179 |
# gentoo bug #285687, upstream bug #639832 |
180 |
# XXX: /!\ Pay extra attention to second sed when bumping /!\ |
181 |
sed '/TEST_PROGS.*recentmanager/d' -i gtk/tests/Makefile.am \ |
182 |
|| die "failed to disable recentmanager test (1)" |
183 |
sed '/^TEST_PROGS =/,+3 s/recentmanager//' -i gtk/tests/Makefile.in \ |
184 |
|| die "failed to disable recentmanager test (2)" |
185 |
sed 's:\({ "GtkFileChooserButton".*},\):/*\1*/:g' -i gtk/tests/object.c \ |
186 |
|| die "failed to disable recentmanager test (3)" |
187 |
|
188 |
# Skip tests known to fail |
189 |
# https://bugzilla.gnome.org/show_bug.cgi?id=646609 |
190 |
sed -e '/g_test_add_func.*test_text_access/s:^://:' \ |
191 |
-i "${S}/gtk/tests/testing.c" || die |
192 |
|
193 |
# https://bugzilla.gnome.org/show_bug.cgi?id=617473 |
194 |
sed -i -e 's:pltcheck.sh:$(NULL):g' \ |
195 |
gtk/Makefile.am || die |
196 |
|
197 |
# UI tests require immodules already installed; bug #413185 |
198 |
if ! has_version 'x11-libs/gtk+:2'; then |
199 |
ewarn "Disabling UI tests because this is the first install of" |
200 |
ewarn "gtk+:2 on this machine. Please re-run the tests after $P" |
201 |
ewarn "has been installed." |
202 |
sed '/g_test_add_func.*ui-tests/ d' \ |
203 |
-i gtk/tests/testing.c || die "sed 2 failed" |
204 |
fi |
205 |
fi |
206 |
|
207 |
if ! use examples; then |
208 |
# don't waste time building demos |
209 |
strip_builddir SRC_SUBDIRS demos Makefile.am Makefile.in |
210 |
fi |
211 |
|
212 |
epatch_user |
213 |
|
214 |
eautoreconf |
215 |
|
216 |
gnome2_src_prepare |
217 |
} |
218 |
|
219 |
multilib_src_configure() { |
220 |
[[ ${ABI} == ppc64 ]] && append-flags -mminimal-toc |
221 |
|
222 |
# Passing --disable-debug is not recommended for production use |
223 |
ECONF_SOURCE=${S} \ |
224 |
gnome2_src_configure \ |
225 |
$(usex aqua --with-gdktarget=quartz --with-gdktarget=x11) \ |
226 |
$(usex aqua "" --with-xinput) \ |
227 |
$(usex debug --enable-debug=yes "") \ |
228 |
$(use_enable cups cups auto) \ |
229 |
$(multilib_native_use_enable introspection) \ |
230 |
$(use_enable xinerama) \ |
231 |
--disable-papi \ |
232 |
CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config" |
233 |
|
234 |
# work-around gtk-doc out-of-source brokedness |
235 |
if multilib_is_native_abi; then |
236 |
local d |
237 |
for d in gdk gtk libgail-util; do |
238 |
ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
239 |
done |
240 |
fi |
241 |
} |
242 |
|
243 |
multilib_src_test() { |
244 |
unset DBUS_SESSION_BUS_ADDRESS |
245 |
Xemake check |
246 |
} |
247 |
|
248 |
multilib_src_install() { |
249 |
gnome2_src_install |
250 |
|
251 |
# add -framework Carbon to the .pc files |
252 |
use aqua && for i in gtk+-2.0.pc gtk+-quartz-2.0.pc gtk+-unix-print-2.0.pc; do |
253 |
sed -i -e "s:Libs\: :Libs\: -framework Carbon :" "${ED%/}"/usr/lib/pkgconfig/$i || die "sed failed" |
254 |
done |
255 |
} |
256 |
|
257 |
multilib_src_install_all() { |
258 |
# see bug #133241 |
259 |
echo 'gtk-fallback-icon-theme = "gnome"' > "${T}/gtkrc" |
260 |
insinto /usr/share/gtk-2.0 |
261 |
doins "${T}"/gtkrc |
262 |
|
263 |
dodoc AUTHORS ChangeLog* HACKING NEWS* README* |
264 |
|
265 |
# dev-util/gtk-builder-convert split off into a separate package, #402905 |
266 |
rm "${ED}"usr/bin/gtk-builder-convert || die |
267 |
|
268 |
readme.gentoo_create_doc |
269 |
} |
270 |
|
271 |
pkg_postinst() { |
272 |
set_gtk2_confdir |
273 |
|
274 |
multilib_pkg_postinst() { |
275 |
"${CHOST}"-gtk-query-immodules-2.0 --update-cache \ |
276 |
|| die "Update immodules cache failed (for ${ABI})" |
277 |
} |
278 |
multilib_parallel_foreach_abi multilib_pkg_postinst |
279 |
|
280 |
if [ -e "${EROOT%/}/etc/gtk-2.0/gtk.immodules" ]; then |
281 |
elog "File /etc/gtk-2.0/gtk.immodules has been moved to \$CHOST" |
282 |
elog "aware location. Removing deprecated file." |
283 |
rm -f ${EROOT%/}/etc/gtk-2.0/gtk.immodules |
284 |
fi |
285 |
|
286 |
if [ -e "${EROOT%/}${GTK2_CONFDIR}/gtk.immodules" ]; then |
287 |
elog "File /etc/gtk-2.0/gtk.immodules has been moved to" |
288 |
elog "${EROOT%/}/usr/$(get_libdir)/gtk-2.0/2.10.0/immodules.cache" |
289 |
elog "Removing deprecated file." |
290 |
rm -f ${EROOT%/}${GTK2_CONFDIR}/gtk.immodules |
291 |
fi |
292 |
|
293 |
# pixbufs are now handled by x11-libs/gdk-pixbuf |
294 |
if [ -e "${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders" ]; then |
295 |
elog "File ${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf" |
296 |
elog "Removing deprecated file." |
297 |
rm -f ${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders |
298 |
fi |
299 |
|
300 |
# two checks needed since we dropped multilib conditional |
301 |
if [ -e "${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders" ]; then |
302 |
elog "File ${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf" |
303 |
elog "Removing deprecated file." |
304 |
rm -f ${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders |
305 |
fi |
306 |
|
307 |
if [ -e "${EROOT%/}"/usr/lib/gtk-2.0/2.[^1]* ]; then |
308 |
elog "You need to rebuild ebuilds that installed into" "${EROOT%/}"/usr/lib/gtk-2.0/2.[^1]* |
309 |
elog "to do that you can use qfile from portage-utils:" |
310 |
elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.[^1]*)" |
311 |
fi |
312 |
|
313 |
if ! has_version "app-text/evince"; then |
314 |
elog "Please install app-text/evince for print preview functionality." |
315 |
elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
316 |
elog "add it to your gtkrc." |
317 |
fi |
318 |
|
319 |
readme.gentoo_print_elog |
320 |
} |