Files
guru/dev-python/pyglm/pyglm-2.8.3.ebuild
T

41 lines
989 B
Bash
Raw Normal View History

2026-01-10 16:56:15 +01:00
# Copyright 2025-2026 Gentoo Authors
2024-12-02 23:36:39 +01:00
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
2026-01-10 16:56:15 +01:00
PYTHON_COMPAT=( python3_{11..14} )
2024-12-02 23:36:39 +01:00
inherit distutils-r1
2025-03-31 18:35:01 +02:00
HASH="58e0db58cc860c0c6f7f6ee3a462e17a431646a4"
2024-12-02 23:36:39 +01:00
DESCRIPTION="Fast OpenGL Mathematics (GLM) for Python"
HOMEPAGE="https://github.com/Zuzu-Typ/PyGLM https://pypi.org/project/PyGLM"
SRC_URI="
https://github.com/Zuzu-Typ/PyGLM/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz
https://github.com/Zuzu-Typ/glm/archive/${HASH}.tar.gz -> ${P}-glm.gh.tar.gz
"
S="${WORKDIR}/PyGLM-${PV}"
2024-12-02 23:36:39 +01:00
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64"
2025-03-31 18:35:01 +02:00
DOCS+=( wiki )
2024-12-02 23:36:39 +01:00
RDEPEND="
media-libs/glm
test? ( dev-python/numpy[${PYTHON_USEDEP}] )
"
distutils_enable_tests pytest
src_prepare() {
default
2025-03-31 18:35:01 +02:00
mv "${WORKDIR}/glm-${HASH}"/* "${S}/PyGLM_lib/glm" || die "Could not move the glm source"
}
python_test() {
rm -rf "${S}/pyglm" "${S}/glm" || die "Could not remove the source directory"
epytest
}