Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+: ChangeLog gtk+-2.12.5.ebuild
Date: Thu, 10 Jan 2008 21:39:43
Message-Id: E1JD57k-0006Pd-4P@stork.gentoo.org
1 eva 08/01/10 21:39:40
2
3 Modified: ChangeLog
4 Added: gtk+-2.12.5.ebuild
5 Log:
6 bump to 2.12.5, numerous fixes (firefox, OOo, pixbufs, and many more) (and yes I'm crazy)
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.357 x11-libs/gtk+/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.357&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.357&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.356&r2=1.357
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v
19 retrieving revision 1.356
20 retrieving revision 1.357
21 diff -u -r1.356 -r1.357
22 --- ChangeLog 13 Dec 2007 17:56:07 -0000 1.356
23 +++ ChangeLog 10 Jan 2008 21:39:39 -0000 1.357
24 @@ -1,6 +1,11 @@
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.356 2007/12/13 17:56:07 compnerd Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.357 2008/01/10 21:39:39 eva Exp $
30 +
31 +*gtk+-2.12.5 (10 Jan 2008)
32 +
33 + 10 Jan 2008; Gilles Dartiguelongue <eva@g.o> +gtk+-2.12.5.ebuild:
34 + bump to 2.12.5, numerous fixes (firefox, OOo, pixbufs, and many more)
35
36 14 Dec 2007; Saleem Abdulrasool <compnerd@g.o>
37 -files/gtk+-2.2.1-disable_icons_smooth_alpha.patch,
38
39
40
41 1.1 x11-libs/gtk+/gtk+-2.12.5.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/gtk+-2.12.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/gtk+-2.12.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gtk+-2.12.5.ebuild
47 ===================================================================
48 # Copyright 1999-2008 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.5.ebuild,v 1.1 2008/01/10 21:39:39 eva 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 vim-syntax 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.6
94 ~app-text/docbook-xml-dtd-4.1.2
95 )"
96 PDEPEND="vim-syntax? ( app-vim/gtk-syntax )"
97
98 pkg_setup() {
99 if ! built_with_use x11-libs/cairo X; then
100 eerror "Please re-emerge x11-libs/cairo with the X USE flag set"
101 die "cairo needs the X flag set"
102 fi
103 }
104
105 set_gtk2_confdir() {
106 # An arch specific config directory is used on multilib systems
107 has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
108 GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0}
109 }
110
111 src_unpack() {
112 unpack ${A}
113 cd "${S}"
114
115 # use an arch-specific config directory so that 32bit and 64bit versions
116 # dont clash on multilib systems
117 has_multilib_profile && epatch "${FILESDIR}/${PN}-2.8.0-multilib.patch"
118
119 # Firefox print review crash fix, bug #195644
120 epatch "${FILESDIR}/${PN}-2.12.1-firefox-print-preview.patch"
121
122 # Fix printing on ppc64. Bug #197639
123 #epatch "${FILESDIR}/${PN}-2.12.1-cupsutils.patch"
124
125 # -O3 and company cause random crashes in applications. Bug #133469
126 replace-flags -O3 -O2
127 strip-flags
128
129 use ppc64 && append-flags -mminimal-toc
130
131 # remember, eautoreconf applies elibtoolize.
132 # if you remove this, you should manually run elibtoolize
133 export WANT_AUTOMAKE=1.7
134 cp aclocal.m4 old_macros.m4
135 AT_M4DIR="." eautoreconf
136
137 epunt_cxx
138 }
139
140 src_compile() {
141 # png always on to display icons (foser)
142 local myconf="$(use_enable doc gtk-doc) \
143 $(use_with jpeg libjpeg) \
144 $(use_with tiff libtiff) \
145 $(use_enable xinerama) \
146 --with-libpng \
147 --with-gdktarget=x11 \
148 --with-xinput"
149
150 # Passing --disable-debug is not recommended for production use
151 use debug && myconf="${myconf} --enable-debug=yes"
152
153 econf ${myconf} || die "configure failed"
154
155 emake || die "compile failed"
156 }
157
158 src_test() {
159 Xemake check || die
160 }
161
162 src_install() {
163 emake DESTDIR="${D}" install || die "Installation failed"
164
165 set_gtk2_confdir
166 dodir ${GTK2_CONFDIR}
167 keepdir ${GTK2_CONFDIR}
168
169 # see bug #133241
170 echo 'gtk-fallback-icon-theme = "gnome"' > "${D}/${GTK2_CONFDIR}/gtkrc"
171
172 # Enable xft in environment as suggested by <utx@g.o>
173 dodir /etc/env.d
174 echo "GDK_USE_XFT=1" > "${D}/etc/env.d/50gtk2"
175
176 dodoc AUTHORS ChangeLog* HACKING NEWS* README*
177
178 # This has to be removed, because it's multilib specific; generated in
179 # postinst
180 rm "${D}/etc/gtk-2.0/gtk.immodules"
181 }
182
183 pkg_postinst() {
184 set_gtk2_confdir
185
186 if [ -d "${ROOT}${GTK2_CONFDIR}" ]; then
187 gtk-query-immodules-2.0 > "${ROOT}${GTK2_CONFDIR}/gtk.immodules"
188 gdk-pixbuf-query-loaders > "${ROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders"
189 else
190 ewarn "The destination path ${ROOT}${GTK2_CONFDIR} doesn't exist;"
191 ewarn "to complete the installation of GTK+, please create the"
192 ewarn "directory and then manually run:"
193 ewarn " cd ${ROOT}${GTK2_CONFDIR}"
194 ewarn " gtk-query-immodules-2.0 > gtk.immodules"
195 ewarn " gdk-pixbuf-query-loaders > gdk-pixbuf.loaders"
196 fi
197
198 if [ -e /usr/lib/gtk-2.0/2.[^1]* ]; then
199 elog "You need to rebuild ebuilds that installed into" /usr/lib/gtk-2.0/2.[^1]*
200 elog "to do that you can use qfile from portage-utils:"
201 elog "emerge -va1 \$(qfile -qC /usr/lib/gtk-2.0/2.[^1]*)"
202 fi
203
204 elog "Please install app-text/evince for print preview functionality"
205 }
206
207
208
209 --
210 gentoo-commits@l.g.o mailing list