Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+: gtk+-3.8.7.ebuild ChangeLog gtk+-3.8.4.ebuild
Date: Thu, 21 Nov 2013 20:32:44
Message-Id: 20131121203241.1200E2004B@flycatcher.gentoo.org
1 pacho 13/11/21 20:32:40
2
3 Modified: ChangeLog
4 Added: gtk+-3.8.7.ebuild
5 Removed: gtk+-3.8.4.ebuild
6 Log:
7 Version bump, drop old
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
10
11 Revision Changes Path
12 1.686 x11-libs/gtk+/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.686&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.686&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.685&r2=1.686
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v
21 retrieving revision 1.685
22 retrieving revision 1.686
23 diff -u -r1.685 -r1.686
24 --- ChangeLog 14 Nov 2013 07:18:45 -0000 1.685
25 +++ ChangeLog 21 Nov 2013 20:32:40 -0000 1.686
26 @@ -1,6 +1,12 @@
27 # ChangeLog for x11-libs/gtk+
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.685 2013/11/14 07:18:45 mattst88 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.686 2013/11/21 20:32:40 pacho Exp $
31 +
32 +*gtk+-3.8.7 (21 Nov 2013)
33 +
34 + 21 Nov 2013; Pacho Ramos <pacho@g.o> +gtk+-3.8.7.ebuild,
35 + -gtk+-3.8.4.ebuild:
36 + Version bump, drop old
37
38 14 Nov 2013; Matt Turner <mattst88@g.o> gtk+-3.6.3-r3.ebuild:
39 alpha stable, bug 476364.
40
41
42
43 1.1 x11-libs/gtk+/gtk+-3.8.7.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.8.7.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.8.7.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gtk+-3.8.7.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-3.8.7.ebuild,v 1.1 2013/11/21 20:32:40 pacho Exp $
53
54 EAPI="5"
55 inherit eutils flag-o-matic gnome.org gnome2-utils multilib virtualx
56
57 DESCRIPTION="Gimp ToolKit +"
58 HOMEPAGE="http://www.gtk.org/"
59
60 LICENSE="LGPL-2+"
61 SLOT="3"
62 # NOTE: This gtk+ has multi-gdk-backend support, see:
63 # * http://blogs.gnome.org/kris/2010/12/29/gdk-3-0-on-mac-os-x/
64 # * http://mail.gnome.org/archives/gtk-devel-list/2010-November/msg00099.html
65 # I tried this and got it all compiling, but the end result is unusable as it
66 # horribly mixes up the backends -- grobian
67 IUSE="aqua colord cups debug examples +introspection packagekit test vim-syntax wayland X xinerama"
68 REQUIRED_USE="
69 || ( aqua wayland X )
70 xinerama? ( X )"
71
72 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 ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
73
74 # FIXME: introspection data is built against system installation of gtk+:3
75 # NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf)
76 # Use gtk+:2 for gtk-update-icon-cache
77 COMMON_DEPEND="
78 X? (
79 >=app-accessibility/at-spi2-atk-2.5.3
80 x11-libs/libXrender
81 x11-libs/libX11
82 >=x11-libs/libXi-1.3
83 x11-libs/libXext
84 >=x11-libs/libXrandr-1.3
85 x11-libs/libXcursor
86 x11-libs/libXfixes
87 x11-libs/libXcomposite
88 x11-libs/libXdamage
89 xinerama? ( x11-libs/libXinerama )
90 )
91 wayland? (
92 >=dev-libs/wayland-1.0
93 media-libs/mesa[wayland]
94 >=x11-libs/libxkbcommon-0.2
95 )
96 >=dev-libs/glib-2.35.3:2
97 >=x11-libs/pango-1.32.4[introspection?]
98 >=dev-libs/atk-2.7.5[introspection?]
99 >=x11-libs/cairo-1.10.0[aqua?,glib,svg,X?]
100 >=x11-libs/gdk-pixbuf-2.27.1:2[introspection?,X?]
101 >=x11-libs/gtk+-2.24:2
102 media-libs/fontconfig
103 x11-misc/shared-mime-info
104 colord? ( >=x11-misc/colord-0.1.9 )
105 cups? ( >=net-print/cups-1.2 )
106 introspection? ( >=dev-libs/gobject-introspection-1.32 )
107 "
108 DEPEND="${COMMON_DEPEND}
109 app-text/docbook-xsl-stylesheets
110 app-text/docbook-xml-dtd:4.1.2
111 dev-libs/libxslt
112 dev-util/gdbus-codegen
113 virtual/pkgconfig
114 X? (
115 x11-proto/xextproto
116 x11-proto/xproto
117 x11-proto/inputproto
118 x11-proto/damageproto
119 xinerama? ( x11-proto/xineramaproto )
120 )
121 >=dev-util/gtk-doc-am-1.11
122 test? (
123 media-fonts/font-misc-misc
124 media-fonts/font-cursor-misc )
125 "
126 # gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90
127 # gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90
128 # >=xorg-server-1.11.4 needed for
129 # http://mail.gnome.org/archives/desktop-devel-list/2012-March/msg00024.html
130 RDEPEND="${COMMON_DEPEND}
131 !<gnome-base/gail-1000
132 !<x11-libs/vte-0.31.0:2.90
133 packagekit? ( app-admin/packagekit-base )
134 X? ( !<x11-base/xorg-server-1.11.4 )
135 "
136 PDEPEND="vim-syntax? ( app-vim/gtk-syntax )"
137
138 strip_builddir() {
139 local rule=$1
140 shift
141 local directory=$1
142 shift
143 sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
144 || die "Could not strip director ${directory} from build."
145 }
146
147 src_prepare() {
148 gnome2_environment_reset
149
150 # -O3 and company cause random crashes in applications. Bug #133469
151 replace-flags -O3 -O2
152 strip-flags
153
154 # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=654108
155 # epatch "${FILESDIR}/${PN}-3.3.18-fallback-theme.patch"
156
157 # This files shouldn't be in tarball, upstream bug #709974
158 # This needs dev-util/gdbus-codegen in DEPEND
159 rm -f gtk/gtkdbusgenerated.{h,c} || die
160
161 if use test; then
162 # Non-working test in gentoo's env
163 sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \
164 -i gtk/tests/testing.c || die "sed 1 failed"
165 sed '\%/recent-manager/add%,/recent_manager_purge/ d' \
166 -i gtk/tests/recentmanager.c || die "sed 2 failed"
167
168 # FIXME: multiple reftests fail when run from portage (but succeed when
169 # run from a manual compile in a temp directory)
170 sed -e 's:\(SUBDIRS.*\)reftests:\1:' \
171 -i tests/Makefile.* || die "sed 3 failed"
172
173 # Test results depend on the list of mounted filesystems!
174 rm -f tests/a11y/pickers.{ui,txt} || die "rm failed"
175
176 # Skip failing tests, upstream bug #698448
177 epatch "${FILESDIR}/${PN}-3.8.6-skip-filechooser-test.patch"
178
179 # https://bugzilla.gnome.org/show_bug.cgi?id=710467
180 rm -f tests/a11y/buttons.{ui,txt} || die
181 else
182 # don't waste time building tests
183 strip_builddir SRC_SUBDIRS tests Makefile.am
184 strip_builddir SRC_SUBDIRS tests Makefile.in
185 fi
186
187 if ! use examples; then
188 # don't waste time building demos
189 strip_builddir SRC_SUBDIRS demos Makefile.am
190 strip_builddir SRC_SUBDIRS demos Makefile.in
191 fi
192 }
193
194 src_configure() {
195 # Passing --disable-debug is not recommended for production use
196 # need libdir here to avoid a double slash in a path that libtool doesn't
197 # grok so well during install (// between $EPREFIX and usr ...)
198 econf \
199 $(use_enable aqua quartz-backend) \
200 $(use_enable colord) \
201 $(use_enable cups cups auto) \
202 $(usex debug --enable-debug=yes "") \
203 $(use_enable introspection) \
204 $(use_enable packagekit) \
205 $(use_enable wayland wayland-backend) \
206 $(use_enable X x11-backend) \
207 $(use_enable X xcomposite) \
208 $(use_enable X xdamage) \
209 $(use_enable X xfixes) \
210 $(use_enable X xkb) \
211 $(use_enable X xrandr) \
212 $(use_enable xinerama) \
213 --disable-gtk-doc \
214 --disable-papi \
215 --enable-man \
216 --enable-gtk2-dependency \
217 --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \
218 --libdir="${EPREFIX}/usr/$(get_libdir)"
219 }
220
221 src_test() {
222 # Tests require a new gnome-themes-standard, but adding it to DEPEND
223 # would result in circular dependencies.
224 # https://bugzilla.gnome.org/show_bug.cgi?id=669562
225 if ! has_version '>=x11-themes/gnome-themes-standard-3.6[gtk]'; then
226 ewarn "Tests will be skipped because >=gnome-themes-standard-3.6[gtk]"
227 ewarn "is not installed. Please re-run tests after installing the"
228 ewarn "required version of gnome-themes-standard."
229 return 0
230 fi
231
232 unset DBUS_SESSION_BUS_ADDRESS
233 Xemake check
234 }
235
236 src_install() {
237 emake DESTDIR="${D}" install
238
239 insinto /etc/gtk-3.0
240 doins "${FILESDIR}"/settings.ini
241
242 dodoc AUTHORS ChangeLog* HACKING NEWS* README*
243
244 prune_libtool_files --modules
245
246 # add -framework Carbon to the .pc files
247 use aqua && for i in gtk+-3.0.pc gtk+-quartz-3.0.pc gtk+-unix-print-3.0.pc; do
248 sed -i -e "s:Libs\: :Libs\: -framework Carbon :" "${ED}"usr/$(get_libdir)/pkgconfig/$i || die "sed failed"
249 done
250 }
251
252 pkg_preinst() {
253 gnome2_schemas_savelist
254 }
255
256 pkg_postinst() {
257 gnome2_schemas_update
258
259 local GTK3_MODDIR="${EROOT}usr/$(get_libdir)/gtk-3.0/3.0.0"
260 gtk-query-immodules-3.0 > "${GTK3_MODDIR}/immodules.cache" \
261 || ewarn "Failed to run gtk-query-immodules-3.0"
262
263 if ! has_version "app-text/evince"; then
264 elog "Please install app-text/evince for print preview functionality."
265 elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
266 elog "add it to your settings.ini file."
267 fi
268 }
269
270 pkg_postrm() {
271 gnome2_schemas_update
272 }