dev-python/pyrr: new package, add 0.10.3

Signed-off-by: Henri Gasc <gasc@eurecom.fr>
This commit is contained in:
Henri Gasc
2023-02-06 17:41:11 +01:00
parent 20fa7fcdad
commit 284c01bc02
3 changed files with 59 additions and 0 deletions

1
dev-python/pyrr/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST v0.10.3.gh.tar.gz 66011 BLAKE2B 843cb7199daae203e93567ad90a8f4456d9e940830d8a88bbe3b316900ccd38df996016b40435b55e857364312c5bca55d078f416a24f9badbe9867039fbe662 SHA512 f3f045604e28f4a944ea0528363c233a75413a6039bd11b90eeeafadcaaf0ef44bc1303581f2e78adcfb9a365f719be64a24adf1cec8c5ef1abf5642dea58df4

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">pyrr</remote-id>
<remote-id type="github">adamlwgriffiths/pyrr</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,46 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="A cross platform utility library for ModernGL"
HOMEPAGE="https://github.com/adamlwgriffiths/pyrr https://pypi.org/project/pyrr"
SRC_URI="https://github.com/adamlwgriffiths/pyrr/archive/refs/tags/${PV}.tar.gz -> v${PV}.gh.tar.gz"
S="${WORKDIR}/Pyrr-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=""
BDEPEND="
dev-python/multipledispatch[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
"
DEPEND="${BDEPEND}"
python_compile() {
distutils-r1_python_compile
find ./ -type f -exec sed -i 's/sphinx.ext.pngmath/sphinx.ext.imgmath/g' {} \;
emake man -C docs
}
python_install() {
distutils-r1_python_install
doman "${S}/docs/build/man/pyrr.1"
}
# The tests failed with `module 'numpy' has no attribute 'float'`
# distutils_enable_tests pytest
# python_test() {
# cd "${T}" || die
# epytest "${S}"/tests || die "Tests failed with ${EPYTHON}"
# }