dev-python/svgelements: new package, add 1.9.0

Signed-off-by: Henri Gasc <gasc@eurecom.fr>
This commit is contained in:
Henri Gasc 2023-02-05 21:45:54 +01:00
parent ddb6cba033
commit 1d26286381
No known key found for this signature in database
GPG Key ID: 3C21DC7CC460006B
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST v1.9.0.gh.tar.gz 130668 BLAKE2B e1315f0e5136e5a784a69df853fd27737f3b4cfed7423126ab3e94fd50ccb5d747bd9661a9f2853970ed17e9ea185fe342762072aed16b213d39aa44bea369b0 SHA512 c0373373f8f43cadf0b374c89830b2ec4e1eda2fa4052d6d0f72139755dc40a3d15d8b10b2298b2fce15f1540628b9aad57b6449b249290c9e08eb1cb4cdef85

View File

@ -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>gasc@eurecom.fr</email>
<name>Gasc Henri</name>
</maintainer>
<upstream>
<remote-id type="pypi">svgelements</remote-id>
<remote-id type="github">meerk40t/svgelements</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,48 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="SVG Parsing for Elements, Paths, and other SVG Objects."
HOMEPAGE="https://github.com/meerk40t/svgelements https://pypi.org/project/svgelements"
SRC_URI="https://github.com/meerk40t/svgelements/archive/refs/tags/${PV}.tar.gz -> v${PV}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND=""
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
)
"
DEPEND="${BDEPEND}"
distutils_enable_tests pytest
src_prepare() {
default
mv "${S}/test" "${S}_tests"
}
python_test() {
cd "${T}" || die
epytest "${S}_tests"
}
pkg_postinst() {
elog Some other packages could be installed to extend functionnality:
elog
elog - dev-python/scipy, to be more precise for arc lenght
elog - dev-python/pillow, to be able to load images
elog - dev-python/numpy, to do lightning fast linearization for Shapes
}