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