1 |
remi 07/09/21 18:58:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gtk+-2.12.0.ebuild |
5 |
Log: |
6 |
Add x11-libs/gtk+-2.12.0 (Gnome 2.20) |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.336 x11-libs/gtk+/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.336&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.336&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.335&r2=1.336 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v |
19 |
retrieving revision 1.335 |
20 |
retrieving revision 1.336 |
21 |
diff -u -r1.335 -r1.336 |
22 |
--- ChangeLog 21 Sep 2007 01:44:39 -0000 1.335 |
23 |
+++ ChangeLog 21 Sep 2007 18:58:28 -0000 1.336 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for x11-libs/gtk+ |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.335 2007/09/21 01:44:39 ranger Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.336 2007/09/21 18:58:28 remi Exp $ |
29 |
+ |
30 |
+*gtk+-2.12.0 (21 Sep 2007) |
31 |
+ |
32 |
+ 21 Sep 2007; RĂ©mi Cardona <remi@g.o> |
33 |
+ +files/gtk+-2.12.0-icon-cache-speedup.patch, +gtk+-2.12.0.ebuild: |
34 |
+ Add gtk+-2.12.0 (Gnome 2.20) |
35 |
|
36 |
21 Sep 2007; Brent Baude <ranger@g.o> gtk+-2.10.14.ebuild: |
37 |
Marking gtk+-2.10.14 ppc64 for bug #190019 |
38 |
|
39 |
|
40 |
|
41 |
1.1 x11-libs/gtk+/gtk+-2.12.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/gtk+-2.12.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/gtk+-2.12.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: gtk+-2.12.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2007 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.12.0.ebuild,v 1.1 2007/09/21 18:58:28 remi Exp $ |
51 |
|
52 |
inherit gnome.org flag-o-matic eutils autotools virtualx |
53 |
|
54 |
DESCRIPTION="Gimp ToolKit +" |
55 |
HOMEPAGE="http://www.gtk.org/" |
56 |
|
57 |
LICENSE="LGPL-2" |
58 |
SLOT="2" |
59 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
60 |
IUSE="cups debug doc jpeg tiff xinerama" |
61 |
|
62 |
RDEPEND="x11-libs/libXrender |
63 |
x11-libs/libX11 |
64 |
x11-libs/libXi |
65 |
x11-libs/libXt |
66 |
x11-libs/libXext |
67 |
x11-libs/libXrandr |
68 |
x11-libs/libXcursor |
69 |
x11-libs/libXfixes |
70 |
x11-libs/libXcomposite |
71 |
x11-libs/libXdamage |
72 |
xinerama? ( x11-libs/libXinerama ) |
73 |
>=dev-libs/glib-2.13.5 |
74 |
>=x11-libs/pango-1.17.3 |
75 |
>=dev-libs/atk-1.10.1 |
76 |
>=x11-libs/cairo-1.2.0 |
77 |
media-libs/fontconfig |
78 |
x11-misc/shared-mime-info |
79 |
>=media-libs/libpng-1.2.1 |
80 |
cups? ( net-print/cups ) |
81 |
jpeg? ( >=media-libs/jpeg-6b-r2 ) |
82 |
tiff? ( >=media-libs/tiff-3.5.7 )" |
83 |
DEPEND="${RDEPEND} |
84 |
sys-devel/autoconf |
85 |
>=dev-util/pkgconfig-0.9 |
86 |
=sys-devel/automake-1.7* |
87 |
x11-proto/xextproto |
88 |
x11-proto/xproto |
89 |
x11-proto/inputproto |
90 |
x11-proto/damageproto |
91 |
xinerama? ( x11-proto/xineramaproto ) |
92 |
doc? ( |
93 |
>=dev-util/gtk-doc-1.4 |
94 |
~app-text/docbook-xml-dtd-4.1.2 |
95 |
)" |
96 |
|
97 |
pkg_setup() { |
98 |
if ! built_with_use x11-libs/cairo X; then |
99 |
einfo "Please re-emerge x11-libs/cairo with the X USE flag set" |
100 |
die "cairo needs the X flag set" |
101 |
fi |
102 |
} |
103 |
|
104 |
set_gtk2_confdir() { |
105 |
# An arch specific config directory is used on multilib systems |
106 |
has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}" |
107 |
GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0} |
108 |
} |
109 |
|
110 |
src_unpack() { |
111 |
unpack ${A} |
112 |
cd ${S} |
113 |
|
114 |
# use an arch-specific config directory so that 32bit and 64bit versions |
115 |
# dont clash on multilib systems |
116 |
has_multilib_profile && epatch "${FILESDIR}/${PN}-2.8.0-multilib.patch" |
117 |
|
118 |
# http://bugzilla.gnome.org/show_bug.cgi?id=476342 |
119 |
epatch "${FILESDIR}"/${P}-icon-cache-speedup.patch |
120 |
|
121 |
# -O3 and company cause random crashes in applications. Bug #133469 |
122 |
replace-flags -O3 -O2 |
123 |
strip-flags |
124 |
|
125 |
use ppc64 && append-flags -mminimal-toc |
126 |
|
127 |
# remember, eautoreconf applies elibtoolize. |
128 |
# if you remove this, you should manually run elibtoolize |
129 |
export WANT_AUTOMAKE=1.7 |
130 |
cp aclocal.m4 old_macros.m4 |
131 |
AT_M4DIR="." eautoreconf |
132 |
|
133 |
epunt_cxx |
134 |
} |
135 |
|
136 |
src_compile() { |
137 |
# png always on to display icons (foser) |
138 |
local myconf="$(use_enable doc gtk-doc) \ |
139 |
$(use_with jpeg libjpeg) \ |
140 |
$(use_with tiff libtiff) \ |
141 |
$(use_enable xinerama) \ |
142 |
--with-libpng \ |
143 |
--with-gdktarget=x11 \ |
144 |
--with-xinput" |
145 |
|
146 |
# Passing --disable-debug is not recommended for production use |
147 |
use debug && myconf="${myconf} --enable-debug=yes" |
148 |
|
149 |
econf ${myconf} || die "configure failed" |
150 |
|
151 |
emake || die "compile failed" |
152 |
} |
153 |
|
154 |
src_test() { |
155 |
Xmake check || die |
156 |
} |
157 |
|
158 |
src_install() { |
159 |
einstall || die "Installation failed" |
160 |
|
161 |
set_gtk2_confdir |
162 |
dodir ${GTK2_CONFDIR} |
163 |
keepdir ${GTK2_CONFDIR} |
164 |
|
165 |
# see bug #133241 |
166 |
echo 'gtk-fallback-icon-theme = "gnome"' > ${D}/${GTK2_CONFDIR}/gtkrc |
167 |
|
168 |
# Enable xft in environment as suggested by <utx@g.o> |
169 |
dodir /etc/env.d |
170 |
echo "GDK_USE_XFT=1" > ${D}/etc/env.d/50gtk2 |
171 |
|
172 |
dodoc AUTHORS ChangeLog* HACKING NEWS* README* |
173 |
|
174 |
# This has to be removed, because it's multilib specific; generated in |
175 |
# postinst |
176 |
rm ${D}/etc/gtk-2.0/gtk.immodules |
177 |
} |
178 |
|
179 |
pkg_postinst() { |
180 |
set_gtk2_confdir |
181 |
|
182 |
if [ -d "${ROOT}${GTK2_CONFDIR}" ]; then |
183 |
gtk-query-immodules-2.0 > ${ROOT}${GTK2_CONFDIR}/gtk.immodules |
184 |
gdk-pixbuf-query-loaders > ${ROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders |
185 |
else |
186 |
ewarn "The destination path ${ROOT}${GTK2_CONFDIR} doesn't exist;" |
187 |
ewarn "to complete the installation of GTK+, please create the" |
188 |
ewarn "directory and then manually run:" |
189 |
ewarn " cd ${ROOT}${GTK2_CONFDIR}" |
190 |
ewarn " gtk-query-immodules-2.0 > gtk.immodules" |
191 |
ewarn " gdk-pixbuf-query-loaders > gdk-pixbuf.loaders" |
192 |
fi |
193 |
|
194 |
if [ -e /usr/lib/gtk-2.0/2.[^1]* ]; then |
195 |
elog "You need to rebuild ebuilds that installed into" /usr/lib/gtk-2.0/2.[^1]* |
196 |
elog "to do that you can use qfile from portage-utils:" |
197 |
elog "emerge -va1 \$(qfile -qC /usr/lib/gtk-2.0/2.[^1]*)" |
198 |
fi |
199 |
} |
200 |
|
201 |
|
202 |
|
203 |
-- |
204 |
gentoo-commits@g.o mailing list |