/[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.59 - (show annotations) (download)
Wed Mar 25 03:15:30 2015 UTC (2 days, 10 hours ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.58: +3 -3 lines
Version bump, various bugs fixed. Update live ebuild to git-r3.eclass. Propagate live ebuild flag changes (experimental/broken flags now completely removed from the ebuild). Drop old.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x18E5B6F2D8D5EC8D)

1 # Copyright 1999-2015 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.58 2015/02/23 05:44:06 mattst88 Exp $
4
5 EAPI=5
6
7 inherit eutils flag-o-matic autotools multilib-minimal
8
9 if [[ ${PV} == *9999* ]]; then
10 inherit git-r3
11 EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
12 SRC_URI=""
13 else
14 SRC_URI="http://cairographics.org/releases/${P}.tar.xz"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~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"
16 fi
17
18 DESCRIPTION="A vector graphics library with cross-device output support"
19 HOMEPAGE="http://cairographics.org/"
20 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
21 SLOT="0"
22 IUSE="X aqua debug directfb gles2 +glib opengl static-libs +svg valgrind xcb xlib-xcb"
23 # gtk-doc regeneration doesn't seem to work with out-of-source builds
24 #[[ ${PV} == *9999* ]] && IUSE="${IUSE} doc" # API docs are provided in tarball, no need to regenerate
25
26 # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
27 RESTRICT="test"
28
29 RDEPEND=">=dev-libs/lzo-2.06-r1[${MULTILIB_USEDEP}]
30 >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}]
31 >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}]
32 >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}]
33 >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
34 >=x11-libs/pixman-0.32.4[${MULTILIB_USEDEP}]
35 directfb? ( dev-libs/DirectFB )
36 gles2? ( >=media-libs/mesa-9.1.6[gles2,${MULTILIB_USEDEP}] )
37 glib? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
38 opengl? ( || ( >=media-libs/mesa-9.1.6[egl,${MULTILIB_USEDEP}] media-libs/opengl-apple ) )
39 X? (
40 >=x11-libs/libXrender-0.9.8[${MULTILIB_USEDEP}]
41 >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
42 >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
43 )
44 xcb? (
45 >=x11-libs/libxcb-1.9.1[${MULTILIB_USEDEP}]
46 )
47 abi_x86_32? (
48 !<=app-emulation/emul-linux-x86-gtklibs-20131008-r1
49 !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)]
50 )"
51 DEPEND="${RDEPEND}
52 virtual/pkgconfig
53 >=sys-devel/libtool-2
54 X? (
55 >=x11-proto/renderproto-0.11.1-r1[${MULTILIB_USEDEP}]
56 )"
57 #[[ ${PV} == *9999* ]] && DEPEND="${DEPEND}
58 # doc? (
59 # >=dev-util/gtk-doc-1.6
60 # ~app-text/docbook-xml-dtd-4.2
61 # )"
62
63 REQUIRED_USE="
64 gles2? ( !opengl )
65 xlib-xcb? ( xcb )
66 "
67
68 MULTILIB_WRAPPED_HEADERS=(
69 /usr/include/cairo/cairo-directfb.h
70 )
71
72 src_prepare() {
73 epatch "${FILESDIR}"/${PN}-1.12.18-disable-test-suite.patch
74 epatch "${FILESDIR}"/${PN}-respect-fontconfig.patch
75
76 # tests and perf tools require X, bug #483574
77 if ! use X; then
78 sed -e '/^SUBDIRS/ s#boilerplate test perf# #' -i Makefile.am || die
79 fi
80
81 epatch_user
82
83 # Slightly messed build system YAY
84 if [[ ${PV} == *9999* ]]; then
85 touch boilerplate/Makefile.am.features
86 touch src/Makefile.am.features
87 touch ChangeLog
88 fi
89
90 eautoreconf
91 }
92
93 multilib_src_configure() {
94 local myopts
95
96 [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
97
98 use elibc_FreeBSD && myopts+=" --disable-symbol-lookup"
99
100 # TODO: remove this (and add USE-dep) when DirectFB is converted,
101 # bug #484248 -- but beware of the circular dep.
102 if ! multilib_is_native_abi; then
103 myopts+=" --disable-directfb"
104 fi
105
106 # TODO: remove this (and add USE-dep) when qtgui is converted, bug #498010
107 if ! multilib_is_native_abi; then
108 myopts+=" --disable-qt"
109 fi
110
111 # [[ ${PV} == *9999* ]] && myopts+=" $(use_enable doc gtk-doc)"
112
113 ECONF_SOURCE="${S}" \
114 econf \
115 --disable-dependency-tracking \
116 $(use_with X x) \
117 $(use_enable X tee) \
118 $(use_enable X xlib) \
119 $(use_enable X xlib-xrender) \
120 $(use_enable aqua quartz) \
121 $(use_enable aqua quartz-image) \
122 $(use_enable debug test-surfaces) \
123 $(use_enable directfb) \
124 $(use_enable gles2 glesv2) \
125 $(use_enable glib gobject) \
126 $(use_enable opengl gl) \
127 $(use_enable static-libs static) \
128 $(use_enable svg) \
129 $(use_enable valgrind) \
130 $(use_enable xcb) \
131 $(use_enable xcb xcb-shm) \
132 $(use_enable xlib-xcb) \
133 --enable-ft \
134 --enable-pdf \
135 --enable-png \
136 --enable-ps \
137 --disable-drm \
138 --disable-gallium \
139 --disable-qt \
140 --disable-vg \
141 ${myopts}
142 }
143
144 multilib_src_install_all() {
145 prune_libtool_files --all
146 einstalldocs
147 }
148
149 pkg_postinst() {
150 if use !xlib-xcb; then
151 if has_version net-misc/nxserver-freenx \
152 || has_version net-misc/x2goserver; then
153 ewarn "cairo-1.12 is known to cause GTK+ errors with NX servers."
154 ewarn "Enable USE=\"xlib-xcb\" if you notice incorrect behavior in GTK+"
155 ewarn "applications that are running inside NX sessions. For details, see"
156 ewarn "https://bugs.gentoo.org/441878 or https://bugs.freedesktop.org/59173"
157 fi
158 fi
159 }

  ViewVC Help
Powered by ViewVC 1.1.20