1 |
commit: 07bb0274dfea7701a519c9331da54deb18749c95 |
2 |
Author: D G Turner <digitall <AT> scummvm <DOT> org> |
3 |
AuthorDate: Sat Sep 26 13:08:47 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 7 00:34:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07bb0274 |
7 |
|
8 |
Revert "dev-python/uranium: Remove old" |
9 |
|
10 |
This reverts commit b9d94fe63f88f393d310f12d6a3ee96ea16315b1. |
11 |
|
12 |
Removing v4.6.1 of this broke cura v4.6.1 which was the latest version |
13 |
in tree. This was not detected as the cura RDEPEND is not correctly |
14 |
limiting to v4.6.1 and thus v4.7.0 would match, but fail at runtime. |
15 |
|
16 |
Signed-off-by: David G Turner <digitall <AT> scummvm.org> |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
dev-python/uranium/Manifest | 1 + |
20 |
dev-python/uranium/uranium-4.6.1.ebuild | 76 +++++++++++++++++++++++++++++++++ |
21 |
2 files changed, 77 insertions(+) |
22 |
|
23 |
diff --git a/dev-python/uranium/Manifest b/dev-python/uranium/Manifest |
24 |
index 058d436e485..6e63bbf18ee 100644 |
25 |
--- a/dev-python/uranium/Manifest |
26 |
+++ b/dev-python/uranium/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
+DIST uranium-4.6.1.tar.gz 1013314 BLAKE2B 2a89eb1c4ffab35879eea9a681ea20e9cc5f78736d9c8bda5bf33baf5ef6d3f6418fd1f4b779738d644afd2d553d500c4892559ae402eeab0c38a4d95b295cf5 SHA512 ba7ed12d507fb1bd08fc0e77285933802a31b63d09f2dd0c7329e5644f82e6372fa11a1bbc28f3f1928ae0acfb3cb0afdeedf8e90e619c484fd5f623f8af722a |
29 |
DIST uranium-4.7.0.tar.gz 1021541 BLAKE2B 2a2e354def88764801f275751aaf7643c9f4ca6329c2c302d87b3d617d0e93921d0aef20b0c25c9b0a082a836f7d0cca962dfedaa0298fcf943b1a0b683e0e28 SHA512 e049fff57823107785b418a368d6c6c399775c35ffad90831c77643dee060be2ab13ad8871b11f8d59d2a090a1d26786f4cf39a5a731b616a1b08a8ae5dea996 |
30 |
|
31 |
diff --git a/dev-python/uranium/uranium-4.6.1.ebuild b/dev-python/uranium/uranium-4.6.1.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..19a97cf4fd2 |
34 |
--- /dev/null |
35 |
+++ b/dev-python/uranium/uranium-4.6.1.ebuild |
36 |
@@ -0,0 +1,76 @@ |
37 |
+# Copyright 1999-2020 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
43 |
+ |
44 |
+inherit cmake python-single-r1 |
45 |
+ |
46 |
+MY_PN="Uranium" |
47 |
+ |
48 |
+DESCRIPTION="A Python framework for building 3D printing related applications" |
49 |
+HOMEPAGE="https://github.com/Ultimaker/Uranium" |
50 |
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="LGPL-3" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+IUSE="debug doc test" |
56 |
+RESTRICT="!test? ( test )" |
57 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
58 |
+ |
59 |
+BDEPEND="${PYTHON_DEPS} |
60 |
+ sys-devel/gettext |
61 |
+ doc? ( app-doc/doxygen ) |
62 |
+ test? ( |
63 |
+ $(python_gen_cond_dep ' |
64 |
+ dev-python/pytest[${PYTHON_MULTI_USEDEP}] |
65 |
+ dev-python/mypy[${PYTHON_MULTI_USEDEP}] |
66 |
+ ') |
67 |
+ )" |
68 |
+ |
69 |
+DEPEND="${PYTHON_DEPS} |
70 |
+ ~dev-libs/libarcus-${PV}:=[python,${PYTHON_SINGLE_USEDEP}] |
71 |
+ $(python_gen_cond_dep ' |
72 |
+ dev-python/PyQt5[${PYTHON_MULTI_USEDEP},declarative,network,svg] |
73 |
+ dev-python/numpy[${PYTHON_MULTI_USEDEP}] |
74 |
+ >=dev-python/scipy-1.1[${PYTHON_MULTI_USEDEP}] |
75 |
+ sci-libs/Shapely[${PYTHON_MULTI_USEDEP}] |
76 |
+ ')" |
77 |
+ |
78 |
+RDEPEND="${DEPEND} |
79 |
+ dev-qt/qtquickcontrols:5 |
80 |
+ dev-qt/qtquickcontrols2:5" |
81 |
+ |
82 |
+DOCS=( README.md ) |
83 |
+ |
84 |
+PATCHES=( "${FILESDIR}/${PN}-4.6.1-fix-install-paths.patch" ) |
85 |
+ |
86 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
87 |
+ |
88 |
+src_configure() { |
89 |
+ local mycmakeargs=( |
90 |
+ -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" |
91 |
+ ) |
92 |
+ cmake_src_configure |
93 |
+ |
94 |
+ if ! use debug; then |
95 |
+ sed -i 's/logging.DEBUG/logging.ERROR/' plugins/ConsoleLogger/ConsoleLogger.py || die |
96 |
+ sed -i 's/logging.DEBUG/logging.ERROR/' plugins/FileLogger/FileLogger.py || die |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+src_compile() { |
101 |
+ cmake_src_compile |
102 |
+ if use doc; then |
103 |
+ cmake_src_compile doc |
104 |
+ HTML_DOCS=( html ) |
105 |
+ fi |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ cmake_src_install |
110 |
+ python_optimize |
111 |
+ python_optimize "${D}/usr/$(get_libdir)" |
112 |
+} |