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