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