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.12.2.ebuild ChangeLog
Date: Sat, 31 May 2014 07:59:38
Message-Id: 20140531075934.705D220036@flycatcher.gentoo.org
1 pacho 14/05/31 07:59:34
2
3 Modified: ChangeLog
4 Added: gtk+-3.12.2.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.719 x11-libs/gtk+/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.719&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.719&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.718&r2=1.719
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v
20 retrieving revision 1.718
21 retrieving revision 1.719
22 diff -u -r1.718 -r1.719
23 --- ChangeLog 14 May 2014 13:36:39 -0000 1.718
24 +++ ChangeLog 31 May 2014 07:59:34 -0000 1.719
25 @@ -1,6 +1,11 @@
26 # ChangeLog for x11-libs/gtk+
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.718 2014/05/14 13:36:39 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.719 2014/05/31 07:59:34 pacho Exp $
30 +
31 +*gtk+-3.12.2 (31 May 2014)
32 +
33 + 31 May 2014; Pacho Ramos <pacho@g.o> +gtk+-3.12.2.ebuild:
34 + Version bump
35
36 *gtk+-2.24.23-r1 (14 May 2014)
37
38
39
40
41 1.1 x11-libs/gtk+/gtk+-3.12.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.12.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.12.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gtk+-3.12.2.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.12.2.ebuild,v 1.1 2014/05/31 07:59:34 pacho Exp $
51
52 EAPI="5"
53 GCONF_DEBUG="no"
54 GNOME2_LA_PUNT="yes"
55
56 inherit flag-o-matic gnome2 multilib virtualx
57
58 DESCRIPTION="Gimp ToolKit +"
59 HOMEPAGE="http://www.gtk.org/"
60
61 LICENSE="LGPL-2+"
62 SLOT="3"
63 # NOTE: This gtk+ has multi-gdk-backend support, see:
64 # * http://blogs.gnome.org/kris/2010/12/29/gdk-3-0-on-mac-os-x/
65 # * http://mail.gnome.org/archives/gtk-devel-list/2010-November/msg00099.html
66 # I tried this and got it all compiling, but the end result is unusable as it
67 # horribly mixes up the backends -- grobian
68 IUSE="aqua cloudprint colord cups debug examples +introspection test vim-syntax wayland X xinerama"
69 REQUIRED_USE="
70 || ( aqua wayland X )
71 xinerama? ( X )
72 "
73
74 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~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"
75
76 # FIXME: introspection data is built against system installation of gtk+:3
77 # NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf)
78 # Use gtk+:2 for gtk-update-icon-cache
79 COMMON_DEPEND="
80 >=dev-libs/atk-2.7.5[introspection?]
81 >=dev-libs/glib-2.39.5:2
82 media-libs/fontconfig
83 >=x11-libs/cairo-1.12[aqua?,glib,svg,X?]
84 >=x11-libs/gdk-pixbuf-2.27.1:2[introspection?,X?]
85 >=x11-libs/gtk+-2.24:2
86 >=x11-libs/pango-1.32.4[introspection?]
87 x11-misc/shared-mime-info
88
89 cloudprint? (
90 >=net-libs/rest-0.7
91 >=dev-libs/json-glib-1.0 )
92 colord? ( >=x11-misc/colord-0.1.9:0= )
93 cups? ( >=net-print/cups-1.2 )
94 introspection? ( >=dev-libs/gobject-introspection-1.39 )
95 wayland? (
96 >=dev-libs/wayland-1.3.90
97 media-libs/mesa[wayland]
98 >=x11-libs/libxkbcommon-0.2
99 )
100 X? (
101 >=app-accessibility/at-spi2-atk-2.5.3
102 x11-libs/libXrender
103 x11-libs/libX11
104 >=x11-libs/libXi-1.3
105 x11-libs/libXext
106 >=x11-libs/libXrandr-1.3
107 x11-libs/libXcursor
108 x11-libs/libXfixes
109 x11-libs/libXcomposite
110 x11-libs/libXdamage
111 xinerama? ( x11-libs/libXinerama )
112 )
113 "
114 DEPEND="${COMMON_DEPEND}
115 app-text/docbook-xsl-stylesheets
116 app-text/docbook-xml-dtd:4.1.2
117 dev-libs/libxslt
118 dev-util/gdbus-codegen
119 >=dev-util/gtk-doc-am-1.20
120 sys-devel/gettext
121 virtual/pkgconfig
122 X? (
123 x11-proto/xextproto
124 x11-proto/xproto
125 x11-proto/inputproto
126 x11-proto/damageproto
127 xinerama? ( x11-proto/xineramaproto )
128 )
129 test? (
130 media-fonts/font-misc-misc
131 media-fonts/font-cursor-misc )
132 "
133 # gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90
134 # gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90
135 # >=xorg-server-1.11.4 needed for
136 # http://mail.gnome.org/archives/desktop-devel-list/2012-March/msg00024.html
137 RDEPEND="${COMMON_DEPEND}
138 !<gnome-base/gail-1000
139 !<x11-libs/vte-0.31.0:2.90
140 X? ( !<x11-base/xorg-server-1.11.4 )
141 "
142 PDEPEND="vim-syntax? ( app-vim/gtk-syntax )"
143
144 strip_builddir() {
145 local rule=$1
146 shift
147 local directory=$1
148 shift
149 sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
150 || die "Could not strip director ${directory} from build."
151 }
152
153 src_prepare() {
154 # -O3 and company cause random crashes in applications. Bug #133469
155 replace-flags -O3 -O2
156 strip-flags
157
158 if ! use test ; then
159 # don't waste time building tests
160 strip_builddir SRC_SUBDIRS testsuite Makefile.am
161 strip_builddir SRC_SUBDIRS testsuite Makefile.in
162 strip_builddir SRC_SUBDIRS tests Makefile.am
163 strip_builddir SRC_SUBDIRS tests Makefile.in
164 fi
165
166 if ! use examples; then
167 # don't waste time building demos
168 strip_builddir SRC_SUBDIRS demos Makefile.am
169 strip_builddir SRC_SUBDIRS demos Makefile.in
170 strip_builddir SRC_SUBDIRS examples Makefile.am
171 strip_builddir SRC_SUBDIRS examples Makefile.in
172 fi
173
174 gnome2_src_prepare
175 }
176
177 src_configure() {
178 # Passing --disable-debug is not recommended for production use
179 # need libdir here to avoid a double slash in a path that libtool doesn't
180 # grok so well during install (// between $EPREFIX and usr ...)
181 gnome2_src_configure \
182 $(use_enable aqua quartz-backend) \
183 $(use_enable cloudprint) \
184 $(use_enable colord) \
185 $(use_enable cups cups auto) \
186 $(usex debug --enable-debug=yes "") \
187 $(use_enable introspection) \
188 $(use_enable wayland wayland-backend) \
189 $(use_enable X x11-backend) \
190 $(use_enable X xcomposite) \
191 $(use_enable X xdamage) \
192 $(use_enable X xfixes) \
193 $(use_enable X xkb) \
194 $(use_enable X xrandr) \
195 $(use_enable xinerama) \
196 --disable-papi \
197 --enable-man \
198 --enable-gtk2-dependency \
199 --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \
200 --libdir="${EPREFIX}"/usr/$(get_libdir)
201 }
202
203 src_test() {
204 # Tests require a new gnome-themes-standard, but adding it to DEPEND
205 # would result in circular dependencies.
206 # https://bugzilla.gnome.org/show_bug.cgi?id=669562
207 if ! has_version '>=x11-themes/gnome-themes-standard-3.6[gtk]'; then
208 ewarn "Tests will be skipped because >=gnome-themes-standard-3.6[gtk]"
209 ewarn "is not installed. Please re-run tests after installing the"
210 ewarn "required version of gnome-themes-standard."
211 return 0
212 fi
213
214 # FIXME: this should be handled at eclass level
215 "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
216
217 unset DBUS_SESSION_BUS_ADDRESS
218 GSETTINGS_SCHEMA_DIR="${S}/gtk" Xemake check
219 }
220
221 src_install() {
222 gnome2_src_install
223
224 insinto /etc/gtk-3.0
225 doins "${FILESDIR}"/settings.ini
226
227 dodoc AUTHORS ChangeLog* HACKING NEWS* README*
228
229 # add -framework Carbon to the .pc files
230 if use aqua ; then
231 for i in gtk+-3.0.pc gtk+-quartz-3.0.pc gtk+-unix-print-3.0.pc; do
232 sed -e "s:Libs\: :Libs\: -framework Carbon :" \
233 -i "${ED}"usr/$(get_libdir)/pkgconfig/$i || die "sed failed"
234 done
235 fi
236 }
237
238 pkg_preinst() {
239 gnome2_pkg_preinst
240
241 # Make sure loaders.cache belongs to gdk-pixbuf alone
242 local cache="usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
243
244 if [[ -e ${EROOT}${cache} ]]; then
245 cp "${EROOT}"${cache} "${ED}"/${cache} || die
246 else
247 touch "${ED}"/${cache} || die
248 fi
249 }
250
251 pkg_postinst() {
252 gnome2_pkg_postinst
253 gnome2_query_immodules_gtk3
254
255 if ! has_version "app-text/evince"; then
256 elog "Please install app-text/evince for print preview functionality."
257 elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
258 elog "add it to your settings.ini file."
259 fi
260 }
261
262 pkg_postrm() {
263 gnome2_pkg_postrm
264
265 if [[ -z ${REPLACED_BY_VERSIONS} ]]; then
266 rm -f "${EROOT}"usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache
267 fi
268 }