Gentoo Archives: gentoo-commits

From: "Daniel Gryniewicz (dang)" <dang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+: ChangeLog gtk+-2.14.7-r1.ebuild
Date: Thu, 29 Jan 2009 20:28:39
Message-Id: E1LSdV7-00071u-6p@stork.gentoo.org
1 dang 09/01/29 20:28:37
2
3 Modified: ChangeLog
4 Added: gtk+-2.14.7-r1.ebuild
5 Log:
6 Fix for filechooser centering: bug #239360
7 (Portage version: 2.1.6.7/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.409 x11-libs/gtk+/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.409&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.409&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.408&r2=1.409
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v
19 retrieving revision 1.408
20 retrieving revision 1.409
21 diff -u -r1.408 -r1.409
22 --- ChangeLog 15 Jan 2009 00:58:21 -0000 1.408
23 +++ ChangeLog 29 Jan 2009 20:28:37 -0000 1.409
24 @@ -1,6 +1,12 @@
25 # ChangeLog for x11-libs/gtk+
26 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.408 2009/01/15 00:58:21 leio Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.409 2009/01/29 20:28:37 dang Exp $
29 +
30 +*gtk+-2.14.7-r1 (29 Jan 2009)
31 +
32 + 29 Jan 2009; Daniel Gryniewicz <dang@g.o>
33 + +files/gtk+-2.14.7-filechooser.patch, +gtk+-2.14.7-r1.ebuild:
34 + Fix for filechooser centering: bug #239360
35
36 *gtk+-2.14.7 (15 Jan 2009)
37
38
39
40
41 1.1 x11-libs/gtk+/gtk+-2.14.7-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/gtk+-2.14.7-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/gtk+-2.14.7-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gtk+-2.14.7-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 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.14.7-r1.ebuild,v 1.1 2009/01/29 20:28:37 dang Exp $
51
52 WANT_AUTOMAKE="1.7"
53
54 inherit gnome.org flag-o-matic eutils libtool virtualx
55
56 DESCRIPTION="Gimp ToolKit +"
57 HOMEPAGE="http://www.gtk.org/"
58
59 LICENSE="LGPL-2"
60 SLOT="2"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
62 IUSE="cups debug doc jpeg jpeg2k tiff vim-syntax xinerama"
63
64 RDEPEND="x11-libs/libXrender
65 x11-libs/libX11
66 x11-libs/libXi
67 x11-libs/libXt
68 x11-libs/libXext
69 >=x11-libs/libXrandr-1.2
70 x11-libs/libXcursor
71 x11-libs/libXfixes
72 x11-libs/libXcomposite
73 x11-libs/libXdamage
74 xinerama? ( x11-libs/libXinerama )
75 >=dev-libs/glib-2.17.6
76 >=x11-libs/pango-1.20
77 >=dev-libs/atk-1.13
78 >=x11-libs/cairo-1.6
79 media-libs/fontconfig
80 x11-misc/shared-mime-info
81 >=media-libs/libpng-1.2.1
82 cups? ( net-print/cups )
83 jpeg? ( >=media-libs/jpeg-6b-r2 )
84 jpeg2k? ( media-libs/jasper )
85 tiff? ( >=media-libs/tiff-3.5.7 )
86 !<gnome-base/gail-1000"
87 DEPEND="${RDEPEND}
88 >=dev-util/pkgconfig-0.9
89 x11-proto/xextproto
90 x11-proto/xproto
91 x11-proto/inputproto
92 x11-proto/damageproto
93 xinerama? ( x11-proto/xineramaproto )
94 >=dev-util/gtk-doc-am-1.8
95 doc? (
96 >=dev-util/gtk-doc-1.8
97 ~app-text/docbook-xml-dtd-4.1.2
98 )"
99 PDEPEND="vim-syntax? ( app-vim/gtk-syntax )"
100
101 pkg_setup() {
102 if ! built_with_use x11-libs/cairo X; then
103 eerror "Please re-emerge x11-libs/cairo with the X USE flag set"
104 die "cairo needs the X flag set"
105 fi
106 }
107
108 set_gtk2_confdir() {
109 # An arch specific config directory is used on multilib systems
110 has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
111 GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0}
112 }
113
114 src_unpack() {
115 unpack ${A}
116 cd "${S}"
117
118 # use an arch-specific config directory so that 32bit and 64bit versions
119 # dont clash on multilib systems
120 has_multilib_profile && epatch "${FILESDIR}/${PN}-2.8.0-multilib.patch"
121
122 # Workaround adobe flash infinite loop. Patch from http://bugzilla.gnome.org/show_bug.cgi?id=463773#c11
123 epatch "${FILESDIR}/${PN}-2.12.0-flash-workaround.patch"
124
125 # Don't break inclusion of gtkclist.h, upstream bug 536767
126 epatch "${FILESDIR}/${PN}-2.14.3-limit-gtksignal-includes.patch"
127
128 # Fix filechooser placement. bug #239360
129 epatch "${FILESDIR}/${PN}-2.14.7-filechooser.patch"
130
131 # -O3 and company cause random crashes in applications. Bug #133469
132 replace-flags -O3 -O2
133 strip-flags
134
135 use ppc64 && append-flags -mminimal-toc
136
137 elibtoolize
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 jpeg2k libjasper) \
145 $(use_with tiff libtiff) \
146 $(use_enable xinerama) \
147 $(use_enable cups cups auto) \
148 --with-libpng \
149 --with-gdktarget=x11 \
150 --with-xinput"
151
152 # Passing --disable-debug is not recommended for production use
153 use debug && myconf="${myconf} --enable-debug=yes"
154
155 econf ${myconf} || die "configure failed"
156 emake || die "compile failed"
157 }
158
159 src_test() {
160 Xemake check || die "tests failed"
161 }
162
163 src_install() {
164 emake DESTDIR="${D}" install || die "Installation failed"
165
166 set_gtk2_confdir
167 dodir ${GTK2_CONFDIR}
168 keepdir ${GTK2_CONFDIR}
169
170 # see bug #133241
171 echo 'gtk-fallback-icon-theme = "gnome"' > "${D}/${GTK2_CONFDIR}/gtkrc"
172
173 # Enable xft in environment as suggested by <utx@g.o>
174 dodir /etc/env.d
175 echo "GDK_USE_XFT=1" > "${D}/etc/env.d/50gtk2"
176
177 dodoc AUTHORS ChangeLog* HACKING NEWS* README*
178
179 # This has to be removed, because it's multilib specific; generated in
180 # postinst
181 rm "${D}/etc/gtk-2.0/gtk.immodules"
182 }
183
184 pkg_postinst() {
185 set_gtk2_confdir
186
187 if [ -d "${ROOT}${GTK2_CONFDIR}" ]; then
188 gtk-query-immodules-2.0 > "${ROOT}${GTK2_CONFDIR}/gtk.immodules"
189 gdk-pixbuf-query-loaders > "${ROOT}${GTK2_CONFDIR}/gdk-pixbuf.loaders"
190 else
191 ewarn "The destination path ${ROOT}${GTK2_CONFDIR} doesn't exist;"
192 ewarn "to complete the installation of GTK+, please create the"
193 ewarn "directory and then manually run:"
194 ewarn " cd ${ROOT}${GTK2_CONFDIR}"
195 ewarn " gtk-query-immodules-2.0 > gtk.immodules"
196 ewarn " gdk-pixbuf-query-loaders > gdk-pixbuf.loaders"
197 fi
198
199 if [ -e /usr/lib/gtk-2.0/2.[^1]* ]; then
200 elog "You need to rebuild ebuilds that installed into" /usr/lib/gtk-2.0/2.[^1]*
201 elog "to do that you can use qfile from portage-utils:"
202 elog "emerge -va1 \$(qfile -qC /usr/lib/gtk-2.0/2.[^1]*)"
203 fi
204
205 elog "Please install app-text/evince for print preview functionality."
206 elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
207 elog "add it to your gtkrc."
208 }