diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/pivy | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pivy')
7 files changed, 182 insertions, 0 deletions
diff --git a/dev-python/pivy/Manifest b/dev-python/pivy/Manifest new file mode 100644 index 000000000000..e2311cf4b3fd --- /dev/null +++ b/dev-python/pivy/Manifest @@ -0,0 +1 @@ +DIST pivy-0.6.10.tar.gz 6678472 BLAKE2B 125551acde1bb5b323672e24cfd7554a32fab3a0abfa3431594ed793603f2ad38d957fddb75e8b5ad7bd40ea3d9259c7ed6b07e91f543697b0950f23892ac4cc SHA512 d4f52635c1e18f137322e52ead8e8e69a6519ed0902aab17a264fc296df9fe2b82221de2234aa152db9c7fd45003a6299a19ddace4488adea99c2159d31d68bb diff --git a/dev-python/pivy/files/pivy-0.6.6-0001-fix-CMakeLists.txt-for-distutils_cmake.patch b/dev-python/pivy/files/pivy-0.6.6-0001-fix-CMakeLists.txt-for-distutils_cmake.patch new file mode 100644 index 000000000000..a2e97027b586 --- /dev/null +++ b/dev-python/pivy/files/pivy-0.6.6-0001-fix-CMakeLists.txt-for-distutils_cmake.patch @@ -0,0 +1,24 @@ +From 44e8dd5b2252c7639021506202df60d6664153d7 Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <waebbl-gentoo@posteo.net> +Date: Sat, 10 Apr 2021 10:27:55 +0200 +Subject: [PATCH] fix CMakeLists.txt for distutils_cmake + +Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> +--- + distutils_cmake/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/distutils_cmake/CMakeLists.txt b/distutils_cmake/CMakeLists.txt +index 976be6a..ccc54e4 100644 +--- a/distutils_cmake/CMakeLists.txt ++++ b/distutils_cmake/CMakeLists.txt +@@ -1,5 +1,5 @@ + cmake_minimum_required(VERSION 3.5) +-project(pivy_cmake_setup NONE) ++project(pivy_cmake_setup) + + + find_package(Coin CONFIG REQUIRED) +-- +2.31.1 + diff --git a/dev-python/pivy/files/pivy-0.6.6-0002-Gentoo-specific-clear-swig-deprecation-warning.patch b/dev-python/pivy/files/pivy-0.6.6-0002-Gentoo-specific-clear-swig-deprecation-warning.patch new file mode 100644 index 000000000000..f3e7c8f0fd70 --- /dev/null +++ b/dev-python/pivy/files/pivy-0.6.6-0002-Gentoo-specific-clear-swig-deprecation-warning.patch @@ -0,0 +1,26 @@ +From 8fd388dd17f8bfa7df62cbea86d077c1d0d0cb66 Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <waebbl-gentoo@posteo.net> +Date: Sat, 10 Apr 2021 10:49:57 +0200 +Subject: [PATCH] [Gentoo-specific] clear swig deprecation warning + +Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 14f0f1b..b1f9a8f 100755 +--- a/setup.py ++++ b/setup.py +@@ -144,7 +144,7 @@ class pivy_build(build): + SWIG = ((sys.platform == "win32" and "swig.exe") or "swig") + + SWIG_SUPPRESS_WARNINGS = "-w302,306,307,312,314,325,361,362,467,389,503,509,510" +- SWIG_PARAMS = "-c++ -python -includeall -modern -D__PIVY__ " + \ ++ SWIG_PARAMS = "-c++ -python -includeall -D__PIVY__ " + \ + "-I. -Ifake_headers -I\"%s\" %s -o %s_wrap.cpp " + \ + "interfaces" + os.sep + "%s.i" + if sys.version_info.major >= 3: +-- +2.31.1 + diff --git a/dev-python/pivy/files/pivy-0.6.7-find-qmake.patch b/dev-python/pivy/files/pivy-0.6.7-find-qmake.patch new file mode 100644 index 000000000000..6332afa97a3c --- /dev/null +++ b/dev-python/pivy/files/pivy-0.6.7-find-qmake.patch @@ -0,0 +1,29 @@ +https://github.com/gentoo/gentoo/pull/25823#issuecomment-1150748775 + +From 2d654ef2837f2ca934f636fc8a63de47a9d5853d Mon Sep 17 00:00:00 2001 +From: Bernd Waibel <waebbl-gentoo@posteo.net> +Date: Thu, 9 Jun 2022 18:26:29 +0200 +Subject: [PATCH] find qmake + +Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> +--- a/qtinfo.py ++++ b/qtinfo.py +@@ -7,7 +7,7 @@ class QtInfo(object): + if qmake_command: + self._qmake_command = qmake_command + else: +- self._qmake_command = [find_executable("qmake"),] ++ self._qmake_command = [find_executable("qmake5"),] + self._dict = {} + # bind all variables early at __init__ time. + for thing in self.__class__.__dict__: +@@ -79,4 +79,4 @@ class QtInfo(object): + translations_dir = property(getTranslationsPath) + headers_dir = property(getHeadersPath) + docs_dir = property(getDocsPath) +- qml_dir = property(getQmlPath) +\ No newline at end of file ++ qml_dir = property(getQmlPath) +-- +2.35.1 + diff --git a/dev-python/pivy/files/pivy-0.6.8-SoQtViewer-w-cmath.patch b/dev-python/pivy/files/pivy-0.6.8-SoQtViewer-w-cmath.patch new file mode 100644 index 000000000000..2150f9806139 --- /dev/null +++ b/dev-python/pivy/files/pivy-0.6.8-SoQtViewer-w-cmath.patch @@ -0,0 +1,14 @@ +From a5fad6bb07d994d6e727d5759965611c6e4d57d6 Mon Sep 17 00:00:00 2001 +From: Konstantin Podsvirov <konstantin@podsvirov.pro> +Date: Fri, 24 Nov 2023 21:09:53 +0300 +Subject: [PATCH] Add fake header for recently introduced cmath include in + SoQtViewer.h + +--- + fake_headers/cmath | 0 + 1 file changed, 0 insertions(+), 0 deletions(-) + create mode 100644 fake_headers/cmath + +diff --git a/fake_headers/cmath b/fake_headers/cmath +new file mode 100644 +index 00000000..e69de29b diff --git a/dev-python/pivy/metadata.xml b/dev-python/pivy/metadata.xml new file mode 100644 index 000000000000..6181a0202b39 --- /dev/null +++ b/dev-python/pivy/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>fordfrog@gentoo.org</email> + <name>Miroslav Ć ulc</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>waebbl-gentoo@posteo.net</email> + <name>Bernd Waibel</name> + </maintainer> + <use> + <flag name="quarter"> + Use <pkg>media-libs/quarter</pkg> for GUI bindings + </flag> + <flag name="soqt"> + Use <pkg>media-libs/SoQt</pkg> for GUI bindings + </flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/pivy/pivy-0.6.10.ebuild b/dev-python/pivy/pivy-0.6.10.ebuild new file mode 100644 index 000000000000..23393580441a --- /dev/null +++ b/dev-python/pivy/pivy-0.6.10.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2025 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_{13..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="+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}"/${PN}-0.6.8-SoQtViewer-w-cmath.patch # bug 920482 +) + +DOCS=( AUTHORS HACKING NEWS README.md THANKS ) + +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 +} |
