Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/skia-pathops/
Date: Sat, 25 Apr 2020 00:37:36
Message-Id: 1587775038.f89a4bbb7b88b1515a08c33a5da725fc285550ef.Alessandro-Barbieri@gentoo
1 commit: f89a4bbb7b88b1515a08c33a5da725fc285550ef
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 25 00:35:56 2020 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sat Apr 25 00:37:18 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f89a4bbb
7
8 dev-python/skia-pathops: new package
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-python/skia-pathops/Manifest | 1 +
14 dev-python/skia-pathops/metadata.xml | 12 ++++++
15 dev-python/skia-pathops/skia-pathops-0.4.0.ebuild | 49 +++++++++++++++++++++++
16 3 files changed, 62 insertions(+)
17
18 diff --git a/dev-python/skia-pathops/Manifest b/dev-python/skia-pathops/Manifest
19 new file mode 100644
20 index 0000000..67aaadb
21 --- /dev/null
22 +++ b/dev-python/skia-pathops/Manifest
23 @@ -0,0 +1 @@
24 +DIST skia-pathops-0.4.0.zip 41254656 BLAKE2B 000829370de58d75cd56211c564c9d58ccf530b638ec0314a8e91fb1a9bb2e3f7e38618f88f3f78f5c404eb9a5d2e182419be7ec411418459e47ad1400bfd615 SHA512 23162a491cbabc1915ef8263c3d49672fb6a2cd4165707fa2e42a43d8e2d4b6ec0ea2e9c2aa377de8e1cbcc1ad6ff7dc8c03b9bd9f6844b97a8a6e538e35075e
25
26 diff --git a/dev-python/skia-pathops/metadata.xml b/dev-python/skia-pathops/metadata.xml
27 new file mode 100644
28 index 0000000..25c671f
29 --- /dev/null
30 +++ b/dev-python/skia-pathops/metadata.xml
31 @@ -0,0 +1,12 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +
35 +<pkgmetadata>
36 + <upstream>
37 + <remote-id type="github">fonttools/skia-pathops</remote-id>
38 + <remote-id type="pypi">skia-pathops</remote-id>
39 + </upstream>
40 + <longdescription lang="en">
41 +Python bindings for the Google Skia library's Path Ops module, performing boolean operations on paths (intersection, union, difference, xor).
42 + </longdescription>
43 +</pkgmetadata>
44
45 diff --git a/dev-python/skia-pathops/skia-pathops-0.4.0.ebuild b/dev-python/skia-pathops/skia-pathops-0.4.0.ebuild
46 new file mode 100644
47 index 0000000..96d1bc9
48 --- /dev/null
49 +++ b/dev-python/skia-pathops/skia-pathops-0.4.0.ebuild
50 @@ -0,0 +1,49 @@
51 +# Copyright 1999-2020 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI="7"
55 +
56 +PYTHON_COMPAT=( python3_{6,7} )
57 +
58 +inherit distutils-r1
59 +
60 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.zip"
61 +KEYWORDS="~amd64"
62 +DESCRIPTION="Python bindings for the Skia Path Ops"
63 +HOMEPAGE="
64 + https://github.com/fonttools/skia-pathops
65 + https://skia.org/dev/present/pathops
66 +"
67 +LICENSE="BSD"
68 +SLOT="0"
69 +
70 +RDEPEND="
71 + ~media-libs/skia-80:=
72 +"
73 +DEPEND="
74 + ${RDEPEND}
75 + test? (
76 + dev-python/pytest-cython[${PYTHON_USEDEP}]
77 + dev-python/pytest-randomly[${PYTHON_USEDEP}]
78 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
79 + )
80 +"
81 +BDEPEND="
82 + app-arch/unzip
83 + dev-python/cython[${PYTHON_USEDEP}]
84 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
85 +"
86 +# dev-python/setuptools_git_ls_files[${PYTHON_USEDEP}]
87 +
88 +#S="${WORKDIR}/${PN}-${MY_PV#v}"
89 +
90 +distutils_enable_tests pytest
91 +
92 +pkg_setup() {
93 + export BUILD_SKIA_FROM_SOURCE=0
94 +}
95 +
96 +python_prepare_all() {
97 + sed -e '/doctest-cython/d' -i tox.ini
98 + distutils-r1_python_prepare_all
99 +}