Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/cairo: ChangeLog cairo-1.10.0-r2.ebuild
Date: Fri, 10 Sep 2010 09:47:52
Message-Id: 20100910094746.137BD20051@flycatcher.gentoo.org
1 ssuominen 10/09/10 09:47:46
2
3 Modified: ChangeLog
4 Added: cairo-1.10.0-r2.ebuild
5 Log:
6 Do not use server-side gradients. It hurts performance, and causes bad rendering on at least nvidia. Bug 336696.
7
8 (Portage version: 2.2_rc78/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.260 x11-libs/cairo/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?rev=1.260&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?rev=1.260&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?r1=1.259&r2=1.260
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v
20 retrieving revision 1.259
21 retrieving revision 1.260
22 diff -u -r1.259 -r1.260
23 --- ChangeLog 9 Sep 2010 20:24:27 -0000 1.259
24 +++ ChangeLog 10 Sep 2010 09:47:45 -0000 1.260
25 @@ -1,6 +1,13 @@
26 # ChangeLog for x11-libs/cairo
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v 1.259 2010/09/09 20:24:27 scarabeus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v 1.260 2010/09/10 09:47:45 ssuominen Exp $
30 +
31 +*cairo-1.10.0-r2 (10 Sep 2010)
32 +
33 + 10 Sep 2010; Samuli Suominen <ssuominen@g.o>
34 + +cairo-1.10.0-r2.ebuild, +files/cairo-1.10.0-buggy_gradients.patch:
35 + Do not use server-side gradients. It hurts performance, and causes bad
36 + rendering on at least nvidia. Bug 336696.
37
38 09 Sep 2010; Tomáš Chvátal <scarabeus@g.o> metadata.xml:
39 Drop unused local use desc.
40
41
42
43 1.1 x11-libs/cairo/cairo-1.10.0-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-1.10.0-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-1.10.0-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: cairo-1.10.0-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.10.0-r2.ebuild,v 1.1 2010/09/10 09:47:45 ssuominen Exp $
53
54 EAPI=3
55
56 EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
57 [[ ${PV} == *9999 ]] && GIT_ECLASS="git"
58
59 inherit eutils flag-o-matic autotools ${GIT_ECLASS}
60
61 DESCRIPTION="A vector graphics library with cross-device output support"
62 HOMEPAGE="http://cairographics.org/"
63 [[ ${PV} == *9999 ]] || SRC_URI="http://cairographics.org/releases/${P}.tar.gz"
64
65 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
68 IUSE="X aqua debug directfb doc drm gallium opengl openvg qt4 static-libs +svg xcb"
69
70 # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
71 RESTRICT="test"
72
73 RDEPEND="media-libs/fontconfig
74 media-libs/freetype:2
75 media-libs/libpng:0
76 sys-libs/zlib
77 >=x11-libs/pixman-0.18.4
78 directfb? ( dev-libs/DirectFB )
79 opengl? ( virtual/opengl )
80 qt4? ( >=x11-libs/qt-gui-4.4:4 )
81 svg? ( dev-libs/libxml2 )
82 X? (
83 >=x11-libs/libXrender-0.6
84 x11-libs/libXext
85 x11-libs/libX11
86 x11-libs/libXft
87 drm? (
88 >=sys-fs/udev-136
89 gallium? ( media-libs/mesa[gallium] )
90 )
91 )
92 xcb? (
93 x11-libs/libxcb
94 x11-libs/xcb-util
95 )"
96 DEPEND="${RDEPEND}
97 dev-util/pkgconfig
98 >=sys-devel/libtool-2
99 doc? (
100 >=dev-util/gtk-doc-1.6
101 ~app-text/docbook-xml-dtd-4.2
102 )
103 X? (
104 x11-proto/renderproto
105 drm? (
106 x11-proto/xproto
107 >=x11-proto/xextproto-7.1
108 )
109 )"
110
111 src_prepare() {
112 epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
113 epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch #336696
114
115 # Slightly messed build system YAY
116 if [[ ${PV} == *9999* ]]; then
117 touch boilerplate/Makefile.am.features
118 touch src/Makefile.am.features
119 touch ChangeLog
120 fi
121
122 # We need to run elibtoolize to ensure correct so versioning on FreeBSD
123 # upgraded to an eautoreconf for the above interix patch.
124 eautoreconf
125 }
126
127 src_configure() {
128 local myopts
129
130 [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
131 # http://bugs.freedesktop.org/show_bug.cgi?id=15463
132 [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS
133
134 #gets rid of fbmmx.c inlining warnings
135 append-flags -finline-limit=1200
136
137 if use X; then
138 myopts+="
139 $(use_enable drm)
140 "
141
142 if use drm; then
143 myopts+="
144 $(use_enable gallium)
145 $(use_enable xcb xcb-drm)
146 "
147 else
148 use gallium && ewarn "Gallium use requires drm use enabled. So disabling for now."
149 myopts+="
150 --disable-gallium
151 --disable-xcb-drm
152 "
153 fi
154 else
155 use drm && ewarn "drm use requires X use enabled. So disabling for now."
156 myopts+="
157 --disable-drm
158 --disable-gallium
159 --disable-xcb-drm
160 "
161 fi
162
163 # --disable-xcb-lib:
164 # do not override good xlib backed by hardforcing rendering over xcb
165 econf \
166 --disable-dependency-tracking \
167 $(use_with X x) \
168 $(use_enable X xlib) \
169 $(use_enable X xlib-xrender) \
170 $(use_enable aqua quartz) \
171 $(use_enable aqua quartz-image) \
172 $(use_enable debug test-surfaces) \
173 $(use_enable directfb) \
174 $(use_enable doc gtk-doc) \
175 $(use_enable openvg vg) \
176 $(use_enable opengl gl) \
177 $(use_enable qt4 qt) \
178 $(use_enable static-libs static) \
179 $(use_enable svg) \
180 $(use_enable xcb) \
181 $(use_enable xcb xcb-shm) \
182 --enable-ft \
183 --enable-pdf \
184 --enable-png \
185 --enable-ps \
186 --disable-xlib-xcb \
187 ${myopts}
188 }
189
190 src_install() {
191 # parallel make install fails
192 emake -j1 DESTDIR="${D}" install || die "Installation failed"
193 dodoc AUTHORS ChangeLog NEWS README || die
194
195 use static-libs || find "${D}" -type f -name '*.la' -exec rm -f '{}' \;
196 }