diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-python/pivy/pivy-0.6.7.ebuild | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-python/pivy/pivy-0.6.7.ebuild')
-rw-r--r-- | dev-python/pivy/pivy-0.6.7.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/pivy/pivy-0.6.7.ebuild b/dev-python/pivy/pivy-0.6.7.ebuild new file mode 100644 index 000000000000..3ea7eff6d17b --- /dev/null +++ b/dev-python/pivy/pivy-0.6.7.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="Coin3D bindings for Python" +HOMEPAGE="https://github.com/coin3d/pivy" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + PIVY_REPO_URI="https://github.com/coin3d/pivy.git" +else + SRC_URI="https://github.com/coin3d/pivy/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64 x86" +fi + +LICENSE="ISC" +SLOT="0" +IUSE="+quarter soqt test" +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + || ( quarter soqt ) +" + +RDEPEND=" + >=media-libs/coin-4.0.0 + quarter? ( media-libs/quarter ) + soqt? ( >=media-libs/SoQt-1.6.0 ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-lang/swig + dev-util/cmake + test? ( ${RDEPEND} ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.6.6-0001-fix-CMakeLists.txt-for-distutils_cmake.patch + "${FILESDIR}"/${PN}-0.6.6-0002-Gentoo-specific-clear-swig-deprecation-warning.patch + "${FILESDIR}"/${P}-find-qmake.patch +) + +DOCS=( AUTHORS HACKING NEWS README.md THANKS ) + +python_test() { + # visual_test.py is interactive + # pyside_test.py currently fails + # quarter_tests.py needs pyside2, which currently lacks py3_11 support + for f in tests/coin_tests.py; do + "${EPYTHON}" "${f}" || die "Test ${f} failed with ${EPYTHON}" + done +} |