1 |
mrpouet 09/09/06 14:39:44 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gtk+-2.16.5-r1.ebuild |
5 |
Log: |
6 |
Fix jpeg7 blured images in gdk-pixbuf due to jpeg7 scale specs changes, per bug #282744 |
7 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.423 x11-libs/gtk+/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.423&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?rev=1.423&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/ChangeLog?r1=1.422&r2=1.423 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v |
19 |
retrieving revision 1.422 |
20 |
retrieving revision 1.423 |
21 |
diff -u -r1.422 -r1.423 |
22 |
--- ChangeLog 19 Jul 2009 23:25:17 -0000 1.422 |
23 |
+++ ChangeLog 6 Sep 2009 14:39:44 -0000 1.423 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for x11-libs/gtk+ |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.422 2009/07/19 23:25:17 eva Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/ChangeLog,v 1.423 2009/09/06 14:39:44 mrpouet Exp $ |
29 |
+ |
30 |
+*gtk+-2.16.5-r1 (06 Sep 2009) |
31 |
+ |
32 |
+ 06 Sep 2009; Romain Perier <mrpouet@g.o> |
33 |
+ +gtk+-2.16.5-r1.ebuild, |
34 |
+ +files/gtk+-2.16.5-jpeg-backward-compatibility.patch: |
35 |
+ Fix jpeg7 blured images in gdk-pixbuf due to jpeg7 scale specs changes, |
36 |
+ per bug #282744. |
37 |
|
38 |
*gtk+-2.16.5 (19 Jul 2009) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 x11-libs/gtk+/gtk+-2.16.5-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/gtk+-2.16.5-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/gtk+/gtk+-2.16.5-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: gtk+-2.16.5-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-2.16.5-r1.ebuild,v 1.1 2009/09/06 14:39:44 mrpouet Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
|
56 |
inherit gnome.org flag-o-matic eutils libtool virtualx |
57 |
|
58 |
DESCRIPTION="Gimp ToolKit +" |
59 |
HOMEPAGE="http://www.gtk.org/" |
60 |
|
61 |
LICENSE="LGPL-2" |
62 |
SLOT="2" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
64 |
IUSE="cups debug doc jpeg jpeg2k tiff test vim-syntax xinerama" |
65 |
|
66 |
# FIXME: configure says >=xrandr-1.2.99 but remi tells me it's broken |
67 |
RDEPEND="x11-libs/libXrender |
68 |
x11-libs/libX11 |
69 |
x11-libs/libXi |
70 |
x11-libs/libXt |
71 |
x11-libs/libXext |
72 |
>=x11-libs/libXrandr-1.2 |
73 |
x11-libs/libXcursor |
74 |
x11-libs/libXfixes |
75 |
x11-libs/libXcomposite |
76 |
x11-libs/libXdamage |
77 |
xinerama? ( x11-libs/libXinerama ) |
78 |
>=dev-libs/glib-2.19.7 |
79 |
>=x11-libs/pango-1.20 |
80 |
>=dev-libs/atk-1.13 |
81 |
>=x11-libs/cairo-1.6[X] |
82 |
media-libs/fontconfig |
83 |
x11-misc/shared-mime-info |
84 |
>=media-libs/libpng-1.2.1 |
85 |
cups? ( net-print/cups ) |
86 |
jpeg? ( >=media-libs/jpeg-6b-r2 ) |
87 |
jpeg2k? ( media-libs/jasper ) |
88 |
tiff? ( >=media-libs/tiff-3.5.7 ) |
89 |
!<gnome-base/gail-1000" |
90 |
DEPEND="${RDEPEND} |
91 |
>=dev-util/pkgconfig-0.9 |
92 |
x11-proto/xextproto |
93 |
x11-proto/xproto |
94 |
x11-proto/inputproto |
95 |
x11-proto/damageproto |
96 |
xinerama? ( x11-proto/xineramaproto ) |
97 |
>=dev-util/gtk-doc-am-1.11 |
98 |
doc? ( |
99 |
>=dev-util/gtk-doc-1.11 |
100 |
~app-text/docbook-xml-dtd-4.1.2 ) |
101 |
test? ( |
102 |
media-fonts/font-misc-misc |
103 |
media-fonts/font-cursor-misc )" |
104 |
PDEPEND="vim-syntax? ( app-vim/gtk-syntax )" |
105 |
|
106 |
set_gtk2_confdir() { |
107 |
# An arch specific config directory is used on multilib systems |
108 |
has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}" |
109 |
GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0} |
110 |
} |
111 |
|
112 |
src_prepare() { |
113 |
# use an arch-specific config directory so that 32bit and 64bit versions |
114 |
# dont clash on multilib systems |
115 |
has_multilib_profile && epatch "${FILESDIR}/${PN}-2.8.0-multilib.patch" |
116 |
|
117 |
# Don't break inclusion of gtkclist.h, upstream bug 536767 |
118 |
epatch "${FILESDIR}/${PN}-2.14.3-limit-gtksignal-includes.patch" |
119 |
|
120 |
# Fix blured images when using jpeg7 in gdk-pixbuf, upstream |
121 |
# bug #588740, gentoo bug #282744. |
122 |
epatch "${FILESDIR}/${P}-jpeg-backward-compatibility.patch" |
123 |
|
124 |
# -O3 and company cause random crashes in applications. Bug #133469 |
125 |
replace-flags -O3 -O2 |
126 |
strip-flags |
127 |
|
128 |
use ppc64 && append-flags -mminimal-toc |
129 |
|
130 |
# Non-working test in gentoo's env |
131 |
sed 's:\(g_test_add_func ("/ui-tests/keys-events.*\):/*\1*/:g' \ |
132 |
-i gtk/tests/testing.c || die "sed 1 failed" |
133 |
sed '\%/recent-manager/add%,/recent_manager_purge/ d' \ |
134 |
-i gtk/tests/recentmanager.c || die "sed 2 failed" |
135 |
elibtoolize |
136 |
} |
137 |
|
138 |
src_configure() { |
139 |
# png always on to display icons (foser) |
140 |
local myconf="$(use_enable doc gtk-doc) \ |
141 |
$(use_with jpeg libjpeg) \ |
142 |
$(use_with jpeg2k libjasper) \ |
143 |
$(use_with tiff libtiff) \ |
144 |
$(use_enable xinerama) \ |
145 |
$(use_enable cups cups auto) \ |
146 |
--disable-papi \ |
147 |
--with-libpng \ |
148 |
--with-gdktarget=x11 \ |
149 |
--with-xinput" |
150 |
|
151 |
# Passing --disable-debug is not recommended for production use |
152 |
use debug && myconf="${myconf} --enable-debug=yes" |
153 |
|
154 |
econf ${myconf} |
155 |
} |
156 |
|
157 |
src_test() { |
158 |
unset DBUS_SESSION_BUS_ADDRESS |
159 |
Xemake check || die "tests failed" |
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* || die "dodoc failed" |
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 |
elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
206 |
elog "add it to your gtkrc." |
207 |
} |