1 |
commit: 2f2cb81c57845f317150d86599c387c7cd47f32f |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 5 09:40:08 2016 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 5 09:40:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f2cb81c |
7 |
|
8 |
dev-python/uranium: Version bump to 2.3.1 |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
dev-python/uranium/Manifest | 1 + |
13 |
.../files/uranium-2.3.1-fix-install-paths.patch | 30 +++++++++++ |
14 |
dev-python/uranium/uranium-2.3.1.ebuild | 58 ++++++++++++++++++++++ |
15 |
3 files changed, 89 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/uranium/Manifest b/dev-python/uranium/Manifest |
18 |
index 2f5caad..c0c16d5 100644 |
19 |
--- a/dev-python/uranium/Manifest |
20 |
+++ b/dev-python/uranium/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST uranium-2.1.0_beta.tar.gz 436367 SHA256 9e7969fdaccb761a261eaed0b72ea94c7b6c0e4455df8f352f93647a6344673e SHA512 aacddf202e633ed3c7dc216a2700900af2ef5935a021a6534e815d373b666bdc775ab116b34d46cdec1d9b50ef8c81b9d113799f0f6d2b8e229ea14c2d8a0e66 WHIRLPOOL 5050d7fd0b07bf1b36f423d8576a312f2d667efc9574314b5748cee357251b39f36b69cce97203a569d63e56f779ce5db91eacd6ee4a1eda1d121713114bf01e |
23 |
+DIST uranium-2.3.1.tar.gz 509563 SHA256 e1fc3106845e5f635abd81ed75da7e8c095b11351322f4a5fc46c9870c1fa415 SHA512 4d0f959b8850608b6a34aef2901394734c994280b40bd863436b7c87eae2834214c1fe5264c4db6368f605076b42123dc7586a3ac7d217d4edd462edb6af9a88 WHIRLPOOL 519b78bc3fdba780b35c64531fc97de33922235ce7bb9c5f0891df3bef010ebb1439f73eb2307277198a32c00974639fe398693778b8973152c4a7eaa2f79ea0 |
24 |
|
25 |
diff --git a/dev-python/uranium/files/uranium-2.3.1-fix-install-paths.patch b/dev-python/uranium/files/uranium-2.3.1-fix-install-paths.patch |
26 |
new file mode 100644 |
27 |
index 00000000..a82484a |
28 |
--- /dev/null |
29 |
+++ b/dev-python/uranium/files/uranium-2.3.1-fix-install-paths.patch |
30 |
@@ -0,0 +1,30 @@ |
31 |
+diff -urN Uranium-2.3.1.orig/CMakeLists.txt Uranium-2.3.1/CMakeLists.txt |
32 |
+--- Uranium-2.3.1.orig/CMakeLists.txt 2016-10-27 18:22:23.000000000 +0300 |
33 |
++++ Uranium-2.3.1/CMakeLists.txt 2016-12-05 12:25:53.190933188 +0300 |
34 |
+@@ -43,14 +43,20 @@ |
35 |
+ # Build Translations |
36 |
+ CREATE_TRANSLATION_TARGETS() |
37 |
+ |
38 |
+-if(APPLE OR WIN32) |
39 |
+- install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) |
40 |
+-else() |
41 |
+- install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages) |
42 |
++if(NOT PYTHON_SITE_PACKAGES_DIR) |
43 |
++ if(APPLE OR WIN32) |
44 |
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages |
45 |
++ CACHE STRING "Directory to install Python bindings to") |
46 |
++ else() |
47 |
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages CACHE |
48 |
++ STRING "Directory to install Python bindings to") |
49 |
++ endif() |
50 |
+ endif() |
51 |
++ |
52 |
++install(DIRECTORY UM DESTINATION ${PYTHON_SITE_PACKAGES_DIR}) |
53 |
+ install(FILES ${CMAKE_SOURCE_DIR}/cmake/UraniumTranslationTools.cmake |
54 |
+- DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules/ ) |
55 |
++ DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/Modules/ ) |
56 |
+ install(DIRECTORY resources DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium) |
57 |
+-install(DIRECTORY plugins DESTINATION lib/uranium) |
58 |
++install(DIRECTORY plugins DESTINATION ${CMAKE_INSTALL_LIBDIR}/uranium) |
59 |
+ |
60 |
+ include(CPackConfig.cmake) |
61 |
|
62 |
diff --git a/dev-python/uranium/uranium-2.3.1.ebuild b/dev-python/uranium/uranium-2.3.1.ebuild |
63 |
new file mode 100644 |
64 |
index 00000000..90bd499 |
65 |
--- /dev/null |
66 |
+++ b/dev-python/uranium/uranium-2.3.1.ebuild |
67 |
@@ -0,0 +1,58 @@ |
68 |
+# Copyright 1999-2016 Gentoo Foundation |
69 |
+# Distributed under the terms of the GNU General Public License v2 |
70 |
+# $Id$ |
71 |
+ |
72 |
+EAPI=6 |
73 |
+ |
74 |
+PYTHON_COMPAT=( python3_{4,5} ) |
75 |
+inherit cmake-utils python-single-r1 |
76 |
+ |
77 |
+MY_PN=Uranium |
78 |
+MY_PV=${PV/_beta} |
79 |
+ |
80 |
+DESCRIPTION="A Python framework for building 3D printing related applications" |
81 |
+HOMEPAGE="https://github.com/Ultimaker/Uranium" |
82 |
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
83 |
+ |
84 |
+LICENSE="AGPL-3+" |
85 |
+SLOT="0" |
86 |
+KEYWORDS="~amd64 ~x86" |
87 |
+IUSE="doc test" |
88 |
+ |
89 |
+RDEPEND="${PYTHON_DEPS} |
90 |
+ ~dev-libs/libarcus-${PV}:*[${PYTHON_USEDEP}] |
91 |
+ dev-python/PyQt5[${PYTHON_USEDEP},declarative,network,svg] |
92 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
93 |
+ dev-qt/qtdeclarative:5 |
94 |
+ dev-qt/qtquickcontrols:5" |
95 |
+DEPEND="${RDEPEND} |
96 |
+ sys-devel/gettext |
97 |
+ doc? ( app-doc/doxygen ) |
98 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
99 |
+S="${WORKDIR}/${MY_PN}-${MY_PV}" |
100 |
+PATCHES=( "${FILESDIR}/${PN}-2.3.1-fix-install-paths.patch" ) |
101 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
102 |
+DOCS=( README.md ) |
103 |
+ |
104 |
+src_configure() { |
105 |
+ local mycmakeargs=( |
106 |
+ -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" ) |
107 |
+ cmake-utils_src_configure |
108 |
+} |
109 |
+ |
110 |
+src_compile() { |
111 |
+ cmake-utils_src_compile |
112 |
+ if use doc; then |
113 |
+ cmake-utils_src_compile doc |
114 |
+ DOCS+=( html ) |
115 |
+ fi |
116 |
+} |
117 |
+ |
118 |
+src_test() { |
119 |
+ emake -C "${BUILD_DIR}" tests |
120 |
+} |
121 |
+ |
122 |
+src_install() { |
123 |
+ enable_cmake-utils_src_install |
124 |
+ python_optimize "${D}usr/$(get_libdir)" |
125 |
+} |