1 |
commit: 1f3c1e8991bbf3484b1d7fd4df7d84b7899befdd |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 30 20:34:05 2020 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 30 20:35:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f3c1e89 |
7 |
|
8 |
dev-python/pivy: new ebuild |
9 |
|
10 |
Bug: https://bugs.gentoo.org/659478 |
11 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
12 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
13 |
|
14 |
dev-python/pivy/Manifest | 1 + |
15 |
dev-python/pivy/files/pivy-0.6.4-find-SoQt.patch | 31 ++++++++++++++++++ |
16 |
dev-python/pivy/metadata.xml | 23 +++++++++++++ |
17 |
dev-python/pivy/pivy-0.6.5.ebuild | 41 ++++++++++++++++++++++++ |
18 |
4 files changed, 96 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/pivy/Manifest b/dev-python/pivy/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..3b1437a5bd1 |
23 |
--- /dev/null |
24 |
+++ b/dev-python/pivy/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST pivy-0.6.5.tar.gz 6614159 BLAKE2B 2652feb26137b2deda8b76083d3bd9018303ca0a0236ea97e83e9ff24ddeda30462a25ac1b20b0d3e718fc9f83ae5ebf7116a5c0d94debcc5b6d729792230655 SHA512 6cf0b1ac348336609f42f6a72df7ffdc3e1042a4f8fc6e2b725ca38f09476c70bafa14c1f083d1badeb5b37b974a0fbf5806ea71d44d734b9ab9b125ce7f8695 |
27 |
|
28 |
diff --git a/dev-python/pivy/files/pivy-0.6.4-find-SoQt.patch b/dev-python/pivy/files/pivy-0.6.4-find-SoQt.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..4d8a6fdd888 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/pivy/files/pivy-0.6.4-find-SoQt.patch |
33 |
@@ -0,0 +1,31 @@ |
34 |
+From 1c9ffef4d85327fe517bdcf7e11c339a4862ba2e Mon Sep 17 00:00:00 2001 |
35 |
+From: Bernd Waibel <waebbl@×××××.com> |
36 |
+Date: Wed, 12 Jun 2019 21:21:34 +0200 |
37 |
+Subject: [PATCH] CMakeLists.txt: remove NONE keyword for languages from |
38 |
+ project definition. This solves a bug where SoQt is not found on Gentoo |
39 |
+ systems (see https://github.com/waebbl/waebbl-gentoo/issues/42) |
40 |
+MIME-Version: 1.0 |
41 |
+Content-Type: text/plain; charset=UTF-8 |
42 |
+Content-Transfer-Encoding: 8bit |
43 |
+ |
44 |
+Thanks to QÍN Yuhào for coming up with this fix. |
45 |
+ |
46 |
+Suggested-by: QÍN Yuhào <qinyh18@××××××××××××××××××.cn> |
47 |
+Signed-off-by: Bernd Waibel <waebbl@×××××.com> |
48 |
+--- |
49 |
+ CMakeLists.txt | 2 +- |
50 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
51 |
+ |
52 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
53 |
+index 76d0d06..48bd3c0 100644 |
54 |
+--- a/CMakeLists.txt |
55 |
++++ b/CMakeLists.txt |
56 |
+@@ -1,4 +1,4 @@ |
57 |
+-project(pivy_cmake_setup NONE) |
58 |
++project(pivy_cmake_setup) |
59 |
+ cmake_minimum_required(VERSION 3.5) |
60 |
+ |
61 |
+ |
62 |
+-- |
63 |
+2.21.0 |
64 |
+ |
65 |
|
66 |
diff --git a/dev-python/pivy/metadata.xml b/dev-python/pivy/metadata.xml |
67 |
new file mode 100644 |
68 |
index 00000000000..ec11d492167 |
69 |
--- /dev/null |
70 |
+++ b/dev-python/pivy/metadata.xml |
71 |
@@ -0,0 +1,23 @@ |
72 |
+<?xml version="1.0" encoding="UTF-8"?> |
73 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
74 |
+<pkgmetadata> |
75 |
+<maintainer type="person"> |
76 |
+ <email>fordfrog@g.o</email> |
77 |
+ <name>Miroslav Šulc</name> |
78 |
+</maintainer> |
79 |
+<maintainer type="person"> |
80 |
+ <email>waebbl@×××××.com</email> |
81 |
+ <name>Bernd Waibel</name> |
82 |
+</maintainer> |
83 |
+<use> |
84 |
+ <flag name="quarter"> |
85 |
+ Use <pkg>media-libs/quarter</pkg> for GUI bindings |
86 |
+ </flag> |
87 |
+ <flag name="soqt"> |
88 |
+ Use <pkg>media-libs/SoQt</pkg> for GUI bindings |
89 |
+ </flag> |
90 |
+</use> |
91 |
+<upstream> |
92 |
+ <remote-id type="github">coin3d/quarter</remote-id> |
93 |
+</upstream> |
94 |
+</pkgmetadata> |
95 |
|
96 |
diff --git a/dev-python/pivy/pivy-0.6.5.ebuild b/dev-python/pivy/pivy-0.6.5.ebuild |
97 |
new file mode 100644 |
98 |
index 00000000000..8bbccd29a30 |
99 |
--- /dev/null |
100 |
+++ b/dev-python/pivy/pivy-0.6.5.ebuild |
101 |
@@ -0,0 +1,41 @@ |
102 |
+# Copyright 1999-2020 Gentoo Authors |
103 |
+# Distributed under the terms of the GNU General Public License v2 |
104 |
+ |
105 |
+EAPI=7 |
106 |
+ |
107 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
108 |
+DISTUTILS_USE_SETUPTOOLS=no |
109 |
+ |
110 |
+inherit distutils-r1 |
111 |
+ |
112 |
+DESCRIPTION="Coin3D bindings for Python" |
113 |
+HOMEPAGE="https://github.com/coin3d/pivy" |
114 |
+ |
115 |
+if [[ ${PV} == *9999 ]]; then |
116 |
+ inherit git-r3 |
117 |
+ PIVY_REPO_URI="https://github.com/coin3d/pivy.git" |
118 |
+else |
119 |
+ SRC_URI="https://github.com/coin3d/pivy/archive/${PV}.tar.gz -> ${P}.tar.gz" |
120 |
+ KEYWORDS="~amd64 ~x86" |
121 |
+fi |
122 |
+ |
123 |
+LICENSE="ISC" |
124 |
+SLOT="0" |
125 |
+IUSE="+quarter soqt" |
126 |
+ |
127 |
+REQUIRED_USE=" |
128 |
+ ${PYTHON_REQUIRED_USE} |
129 |
+ || ( quarter soqt ) |
130 |
+" |
131 |
+ |
132 |
+RDEPEND=" |
133 |
+ >=media-libs/coin-4.0.0 |
134 |
+ quarter? ( media-libs/quarter ) |
135 |
+ soqt? ( >=media-libs/SoQt-1.6.0 ) |
136 |
+" |
137 |
+DEPEND="${RDEPEND}" |
138 |
+BDEPEND="dev-lang/swig" |
139 |
+ |
140 |
+PATCHES=( "${FILESDIR}/${PN}-0.6.4-find-SoQt.patch" ) |
141 |
+ |
142 |
+DOCS=( AUTHORS HACKING NEWS README.md THANKS ) |