summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2022-02-17 14:18:48 +0000
committerMarek Szuba <marecki@gentoo.org>2022-02-17 22:17:46 +0000
commit9e3271fc15cde6871d3dc3b24c41410dfdd2ba2d (patch)
tree581914994317b644f6f9ca4fc83a2d33478ca2cb /dev-python/mapbox_earcut
parentdev-python/pyopencl: Stabilize 2021.2.13 amd64, #833551 (diff)
downloadgentoo-9e3271fc15cde6871d3dc3b24c41410dfdd2ba2d.tar.gz
gentoo-9e3271fc15cde6871d3dc3b24c41410dfdd2ba2d.tar.bz2
gentoo-9e3271fc15cde6871d3dc3b24c41410dfdd2ba2d.zip
dev-python/mapbox_earcut: initial import
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-python/mapbox_earcut')
-rw-r--r--dev-python/mapbox_earcut/Manifest1
-rw-r--r--dev-python/mapbox_earcut/mapbox_earcut-1.0.0.ebuild30
-rw-r--r--dev-python/mapbox_earcut/metadata.xml12
3 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/mapbox_earcut/Manifest b/dev-python/mapbox_earcut/Manifest
new file mode 100644
index 000000000000..2e96eda8bf7e
--- /dev/null
+++ b/dev-python/mapbox_earcut/Manifest
@@ -0,0 +1 @@
+DIST mapbox_earcut_python-1.0.0.tar.gz 11418 BLAKE2B af1b2c34fe5807145de4b8db3f4b8803c3c03a89f6f3c9fa053ec256eaa5089867d570b9ff66d19a11808e1a452039cf6d194494fbe964cc18f233a528203293 SHA512 8f3687ac11497ad73c2a3dd1d1203dccf655da623d1638e638978a59388e0c057ca6f895782b609d59a2a4be478d6daf2294523a946c8a5d232dcfe718e4eec9
diff --git a/dev-python/mapbox_earcut/mapbox_earcut-1.0.0.ebuild b/dev-python/mapbox_earcut/mapbox_earcut-1.0.0.ebuild
new file mode 100644
index 000000000000..2bd337492c06
--- /dev/null
+++ b/dev-python/mapbox_earcut/mapbox_earcut-1.0.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1
+
+MY_PN="${PN}_python"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Python bindings to the mapbox earcut C++ library"
+HOMEPAGE="https://github.com/skogler/mapbox_earcut_python"
+# No tests in PyPI and GitHub release tarballs
+SRC_URI="https://github.com/skogler/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
+BDEPEND="dev-python/pybind11[${PYTHON_USEDEP}]"
+
+DOCS=( CHANGELOG.md README.md )
+
+distutils_enable_tests pytest
+
+S="${WORKDIR}"/${MY_P}
diff --git a/dev-python/mapbox_earcut/metadata.xml b/dev-python/mapbox_earcut/metadata.xml
new file mode 100644
index 000000000000..fa95aa220ef5
--- /dev/null
+++ b/dev-python/mapbox_earcut/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marecki@gentoo.org</email>
+ <name>Marek Szuba</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">skogler/mapbox_earcut_python</remote-id>
+ <remote-id type="pypi">mapbox-earcut</remote-id>
+ </upstream>
+</pkgmetadata>