1 |
commit: 3b522ecb7c9890373b69c816de567e0296842c76 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 23 22:46:33 2018 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 23 22:48:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b522ecb |
7 |
|
8 |
dev-python/pycairo: drop xcb use flag and related deps |
9 |
|
10 |
Closes: https://bugs.gentoo.org/649926 |
11 |
|
12 |
dev-python/pycairo/pycairo-1.16.3-r1.ebuild | 53 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 53 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pycairo/pycairo-1.16.3-r1.ebuild b/dev-python/pycairo/pycairo-1.16.3-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..01ca0c90590 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pycairo/pycairo-1.16.3-r1.ebuild |
20 |
@@ -0,0 +1,53 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI="6" |
25 |
+ |
26 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
27 |
+PYTHON_REQ_USE="threads(+)" |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Python bindings for the cairo library" |
32 |
+HOMEPAGE="https://www.cairographics.org/pycairo/ https://github.com/pygobject/pycairo" |
33 |
+SRC_URI="https://github.com/pygobject/${PN}/releases/download/v${PV}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="|| ( LGPL-2.1 MPL-1.1 )" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
38 |
+IUSE="doc examples test" |
39 |
+ |
40 |
+RDEPEND=" |
41 |
+ >=x11-libs/cairo-1.13.1[svg] |
42 |
+" |
43 |
+DEPEND="${RDEPEND} |
44 |
+ doc? ( dev-python/sphinx ) |
45 |
+ test? ( |
46 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
47 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
48 |
+ ) |
49 |
+" |
50 |
+ |
51 |
+python_prepare_all() { |
52 |
+ # Fix pkgconfig path |
53 |
+ sed -i -e "/libdir =/s:\"lib\":\"$(get_libdir)\":" setup.py || die |
54 |
+ distutils-r1_python_prepare_all |
55 |
+} |
56 |
+ |
57 |
+python_compile_all() { |
58 |
+ use doc && emake -C docs |
59 |
+} |
60 |
+ |
61 |
+python_test() { |
62 |
+ esetup.py test |
63 |
+} |
64 |
+ |
65 |
+python_install_all() { |
66 |
+ use doc && local HTML_DOCS=( docs/_build/. ) |
67 |
+ |
68 |
+ if use examples; then |
69 |
+ dodoc -r examples |
70 |
+ fi |
71 |
+ |
72 |
+ distutils-r1_python_install_all |
73 |
+} |