Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/cairo/
Date: Fri, 19 Oct 2018 22:30:43
Message-Id: 1539988208.002507830ea1c239c5bf87bdf28806abc612e23d.mattst88@gentoo
1 commit: 002507830ea1c239c5bf87bdf28806abc612e23d
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 19 22:20:32 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 19 22:30:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00250783
7
8 x11-libs/cairo: Version bump to 1.16.0
9
10 Closes: https://bugs.gentoo.org/581532
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 x11-libs/cairo/Manifest | 1 +
14 x11-libs/cairo/cairo-1.16.0.ebuild | 130 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 131 insertions(+)
16
17 diff --git a/x11-libs/cairo/Manifest b/x11-libs/cairo/Manifest
18 index 1aa5bb15b3d..f485786b3a4 100644
19 --- a/x11-libs/cairo/Manifest
20 +++ b/x11-libs/cairo/Manifest
21 @@ -1 +1,2 @@
22 DIST cairo-1.14.12.tar.xz 36251896 BLAKE2B 3a6b374390cbc7ff965bcfdf72b5df28c72e8be1ed524adf0dbde2ae74840991e6c158c528c626fb0c902be95bd846366690b280449d6f74689e7090a562958e SHA512 ede6e75ae95605bf5c4b3859b1824cf125c4a2a35a67d38244cc70951ca44b1d4fd7cf622953d3a7cb868fb5b00856ef6d68ee615276b76eec437641290b01e1
23 +DIST cairo-1.16.0.tar.xz 41997432 BLAKE2B aa37edf7fdf0c952484fd0adc9281724227db93958d6e4919216b30e9017fab670bc2340e3b975737080f1f67dec24025fe0e4680e275ab7703cfb9235eb1fe0 SHA512 9eb27c4cf01c0b8b56f2e15e651f6d4e52c99d0005875546405b64f1132aed12fbf84727273f493d84056a13105e065009d89e94a8bfaf2be2649e232b82377f
24
25 diff --git a/x11-libs/cairo/cairo-1.16.0.ebuild b/x11-libs/cairo/cairo-1.16.0.ebuild
26 new file mode 100644
27 index 00000000000..ecceec47019
28 --- /dev/null
29 +++ b/x11-libs/cairo/cairo-1.16.0.ebuild
30 @@ -0,0 +1,130 @@
31 +# Copyright 1999-2018 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit eutils flag-o-matic autotools multilib-minimal
37 +
38 +if [[ ${PV} == *9999* ]]; then
39 + inherit git-r3
40 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/cairo"
41 + SRC_URI=""
42 +else
43 + SRC_URI="https://www.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 ~amd64-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="https://www.cairographics.org"
49 +LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
50 +SLOT="0"
51 +IUSE="X aqua debug gles2 +glib opengl static-libs +svg utils valgrind 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="
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 + gles2? ( >=media-libs/mesa-9.1.6[gles2,${MULTILIB_USEDEP}] )
66 + glib? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
67 + opengl? ( >=media-libs/mesa-9.1.6[egl,${MULTILIB_USEDEP}] )
68 + utils? ( >=dev-libs/lzo-2.06-r1[${MULTILIB_USEDEP}] )
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 +DEPEND="${RDEPEND}
78 + virtual/pkgconfig
79 + >=sys-devel/libtool-2
80 + X? ( x11-base/xorg-proto )"
81 +#[[ ${PV} == *9999* ]] && DEPEND="${DEPEND}
82 +# doc? (
83 +# >=dev-util/gtk-doc-1.6
84 +# ~app-text/docbook-xml-dtd-4.2
85 +# )"
86 +
87 +REQUIRED_USE="
88 + gles2? ( !opengl )
89 +"
90 +
91 +PATCHES=(
92 + "${FILESDIR}"/${PN}-1.12.18-disable-test-suite.patch
93 + "${FILESDIR}"/${PN}-respect-fontconfig.patch
94 +)
95 +
96 +src_prepare() {
97 + default
98 +
99 + # tests and perf tools require X, bug #483574
100 + if ! use X; then
101 + sed -e '/^SUBDIRS/ s#boilerplate test perf# #' -i Makefile.am || die
102 + fi
103 +
104 + # Slightly messed build system YAY
105 + if [[ ${PV} == *9999* ]]; then
106 + touch boilerplate/Makefile.am.features
107 + touch src/Makefile.am.features
108 + touch ChangeLog
109 + fi
110 +
111 + eautoreconf
112 +}
113 +
114 +multilib_src_configure() {
115 + local myopts
116 +
117 + [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
118 +
119 + use elibc_FreeBSD && myopts+=" --disable-symbol-lookup"
120 +
121 + # [[ ${PV} == *9999* ]] && myopts+=" $(use_enable doc gtk-doc)"
122 +
123 + ECONF_SOURCE="${S}" \
124 + econf \
125 + --disable-dependency-tracking \
126 + $(use_with X x) \
127 + $(use_enable X tee) \
128 + $(use_enable X xlib) \
129 + $(use_enable X xlib-xrender) \
130 + $(use_enable aqua quartz) \
131 + $(use_enable aqua quartz-image) \
132 + $(use_enable debug test-surfaces) \
133 + $(use_enable gles2 glesv2) \
134 + $(use_enable glib gobject) \
135 + $(use_enable opengl gl) \
136 + $(use_enable static-libs static) \
137 + $(use_enable svg) \
138 + $(use_enable utils interpreter) \
139 + $(use_enable utils script) \
140 + $(use_enable utils trace) \
141 + $(use_enable valgrind) \
142 + $(use_enable xcb) \
143 + $(use_enable xcb xcb-shm) \
144 + --enable-ft \
145 + --enable-pdf \
146 + --enable-png \
147 + --enable-ps \
148 + --disable-drm \
149 + --disable-directfb \
150 + --disable-gallium \
151 + --disable-qt \
152 + --disable-vg \
153 + --disable-xlib-xcb \
154 + ${myopts}
155 +}
156 +
157 +multilib_src_install_all() {
158 + prune_libtool_files --all
159 + einstalldocs
160 +}