Gentoo Archives: gentoo-commits

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