1 |
nirbheek 11/03/29 07:07:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gtk+-3.0.6.ebuild |
5 |
Log: |
6 |
Add gtk+-3.0.6 to the tree, slot-dep problems have come down to a reasonable level. Themeing under any DE except GNOME 3 is still broken, but everything else should work fine. |
7 |
|
8 |
(Portage version: 2.1.9.44/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.496 x11-libs/gtk+/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.496&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.496&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.495&r2=1.496 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v |
20 |
retrieving revision 1.495 |
21 |
retrieving revision 1.496 |
22 |
diff -u -r1.495 -r1.496 |
23 |
--- ChangeLog 22 Mar 2011 19:48:00 -0000 1.495 |
24 |
+++ ChangeLog 29 Mar 2011 07:07:22 -0000 1.496 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for x11-libs/gtk+ |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.495 2011/03/22 19:48:00 ranger Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.496 2011/03/29 07:07:22 nirbheek Exp $ |
30 |
+ |
31 |
+*gtk+-3.0.6 (29 Mar 2011) |
32 |
+ |
33 |
+ 29 Mar 2011; Nirbheek Chauhan <nirbheek@g.o> +gtk+-3.0.6.ebuild: |
34 |
+ Add gtk+-3.0.6 to the tree, slot-dep problems have come down to a |
35 |
+ reasonable level. Themeing under any DE except GNOME 3 is still broken, |
36 |
+ but everything else should work fine. |
37 |
|
38 |
22 Mar 2011; Brent Baude <ranger@g.o> gtk+-2.22.1-r1.ebuild: |
39 |
Marking gtk+-2.22.1-r1 ppc stable for bug 353436 |
40 |
|
41 |
|
42 |
|
43 |
1.1 x11-libs/gtk+/gtk+-3.0.6.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.0.6.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.0.6.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: gtk+-3.0.6.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 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.0.6.ebuild,v 1.1 2011/03/29 07:07:22 nirbheek Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
PYTHON_DEPEND="2:2.4" |
56 |
|
57 |
inherit eutils flag-o-matic gnome.org gnome2-utils libtool virtualx |
58 |
|
59 |
DESCRIPTION="Gimp ToolKit +" |
60 |
HOMEPAGE="http://www.gtk.org/" |
61 |
|
62 |
LICENSE="LGPL-2" |
63 |
SLOT="3" |
64 |
# NOTE: *-macos support is BROKEN. See `quartz-backend` etc in configure |
65 |
# NOTE: This gtk+ has multi-gdk-backend support, see: |
66 |
# * http://blogs.gnome.org/kris/2010/12/29/gdk-3-0-on-mac-os-x/ |
67 |
# * http://mail.gnome.org/archives/gtk-devel-list/2010-November/msg00099.html |
68 |
# NOTE: Lots of aqua stuff in this ebuild is probably very broken |
69 |
IUSE="aqua cups debug doc examples +introspection jpeg jpeg2k tiff test vim-syntax xinerama" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-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 and gtk-builder-convert |
75 |
# >=x11-libs/gtk+-2.24:2 is needed for bug 359555 |
76 |
COMMON_DEPEND="!aqua? ( |
77 |
x11-libs/libXrender |
78 |
x11-libs/libX11 |
79 |
x11-libs/libXi |
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 |
>=x11-libs/cairo-1.10.0[X,svg] |
88 |
>=x11-libs/gdk-pixbuf-2.22.0:2[X,introspection?,jpeg?,jpeg2k?,tiff?] |
89 |
) |
90 |
aqua? ( |
91 |
>=x11-libs/cairo-1.10.0[aqua,svg] |
92 |
>=x11-libs/gdk-pixbuf-2.22.0:2[introspection?,jpeg?,jpeg2k?,tiff?] |
93 |
) |
94 |
xinerama? ( x11-libs/libXinerama ) |
95 |
>=dev-libs/glib-2.28.0 |
96 |
>=x11-libs/pango-1.24.0[introspection?] |
97 |
>=dev-libs/atk-1.30[introspection?] |
98 |
>=x11-libs/gtk+-2.24:2 |
99 |
media-libs/fontconfig |
100 |
x11-misc/shared-mime-info |
101 |
cups? ( net-print/cups ) |
102 |
introspection? ( >=dev-libs/gobject-introspection-0.10.1 )" |
103 |
DEPEND="${COMMON_DEPEND} |
104 |
>=dev-util/pkgconfig-0.9 |
105 |
!aqua? ( |
106 |
x11-proto/xextproto |
107 |
x11-proto/xproto |
108 |
x11-proto/inputproto |
109 |
x11-proto/damageproto |
110 |
) |
111 |
x86-interix? ( |
112 |
sys-libs/itx-bind |
113 |
) |
114 |
xinerama? ( x11-proto/xineramaproto ) |
115 |
>=dev-util/gtk-doc-am-1.11 |
116 |
doc? ( |
117 |
>=dev-util/gtk-doc-1.11 |
118 |
~app-text/docbook-xml-dtd-4.1.2 ) |
119 |
test? ( |
120 |
media-fonts/font-misc-misc |
121 |
media-fonts/font-cursor-misc )" |
122 |
RDEPEND="${COMMON_DEPEND} |
123 |
!<gnome-base/gail-1000" |
124 |
PDEPEND="vim-syntax? ( app-vim/gtk-syntax )" |
125 |
|
126 |
strip_builddir() { |
127 |
local rule=$1 |
128 |
shift |
129 |
local directory=$1 |
130 |
shift |
131 |
sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
132 |
|| die "Could not strip director ${directory} from build." |
133 |
} |
134 |
|
135 |
src_prepare() { |
136 |
# -O3 and company cause random crashes in applications. Bug #133469 |
137 |
replace-flags -O3 -O2 |
138 |
strip-flags |
139 |
|
140 |
# Non-working test in gentoo's env |
141 |
sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \ |
142 |
-i gtk/tests/testing.c || die "sed 1 failed" |
143 |
sed '\%/recent-manager/add%,/recent_manager_purge/ d' \ |
144 |
-i gtk/tests/recentmanager.c || die "sed 2 failed" |
145 |
|
146 |
if use x86-interix; then |
147 |
# activate the itx-bind package... |
148 |
append-flags "-I${EPREFIX}/usr/include/bind" |
149 |
append-ldflags "-L${EPREFIX}/usr/lib/bind" |
150 |
fi |
151 |
|
152 |
if ! use test; then |
153 |
# don't waste time building tests |
154 |
strip_builddir SRC_SUBDIRS tests Makefile.am |
155 |
[[ ${PV} != 9999 ]] && strip_builddir SRC_SUBDIRS tests Makefile.in |
156 |
fi |
157 |
|
158 |
if ! use examples; then |
159 |
# don't waste time building demos |
160 |
strip_builddir SRC_SUBDIRS demos Makefile.am |
161 |
[[ ${PV} != 9999 ]] && strip_builddir SRC_SUBDIRS demos Makefile.in |
162 |
fi |
163 |
|
164 |
[[ ${PV} = 9999 ]] && gnome2-live_src_prepare |
165 |
} |
166 |
|
167 |
src_configure() { |
168 |
# FIXME: PackageKit support |
169 |
# png always on to display icons (foser) |
170 |
local myconf="$(use_enable doc gtk-doc) |
171 |
$(use_enable xinerama) |
172 |
$(use_enable cups cups auto) |
173 |
$(use_enable introspection) |
174 |
--disable-packagekit |
175 |
--disable-papi |
176 |
--enable-gtk2-dependency" |
177 |
|
178 |
# XXX: Maybe with multi-backend we should enable x11 all the time? |
179 |
if use aqua; then |
180 |
myconf="${myconf} --enable-quartz-backend --disable-xinput" |
181 |
else |
182 |
myconf="${myconf} --enable-x11-backend --enable-xinput" |
183 |
fi |
184 |
|
185 |
# Passing --disable-debug is not recommended for production use |
186 |
use debug && myconf="${myconf} --enable-debug=yes" |
187 |
|
188 |
# need libdir here to avoid a double slash in a path that libtool doesn't |
189 |
# grok so well during install (// between $EPREFIX and usr ...) |
190 |
econf --libdir="${EPREFIX}/usr/$(get_libdir)" ${myconf} |
191 |
} |
192 |
|
193 |
src_test() { |
194 |
unset DBUS_SESSION_BUS_ADDRESS |
195 |
# Exporting HOME fixes tests using XDG directories spec since all defaults |
196 |
# are based on $HOME. It is also backward compatible with functions not |
197 |
# yet ported to this spec. |
198 |
XDG_DATA_HOME="${T}" HOME="${T}" Xemake check || die "tests failed" |
199 |
} |
200 |
|
201 |
src_install() { |
202 |
emake DESTDIR="${D}" install || die "Installation failed" |
203 |
|
204 |
# see bug #133241 |
205 |
echo 'gtk-fallback-icon-theme = "gnome"' > "${T}/gtkrc" |
206 |
insinto /etc/gtk-3.0 |
207 |
doins "${T}"/gtkrc || die "doins gtkrc failed" |
208 |
|
209 |
dodoc AUTHORS ChangeLog* HACKING NEWS* README* || die "dodoc failed" |
210 |
|
211 |
# Remove unneeded *.la files |
212 |
find "${ED}" -name "*.la" -delete |
213 |
|
214 |
# add -framework Carbon to the .pc files |
215 |
use aqua && for i in gtk+-3.0.pc gtk+-quartz-3.0.pc gtk+-unix-print-3.0.pc; do |
216 |
sed -i -e "s:Libs\: :Libs\: -framework Carbon :" "${ED}"usr/$(get_libdir)/pkgconfig/$i || die "sed failed" |
217 |
done |
218 |
} |
219 |
|
220 |
pkg_preinst() { |
221 |
gnome2_schemas_savelist |
222 |
} |
223 |
|
224 |
pkg_postinst() { |
225 |
gnome2_schemas_update |
226 |
|
227 |
local GTK3_MODDIR="${EROOT}usr/$(get_libdir)/gtk-3.0/3.0.0" |
228 |
gtk-query-immodules-3.0 > "${GTK3_MODDIR}/immodules.cache" \ |
229 |
|| ewarn "Failed to run gtk-query-immodules-3.0" |
230 |
|
231 |
if ! has_version "app-text/evince"; then |
232 |
elog "Please install app-text/evince for print preview functionality." |
233 |
elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
234 |
elog "add it to your gtkrc." |
235 |
fi |
236 |
} |
237 |
|
238 |
pkg_postrm() { |
239 |
gnome2_schemas_update --uninstall |
240 |
} |