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