Files
gentoo/dev-python/pivy/pivy-0.6.11.ebuild
Paul Zander 8d54d3a368 dev-python/pivy: add 0.6.11
We drop USE="quarter soqt", there are no knobs in the build system that
would make use of them.

Bug: https://bugs.gentoo.org/974713
Closes: https://bugs.gentoo.org/973493
Closes: https://bugs.gentoo.org/920482
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1856
Signed-off-by: Sam James <sam@gentoo.org>
2026-09-15 16:35:18 +01:00

74 lines
1.4 KiB
Bash

# Copyright 1999-2026 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_{12..14} )
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="test"
RESTRICT="!test? ( test )"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
"
RDEPEND="
>=media-libs/coin-4.0.0
media-libs/quarter
>=media-libs/SoQt-1.6.0
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-build/cmake
dev-lang/swig
test? ( ${RDEPEND} )
"
PATCHES=(
"${FILESDIR}"/${PN}-0.6.6-0002-Gentoo-specific-clear-swig-deprecation-warning.patch
"${FILESDIR}"/${PN}-0.6.7-find-qmake.patch
)
DOCS=( AUTHORS HACKING NEWS README.md THANKS )
src_prepare() {
default
# no way to pass this via swig
sed \
-e '/option(PIVY_USE_QT6/s/OFF/ON/' \
-e 's/CMAKE_POLICY_VERSION_MINIMUM 3.5/CMAKE_POLICY_VERSION_MINIMUM 3.10/' \
-i CMakeLists.txt || die
}
python_test() {
# visual_test.py is interactive
tests=(
tests/coin_tests.py
tests/pyside_tests.py
tests/quarter_tests.py
)
for f in "${strings[@]}"; do
"${EPYTHON}" "${f}" || die "Test ${f} failed with ${EPYTHON}"
done
}