Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+: ChangeLog gtk+-2.24.10.ebuild gtk+-2.24.9.ebuild
Date: Tue, 07 Feb 2012 23:43:07
Message-Id: 20120207234257.618DE2004B@flycatcher.gentoo.org
1 tetromino 12/02/07 23:42:57
2
3 Modified: ChangeLog
4 Added: gtk+-2.24.10.ebuild
5 Removed: gtk+-2.24.9.ebuild
6 Log:
7 Version bump; drop crash-prone 2.24.9 version. Avoid building gdk/gtk tests when FEATURES=-test (thanks to Rafał Mużyło).
8
9 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.562 x11-libs/gtk+/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.562&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.562&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.561&r2=1.562
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v
21 retrieving revision 1.561
22 retrieving revision 1.562
23 diff -u -r1.561 -r1.562
24 --- ChangeLog 2 Feb 2012 10:23:10 -0000 1.561
25 +++ ChangeLog 7 Feb 2012 23:42:57 -0000 1.562
26 @@ -1,6 +1,13 @@
27 # ChangeLog for x11-libs/gtk+
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.561 2012/02/02 10:23:10 pacho Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.562 2012/02/07 23:42:57 tetromino Exp $
31 +
32 +*gtk+-2.24.10 (07 Feb 2012)
33 +
34 + 07 Feb 2012; Alexandre Rostovtsev <tetromino@g.o> -gtk+-2.24.9.ebuild,
35 + +gtk+-2.24.10.ebuild:
36 + Version bump; drop crash-prone 2.24.9 version. Avoid building gdk/gtk tests
37 + when FEATURES=-test (thanks to Rafał Mużyło).
38
39 *gtk+-2.24.9-r1 (02 Feb 2012)
40
41
42
43
44 1.1 x11-libs/gtk+/gtk+-2.24.10.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.10.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-2.24.10.ebuild?rev=1.1&content-type=text/plain
48
49 Index: gtk+-2.24.10.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.24.10.ebuild,v 1.1 2012/02/07 23:42:57 tetromino Exp $
54
55 EAPI="4"
56 PYTHON_DEPEND="2:2.4"
57
58 inherit eutils flag-o-matic gnome.org libtool python virtualx autotools
59
60 DESCRIPTION="Gimp ToolKit +"
61 HOMEPAGE="http://www.gtk.org/"
62 SRC_URI="${SRC_URI} mirror://gentoo/introspection.m4.bz2"
63
64 LICENSE="LGPL-2"
65 SLOT="2"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
67 IUSE="aqua cups debug doc examples +introspection test vim-syntax xinerama"
68
69 # NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf)
70 COMMON_DEPEND="!aqua? (
71 x11-libs/libXrender
72 x11-libs/libX11
73 x11-libs/libXi
74 x11-libs/libXt
75 x11-libs/libXext
76 >=x11-libs/libXrandr-1.3
77 x11-libs/libXcursor
78 x11-libs/libXfixes
79 x11-libs/libXcomposite
80 x11-libs/libXdamage
81 >=x11-libs/cairo-1.6[X,svg]
82 x11-libs/gdk-pixbuf:2[X,introspection?]
83 )
84 aqua? (
85 >=x11-libs/cairo-1.6[aqua,svg]
86 x11-libs/gdk-pixbuf:2[introspection?]
87 )
88 xinerama? ( x11-libs/libXinerama )
89 >=dev-libs/glib-2.27.3:2
90 >=x11-libs/pango-1.20[introspection?]
91 >=dev-libs/atk-1.29.2[introspection?]
92 media-libs/fontconfig
93 x11-misc/shared-mime-info
94 cups? ( net-print/cups )
95 introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
96 !<gnome-base/gail-1000"
97 DEPEND="${COMMON_DEPEND}
98 >=dev-util/pkgconfig-0.9
99 !aqua? (
100 x11-proto/xextproto
101 x11-proto/xproto
102 x11-proto/inputproto
103 x11-proto/damageproto
104 )
105 xinerama? ( x11-proto/xineramaproto )
106 >=dev-util/gtk-doc-am-1.11
107 doc? (
108 >=dev-util/gtk-doc-1.11
109 ~app-text/docbook-xml-dtd-4.1.2 )
110 test? (
111 media-fonts/font-misc-misc
112 media-fonts/font-cursor-misc )"
113 # gtk+-2.24.8 breaks Alt key handling in <=x11-libs/vte-0.28.2:0
114 # Remove blocker after >=vte-0.28.2-r201:0 is stable
115 RDEPEND="${COMMON_DEPEND}
116 !<x11-libs/vte-0.28.2-r201:0"
117 PDEPEND="vim-syntax? ( app-vim/gtk-syntax )"
118
119 strip_builddir() {
120 local rule=$1
121 shift
122 local directory=$1
123 shift
124 sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
125 || die "Could not strip director ${directory} from build."
126 }
127
128 set_gtk2_confdir() {
129 # An arch specific config directory is used on multilib systems
130 GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
131 }
132
133 src_prepare() {
134 # use an arch-specific config directory so that 32bit and 64bit versions
135 # dont clash on multilib systems
136 epatch "${FILESDIR}/${PN}-2.21.3-multilib.patch"
137
138 # Don't break inclusion of gtkclist.h, upstream bug 536767
139 epatch "${FILESDIR}/${PN}-2.14.3-limit-gtksignal-includes.patch"
140
141 # fix building with gir #372953, upstream bug #642085
142 epatch "${FILESDIR}"/${PN}-2.24.7-darwin-quartz-introspection.patch
143
144 # Stop trying to build unmaintained docs, bug #349754
145 strip_builddir SUBDIRS tutorial docs/Makefile.am docs/Makefile.in
146 strip_builddir SUBDIRS faq docs/Makefile.am docs/Makefile.in
147
148 # -O3 and company cause random crashes in applications. Bug #133469
149 replace-flags -O3 -O2
150 strip-flags
151
152 use ppc64 && append-flags -mminimal-toc
153
154 if ! use test; then
155 # don't waste time building tests
156 strip_builddir SRC_SUBDIRS tests Makefile.{am,in}
157 strip_builddir SUBDIRS tests gdk/Makefile.{am,in} gtk/Makefile.{am,in}
158 else
159 # Non-working test in gentoo's env
160 sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \
161 -i gtk/tests/testing.c || die "sed 1 failed"
162
163 # Cannot work because glib is too clever to find real user's home
164 # gentoo bug #285687, upstream bug #639832
165 # XXX: /!\ Pay extra attention to second sed when bumping /!\
166 sed '/TEST_PROGS.*recentmanager/d' -i gtk/tests/Makefile.am \
167 || die "failed to disable recentmanager test (1)"
168 sed '/^TEST_PROGS =/,+3 s/recentmanager//' -i gtk/tests/Makefile.in \
169 || die "failed to disable recentmanager test (2)"
170 sed 's:\({ "GtkFileChooserButton".*},\):/*\1*/:g' -i gtk/tests/object.c \
171 || die "failed to disable recentmanager test (3)"
172
173 # Skip tests known to fail
174 # https://bugzilla.gnome.org/show_bug.cgi?id=646609
175 sed -e '/g_test_add_func.*test_text_access/s:^://:' \
176 -i "${S}/gtk/tests/testing.c" || die
177
178 # https://bugzilla.gnome.org/show_bug.cgi?id=617473
179 sed -i -e 's:pltcheck.sh:$(NULL):g' \
180 gtk/Makefile.am || die
181 fi
182
183 if ! use examples; then
184 # don't waste time building demos
185 strip_builddir SRC_SUBDIRS demos Makefile.am Makefile.in
186 fi
187
188 # http://bugs.gentoo.org/show_bug.cgi?id=371907
189 mkdir -p "${S}/m4" || die
190 mv "${WORKDIR}/introspection.m4" "${S}/m4macros" || die
191 AT_M4DIR=m4macros eautoreconf
192 # Use elibtoolize in place of eautoreconf when it will be dropped
193 #elibtoolize
194 }
195
196 src_configure() {
197 local myconf="$(use_enable doc gtk-doc)
198 $(use_enable xinerama)
199 $(use_enable cups cups auto)
200 $(use_enable introspection)
201 --disable-papi"
202 if use aqua; then
203 myconf="${myconf} --with-gdktarget=quartz"
204 else
205 myconf="${myconf} --with-gdktarget=x11 --with-xinput"
206 fi
207
208 # Passing --disable-debug is not recommended for production use
209 use debug && myconf="${myconf} --enable-debug=yes"
210
211 econf ${myconf}
212 }
213
214 src_test() {
215 unset DBUS_SESSION_BUS_ADDRESS
216 # Exporting HOME fixes tests using XDG directories spec since all defaults
217 # are based on $HOME. It is also backward compatible with functions not
218 # yet ported to this spec.
219 XDG_DATA_HOME="${T}" HOME="${T}" Xemake check || die "tests failed"
220 }
221
222 src_install() {
223 emake DESTDIR="${D}" install
224
225 set_gtk2_confdir
226 dodir ${GTK2_CONFDIR}
227 keepdir ${GTK2_CONFDIR}
228
229 # see bug #133241
230 echo 'gtk-fallback-icon-theme = "gnome"' > "${T}/gtkrc"
231 insinto /etc/gtk-2.0
232 doins "${T}"/gtkrc
233
234 # Enable xft in environment as suggested by <utx@g.o>
235 echo "GDK_USE_XFT=1" > "${T}"/50gtk2
236 doenvd "${T}"/50gtk2
237
238 dodoc AUTHORS ChangeLog* HACKING NEWS* README*
239
240 # add -framework Carbon to the .pc files
241 use aqua && for i in gtk+-2.0.pc gtk+-quartz-2.0.pc gtk+-unix-print-2.0.pc; do
242 sed -i -e "s:Libs\: :Libs\: -framework Carbon :" "${ED%/}"/usr/lib/pkgconfig/$i || die "sed failed"
243 done
244
245 python_convert_shebangs 2 "${ED}"usr/bin/gtk-builder-convert
246
247 find "${D}" -name '*.la' -exec rm -f {} +
248 }
249
250 pkg_postinst() {
251 set_gtk2_confdir
252
253 # gtk.immodules should be in their CHOST directories respectively.
254 gtk-query-immodules-2.0 > "${EROOT%/}${GTK2_CONFDIR}/gtk.immodules" \
255 || ewarn "Failed to run gtk-query-immodules-2.0"
256
257 if [ -e "${EROOT%/}/etc/gtk-2.0/gtk.immodules" ]; then
258 elog "File /etc/gtk-2.0/gtk.immodules has been moved to \$CHOST"
259 elog "aware location. Removing deprecated file."
260 rm -f ${EROOT%/}/etc/gtk-2.0/gtk.immodules
261 fi
262
263 # pixbufs are now handled by x11-libs/gdk-pixbuf
264 if [ -e "${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders" ]; then
265 elog "File ${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf"
266 elog "Removing deprecated file."
267 rm -f ${EROOT%/}${GTK2_CONFDIR}/gdk-pixbuf.loaders
268 fi
269
270 # two checks needed since we dropped multilib conditional
271 if [ -e "${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders" ]; then
272 elog "File ${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders is now handled by x11-libs/gdk-pixbuf"
273 elog "Removing deprecated file."
274 rm -f ${EROOT%/}/etc/gtk-2.0/gdk-pixbuf.loaders
275 fi
276
277 if [ -e "${EROOT%/}"/usr/lib/gtk-2.0/2.[^1]* ]; then
278 elog "You need to rebuild ebuilds that installed into" "${EROOT%/}"/usr/lib/gtk-2.0/2.[^1]*
279 elog "to do that you can use qfile from portage-utils:"
280 elog "emerge -va1 \$(qfile -qC ${EPREFIX}/usr/lib/gtk-2.0/2.[^1]*)"
281 fi
282
283 if ! has_version "app-text/evince"; then
284 elog "Please install app-text/evince for print preview functionality."
285 elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
286 elog "add it to your gtkrc."
287 fi
288 }