blob: 3095dba32c7431cc984e02c65184561b7ecffd69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
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
https://dev.gentoo.org/~andrewammerlaan/${P}-python312-unittests.patch
"
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-build/cmake
dev-lang/swig
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}"/${PN}-0.6.7-find-qmake.patch
# in 0.6.9:
"${FILESDIR}"/${P}-python312.patch # https://github.com/coin3d/pivy/issues/105
"${DISTDIR}"/${P}-python312-unittests.patch # https://github.com/coin3d/pivy/pull/109
"${FILESDIR}"/${P}-SoQtViewer-w-cmath.patch # bug 920482
)
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
}
|