commit: 4182b521d244eb55926272438c50c7fed4b23dd4
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat May 8 01:16:47 2021 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Sat May 8 01:17:40 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4182b521
dev-python/skia-pathops: add 0.6.0_p2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/skia-pathops/Manifest | 1 +
.../skia-pathops/skia-pathops-0.6.0_p2.ebuild | 48 ++++++++++++++++++++++
2 files changed, 49 insertions(+)
diff --git a/dev-python/skia-pathops/Manifest b/dev-python/skia-pathops/Manifest
index 4304fac3f..d26dbc8f3 100644
--- a/dev-python/skia-pathops/Manifest
+++ b/dev-python/skia-pathops/Manifest
@@ -1 +1,2 @@
DIST skia-pathops-0.4.1.zip 41254623 BLAKE2B
8d47da77c6389419cdf229085c58e692a218f400458b3bd6633307316c0d127c05990438a739633ae1622aa394da95414f86eb23338c1ef28f69283608c4ee7a
SHA512
62cef669a8518643c4aefe2860f4c2207d602a531fe3f2ff1ae700b092d6f60cd2c47190926c0d00c709995e519f5538722ed1c0f4b6881c5af5aeb2a5b43e3b
+DIST skia-pathops-0.6.0.post2.zip 41471167 BLAKE2B
b9da1ff7deade28e0b5ce4fa6590eb92b50976027fc9da805b50c9d1526a60c28661d5378ecdc4dc2de42f7d3d904dd2f768b49df716b345253ffe2475f1afe7
SHA512
3ebcf044d045a57531229841630dea6e656df434a4a9b994a9a1162c93f0c894ffb20cfb493159cefd1afbe40366e2f9742a4aeea1a693d917fa55841c887e86
diff --git a/dev-python/skia-pathops/skia-pathops-0.6.0_p2.ebuild
b/dev-python/skia-pathops/skia-pathops-0.6.0_p2.ebuild
new file mode 100644
index 000000000..1ef3ac4ba
--- /dev/null
+++ b/dev-python/skia-pathops/skia-pathops-0.6.0_p2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+PYTHON_COMPAT=( python3_{7,8} )
+
+inherit distutils-r1
+
+MYP="${P/_p/.post}"
+DESCRIPTION="Python bindings for the Skia Path Ops"
+HOMEPAGE="
+ https://github.com/fonttools/skia-pathops
+ https://skia.org/dev/present/pathops
+"
+SRC_URI="mirror://pypi/${MYP:0:1}/${PN}/${MYP}.zip"
+S="${WORKDIR}/${MYP}"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ media-libs/skia
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-python/pytest-cython[${PYTHON_USEDEP}]
+ dev-python/pytest-randomly[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ )
+"
+BDEPEND="
+ app-arch/unzip
+ dev-python/cython[${PYTHON_USEDEP}]
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+pkg_setup() {
+ export BUILD_SKIA_FROM_SOURCE=0
+}
+
+python_test() {
+ # assert <pathops.Path object at 0x7fe53e76cc00: 1 contours> ==
<pathops.Path object at 0x7fe53e76c2a0: 1 contours>
+ epytest --deselect tests/pathops_test.py::PathTest::test_transform
+}