/[gentoo-x86]/x11-libs/cairo/cairo-9999.ebuild
Gentoo

Contents of /x11-libs/cairo/cairo-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.38 - (show annotations) (download)
Sun Apr 20 17:55:37 2014 UTC (2 days, 14 hours ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.37: +27 -9 lines
After talking with yngwin, make x11 team primary maintainer, add myself as maintainer for multilib problems. Punt useless doc flag. Add 1.12.16-r2 for wrapped header.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.37 2014/02/28 20:42:55 mgorny Exp $
4
5 EAPI=5
6
7 inherit eutils flag-o-matic autotools multilib-minimal
8
9 if [[ ${PV} == *9999* ]]; then
10 inherit git-2
11 EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
12 SRC_URI=""
13 KEYWORDS=""
14 else
15 SRC_URI="http://cairographics.org/releases/${P}.tar.xz"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17 fi
18
19 DESCRIPTION="A vector graphics library with cross-device output support"
20 HOMEPAGE="http://cairographics.org/"
21 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
22 SLOT="0"
23 IUSE="X aqua debug directfb drm gallium gles2 +glib legacy-drivers opengl openvg qt4 static-libs +svg valgrind xcb xlib-xcb"
24 # gtk-doc regeneration doesn't seem to work with out-of-source builds
25 #[[ ${PV} == *9999* ]] && IUSE="${IUSE} doc" # API docs are provided in tarball, no need to regenerate
26
27 # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
28 RESTRICT="test"
29
30 RDEPEND="dev-libs/lzo[${MULTILIB_USEDEP}]
31 media-libs/fontconfig[${MULTILIB_USEDEP}]
32 media-libs/freetype:2[${MULTILIB_USEDEP}]
33 media-libs/libpng:0=[${MULTILIB_USEDEP}]
34 sys-libs/zlib[${MULTILIB_USEDEP}]
35 >=x11-libs/pixman-0.30.0[${MULTILIB_USEDEP}]
36 directfb? ( dev-libs/DirectFB )
37 gles2? ( media-libs/mesa[gles2,${MULTILIB_USEDEP}] )
38 glib? ( >=dev-libs/glib-2.28.6:2[${MULTILIB_USEDEP}] )
39 opengl? ( || ( media-libs/mesa[egl,${MULTILIB_USEDEP}] media-libs/opengl-apple ) )
40 openvg? ( media-libs/mesa[openvg,${MULTILIB_USEDEP}] )
41 qt4? ( >=dev-qt/qtgui-4.8:4 )
42 X? (
43 >=x11-libs/libXrender-0.6[${MULTILIB_USEDEP}]
44 x11-libs/libXext[${MULTILIB_USEDEP}]
45 x11-libs/libX11[${MULTILIB_USEDEP}]
46 drm? (
47 >=virtual/udev-136[${MULTILIB_USEDEP}]
48 gallium? ( media-libs/mesa[gallium,${MULTILIB_USEDEP}] )
49 )
50 )
51 xcb? (
52 x11-libs/libxcb[${MULTILIB_USEDEP}]
53 )
54 abi_x86_32? (
55 !<=app-emulation/emul-linux-x86-gtklibs-20131008-r1
56 !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
57 )"
58 DEPEND="${RDEPEND}
59 virtual/pkgconfig
60 >=sys-devel/libtool-2
61 X? (
62 x11-proto/renderproto[${MULTILIB_USEDEP}]
63 drm? (
64 x11-proto/xproto[${MULTILIB_USEDEP}]
65 >=x11-proto/xextproto-7.1[${MULTILIB_USEDEP}]
66 )
67 )"
68 #[[ ${PV} == *9999* ]] && DEPEND="${DEPEND}
69 # doc? (
70 # >=dev-util/gtk-doc-1.6
71 # ~app-text/docbook-xml-dtd-4.2
72 # )"
73
74 # drm module requires X
75 # for gallium we need to enable drm
76 REQUIRED_USE="
77 drm? ( X )
78 gallium? ( drm )
79 gles2? ( !opengl )
80 openvg? ( || ( gles2 opengl ) )
81 xlib-xcb? ( xcb )
82 "
83
84 MULTILIB_WRAPPED_HEADERS=(
85 /usr/include/cairo/cairo-features.h
86 /usr/include/cairo/cairo-directfb.h
87 )
88
89 src_prepare() {
90 epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
91 use legacy-drivers && epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch
92 epatch "${FILESDIR}"/${PN}-respect-fontconfig.patch
93 epatch_user
94
95 # Slightly messed build system YAY
96 if [[ ${PV} == *9999* ]]; then
97 touch boilerplate/Makefile.am.features
98 touch src/Makefile.am.features
99 touch ChangeLog
100 fi
101
102 # We need to run elibtoolize to ensure correct so versioning on FreeBSD
103 # upgraded to an eautoreconf for the above interix patch.
104 eautoreconf
105 }
106
107 multilib_src_configure() {
108 local myopts
109
110 [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
111
112 use elibc_FreeBSD && myopts+=" --disable-symbol-lookup"
113
114 # TODO: remove this (and add USE-dep) when DirectFB is converted,
115 # bug #484248 -- but beware of the circular dep.
116 if ! multilib_build_binaries; then
117 myopts+=" --disable-directfb"
118 fi
119
120 # TODO: remove this (and add USE-dep) when qtgui is converted, bug #498010
121 if ! multilib_build_binaries; then
122 myopts+=" --disable-qt"
123 fi
124
125 # [[ ${PV} == *9999* ]] && myopts+=" $(use_enable doc gtk-doc)"
126
127 ECONF_SOURCE="${S}" \
128 econf \
129 --disable-dependency-tracking \
130 $(use_with X x) \
131 $(use_enable X tee) \
132 $(use_enable X xlib) \
133 $(use_enable X xlib-xrender) \
134 $(use_enable aqua quartz) \
135 $(use_enable aqua quartz-image) \
136 $(use_enable debug test-surfaces) \
137 $(use_enable drm) \
138 $(use_enable directfb) \
139 $(use_enable gallium) \
140 $(use_enable gles2 glesv2) \
141 $(use_enable glib gobject) \
142 $(use_enable openvg vg) \
143 $(use_enable opengl gl) \
144 $(use_enable qt4 qt) \
145 $(use_enable static-libs static) \
146 $(use_enable svg) \
147 $(use_enable valgrind) \
148 $(use_enable xcb) \
149 $(use_enable xcb xcb-shm) \
150 $(use_enable xlib-xcb) \
151 --enable-ft \
152 --enable-pdf \
153 --enable-png \
154 --enable-ps \
155 ${myopts}
156 }
157
158 multilib_src_install() {
159 # parallel make install fails
160 emake -j1 DESTDIR="${D}" install
161 }
162
163 multilib_src_install_all() {
164 prune_libtool_files --all
165 einstalldocs
166 }
167
168 pkg_postinst() {
169 if use !xlib-xcb; then
170 if has_version net-misc/nxserver-freenx \
171 || has_version net-misc/x2goserver; then
172 ewarn "cairo-1.12 is known to cause GTK+ errors with NX servers."
173 ewarn "Enable USE=\"xlib-xcb\" if you notice incorrect behavior in GTK+"
174 ewarn "applications that are running inside NX sessions. For details, see"
175 ewarn "https://bugs.gentoo.org/441878 or https://bugs.freedesktop.org/59173"
176 fi
177 fi
178 }

  ViewVC Help
Powered by ViewVC 1.1.20