1 |
commit: 5690217f2d1d752d54046e21cfdddc902d6256b3 |
2 |
Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 11 11:08:30 2020 +0000 |
4 |
Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 11:25:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5690217f |
7 |
|
8 |
dev-libs/libsavitar: drop old |
9 |
|
10 |
Signed-off-by: Dennis Lamm <expeditoneer <AT> gentoo.org> |
11 |
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libsavitar/Manifest | 4 - |
14 |
.../libsavitar-3.3.0-remove-packaged-pugixml.patch | 119 --------------------- |
15 |
.../libsavitar-4.2.0-remove-packaged-pugixml.patch | 60 ----------- |
16 |
dev-libs/libsavitar/libsavitar-3.4.1.ebuild | 44 -------- |
17 |
dev-libs/libsavitar/libsavitar-3.6.0.ebuild | 44 -------- |
18 |
dev-libs/libsavitar/libsavitar-4.2.0.ebuild | 44 -------- |
19 |
dev-libs/libsavitar/libsavitar-4.3.0-r1.ebuild | 52 --------- |
20 |
7 files changed, 367 deletions(-) |
21 |
|
22 |
diff --git a/dev-libs/libsavitar/Manifest b/dev-libs/libsavitar/Manifest |
23 |
index 43cd7300b99..4ffc1c2f7db 100644 |
24 |
--- a/dev-libs/libsavitar/Manifest |
25 |
+++ b/dev-libs/libsavitar/Manifest |
26 |
@@ -1,6 +1,2 @@ |
27 |
-DIST libsavitar-3.4.1.tar.gz 92457 BLAKE2B ef5b7bb87d7b3293c0634d510f860b64f3235f46c8abb1365eb5e439b6f1cf3eed6ff1fa4f2a3476a6f3ed0193356d8019a6ccbce044c29339ec2693b96db3d4 SHA512 4273723536578816ab16c2d9f8c0fba57651a2cd5730e45a27e5ed5ec6a7986f59ef932094392b6bf7bd9dd9555cc44e09505c843e9b364a2c7bcc1770af1f35 |
28 |
-DIST libsavitar-3.6.0.tar.gz 92456 BLAKE2B badd2e416015c2d3331cfe77840466f11f2b671821474b78fff084c4f1c3bebab7b2ae16f75918d4eb40996e293165be46f98efea20edc57b1e1255c2ea9fed0 SHA512 6d7c416218a69b1327ed211a9b198cdfb6ebdf1fc9c8c76b898882a63d0905521d5e41380b21f0b8100ab3e3474bbbf142adea29c6643f03bc3f8c3e6ec3c72f |
29 |
-DIST libsavitar-4.2.0.tar.gz 96223 BLAKE2B bfb41111e8c7cd90acec28bcb11874fc39d6fa2d0785959fd020fb36949300a0e1517a4ed78a153b1f1576b6603a466a2f5baa7e8370b05311729e17b7e83566 SHA512 9d1ee73b8e29e1b8b5688c309471cb6053addce351df8deb4e0cb46d15ffc8fe764216c9abd603440b6a60f42379fa03d88e8023ed01502c4e905ebc6a4f393d |
30 |
-DIST libsavitar-4.3.0.tar.gz 96154 BLAKE2B 866edadad2ea27002b79e018dc073f53409e5fc3af86941ca3e196ab0c8e7299f945997801126b79776538abe81af3abec5c116dac9eb977c1fac02fa45767b4 SHA512 4accce4a96deddfe148540c3abb3cba391178ffc34b88ea77e07053c36eb2c3d6aa7b040ec386ba5bb2eb9e6d9c371b5c35fae268f953694f6ccd9e6c82223d6 |
31 |
DIST libsavitar-4.6.1.tar.gz 98202 BLAKE2B 8025d11316fb777a037c01fb9411a6368e5e7a1b64c4a695a114ff94c1a2802d4eaeb6c8512e14db74ddbbffabd2bc98f93f61adfc2cbdc7ef329d30b105bd4b SHA512 49a0f2e98bc26d84b638d6eb44f9fd93811d92ad398f3c85b1abf2cca3172667315b907d30807eb70b497bd652d95cd443c8cc4daa68c8852787ef46fda47cc2 |
32 |
DIST libsavitar-4.7.0.tar.gz 99070 BLAKE2B 3e27624a62568b8d45ddf8fde60a0377faa81eb9e031e32e935d992304b7249d4f3fa7d9bc45b370882e203368a90ad48347faa600f339d096c67432e23d8ddc SHA512 bd19d3ee8be570791bf4f3d5be5eb44d5bba3181a693633d5703ba91c78d3725dbe051c888ec60cea057790a561beeb98b96c41e6584f630f2410bdb97e0cb4d |
33 |
|
34 |
diff --git a/dev-libs/libsavitar/files/libsavitar-3.3.0-remove-packaged-pugixml.patch b/dev-libs/libsavitar/files/libsavitar-3.3.0-remove-packaged-pugixml.patch |
35 |
deleted file mode 100644 |
36 |
index 629e8edb51a..00000000000 |
37 |
--- a/dev-libs/libsavitar/files/libsavitar-3.3.0-remove-packaged-pugixml.patch |
38 |
+++ /dev/null |
39 |
@@ -1,119 +0,0 @@ |
40 |
-From 91aa70c6320461ae65600dce954b5ffb905b7039 Mon Sep 17 00:00:00 2001 |
41 |
-From: Eli Schwartz <eschwartz93@×××××.com> |
42 |
-Date: Mon, 9 Apr 2018 12:36:35 -0400 |
43 |
-Subject: [PATCH] Do not vendor the pugixml library |
44 |
- |
45 |
-This prevents trying to co-install pugixml with existing system |
46 |
-libraries, and also fixes the includes for pugixml.hpp to actually use |
47 |
-the include path added by find_package/add_subdirectory instead of a |
48 |
-hardcoded relative path. |
49 |
---- |
50 |
- CMakeLists.txt | 3 +- |
51 |
- pugixml/CMakeLists.txt | 80 - |
52 |
- pugixml/src/pugiconfig.hpp | 74 - |
53 |
- pugixml/src/pugixml.cpp | 12622 ------------------------------------------- |
54 |
- pugixml/src/pugixml.hpp | 1434 ----- |
55 |
- src/MeshData.cpp | 7 +- |
56 |
- src/Scene.cpp | 2 +- |
57 |
- src/SceneNode.cpp | 3 +- |
58 |
- src/ThreeMFParser.h | 4 +- |
59 |
- 9 files changed, 7 insertions(+), 14222 deletions(-) |
60 |
- delete mode 100644 pugixml/CMakeLists.txt |
61 |
- delete mode 100644 pugixml/src/pugiconfig.hpp |
62 |
- delete mode 100644 pugixml/src/pugixml.cpp |
63 |
- delete mode 100644 pugixml/src/pugixml.hpp |
64 |
- |
65 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
66 |
-index 5e991a7..1077c7f 100644 |
67 |
---- a/CMakeLists.txt |
68 |
-+++ b/CMakeLists.txt |
69 |
-@@ -7,8 +7,7 @@ include(CMakePackageConfigHelpers) |
70 |
- option(BUILD_PYTHON "Build " ON) |
71 |
- option(BUILD_STATIC "Build as a static library" OFF) |
72 |
- |
73 |
-- |
74 |
--add_subdirectory(pugixml) |
75 |
-+find_package(pugixml REQUIRED) |
76 |
- |
77 |
- if(BUILD_PYTHON) |
78 |
- set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) |
79 |
-diff --git a/src/MeshData.cpp b/src/MeshData.cpp |
80 |
-index 03e5089..701122d 100644 |
81 |
---- a/src/MeshData.cpp |
82 |
-+++ b/src/MeshData.cpp |
83 |
-@@ -17,7 +17,7 @@ |
84 |
- */ |
85 |
- |
86 |
- #include "MeshData.h" |
87 |
--#include "../pugixml/src/pugixml.hpp" |
88 |
-+#include <pugixml.hpp> |
89 |
- #include <iostream> |
90 |
- |
91 |
- using namespace Savitar; |
92 |
-@@ -85,7 +85,7 @@ bytearray MeshData::getFlatVerticesAsBytes() |
93 |
- int v1 = faces.at(i).getV1(); |
94 |
- int v2 = faces.at(i).getV2(); |
95 |
- int v3 = faces.at(i).getV3(); |
96 |
-- |
97 |
-+ |
98 |
- // Add vertices for face 1 |
99 |
- float x = vertices.at(v1).getX(); |
100 |
- float y = vertices.at(v1).getY(); |
101 |
-@@ -188,6 +188,3 @@ std::vector< Vertex > MeshData::getVertices() |
102 |
- { |
103 |
- return vertices; |
104 |
- } |
105 |
-- |
106 |
-- |
107 |
-- |
108 |
-diff --git a/src/Scene.cpp b/src/Scene.cpp |
109 |
-index 4612f78..f218b71 100644 |
110 |
---- a/src/Scene.cpp |
111 |
-+++ b/src/Scene.cpp |
112 |
-@@ -17,7 +17,7 @@ |
113 |
- */ |
114 |
- |
115 |
- #include "Scene.h" |
116 |
--#include "../pugixml/src/pugixml.hpp" |
117 |
-+#include <pugixml.hpp> |
118 |
- #include <iostream> |
119 |
- #include <string> |
120 |
- using namespace Savitar; |
121 |
-diff --git a/src/SceneNode.cpp b/src/SceneNode.cpp |
122 |
-index 5c95b6f..c4782bc 100644 |
123 |
---- a/src/SceneNode.cpp |
124 |
-+++ b/src/SceneNode.cpp |
125 |
-@@ -17,7 +17,7 @@ |
126 |
- */ |
127 |
- |
128 |
- #include "SceneNode.h" |
129 |
--#include "../pugixml/src/pugixml.hpp" |
130 |
-+#include <pugixml.hpp> |
131 |
- #include <iostream> |
132 |
- using namespace Savitar; |
133 |
- |
134 |
-@@ -121,4 +121,3 @@ std::vector< SceneNode*> SceneNode::getAllChildren() |
135 |
- } |
136 |
- return all_children; |
137 |
- } |
138 |
-- |
139 |
-diff --git a/src/ThreeMFParser.h b/src/ThreeMFParser.h |
140 |
-index 3394683..89da659 100644 |
141 |
---- a/src/ThreeMFParser.h |
142 |
-+++ b/src/ThreeMFParser.h |
143 |
-@@ -21,7 +21,7 @@ |
144 |
- |
145 |
- #include "SavitarExport.h" |
146 |
- #include "SceneNode.h" |
147 |
--#include "../pugixml/src/pugixml.hpp" |
148 |
-+#include <pugixml.hpp> |
149 |
- |
150 |
- #include <string> |
151 |
- namespace Savitar |
152 |
-@@ -44,4 +44,4 @@ namespace Savitar |
153 |
- std::string sceneToString(Scene scene); |
154 |
- }; |
155 |
- } |
156 |
--#endif |
157 |
-\ No newline at end of file |
158 |
-+#endif |
159 |
|
160 |
diff --git a/dev-libs/libsavitar/files/libsavitar-4.2.0-remove-packaged-pugixml.patch b/dev-libs/libsavitar/files/libsavitar-4.2.0-remove-packaged-pugixml.patch |
161 |
deleted file mode 100644 |
162 |
index 1d5744aebf0..00000000000 |
163 |
--- a/dev-libs/libsavitar/files/libsavitar-4.2.0-remove-packaged-pugixml.patch |
164 |
+++ /dev/null |
165 |
@@ -1,60 +0,0 @@ |
166 |
-diff -urN libSavitar-4.2.0_old/CMakeLists.txt libSavitar-4.2.0/CMakeLists.txt |
167 |
---- libSavitar-4.2.0_old/CMakeLists.txt 2019-07-30 09:03:53.000000000 +0300 |
168 |
-+++ libSavitar-4.2.0/CMakeLists.txt 2019-08-04 17:23:27.099395645 +0300 |
169 |
-@@ -15,7 +15,7 @@ |
170 |
- find_package(Threads QUIET) |
171 |
- endif() |
172 |
- |
173 |
--add_subdirectory(pugixml) |
174 |
-+find_package(pugixml REQUIRED) |
175 |
- |
176 |
- if(BUILD_PYTHON) |
177 |
- list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) |
178 |
-diff -urN libSavitar-4.2.0_old/src/MeshData.cpp libSavitar-4.2.0/src/MeshData.cpp |
179 |
---- libSavitar-4.2.0_old/src/MeshData.cpp 2019-07-30 09:03:53.000000000 +0300 |
180 |
-+++ libSavitar-4.2.0/src/MeshData.cpp 2019-08-04 17:23:59.891051757 +0300 |
181 |
-@@ -17,7 +17,7 @@ |
182 |
- */ |
183 |
- |
184 |
- #include "MeshData.h" |
185 |
--#include "../pugixml/src/pugixml.hpp" |
186 |
-+#include <pugixml.hpp> |
187 |
- #include <cstring> |
188 |
- #include <iostream> |
189 |
- #include <stdexcept> //For std::runtime_error. |
190 |
-diff -urN libSavitar-4.2.0_old/src/Scene.cpp libSavitar-4.2.0/src/Scene.cpp |
191 |
---- libSavitar-4.2.0_old/src/Scene.cpp 2019-07-30 09:03:53.000000000 +0300 |
192 |
-+++ libSavitar-4.2.0/src/Scene.cpp 2019-08-04 17:24:10.425265944 +0300 |
193 |
-@@ -17,7 +17,7 @@ |
194 |
- */ |
195 |
- |
196 |
- #include "Scene.h" |
197 |
--#include "../pugixml/src/pugixml.hpp" |
198 |
-+#include <pugixml.hpp> |
199 |
- #include <iostream> |
200 |
- #include <string> |
201 |
- using namespace Savitar; |
202 |
-diff -urN libSavitar-4.2.0_old/src/SceneNode.cpp libSavitar-4.2.0/src/SceneNode.cpp |
203 |
---- libSavitar-4.2.0_old/src/SceneNode.cpp 2019-07-30 09:03:53.000000000 +0300 |
204 |
-+++ libSavitar-4.2.0/src/SceneNode.cpp 2019-08-04 17:24:31.617696840 +0300 |
205 |
-@@ -17,7 +17,7 @@ |
206 |
- */ |
207 |
- |
208 |
- #include "SceneNode.h" |
209 |
--#include "../pugixml/src/pugixml.hpp" |
210 |
-+#include <pugixml.hpp> |
211 |
- #include <iostream> |
212 |
- using namespace Savitar; |
213 |
- |
214 |
-diff -urN libSavitar-4.2.0_old/src/ThreeMFParser.h libSavitar-4.2.0/src/ThreeMFParser.h |
215 |
---- libSavitar-4.2.0_old/src/ThreeMFParser.h 2019-07-30 09:03:53.000000000 +0300 |
216 |
-+++ libSavitar-4.2.0/src/ThreeMFParser.h 2019-08-04 17:24:53.996151843 +0300 |
217 |
-@@ -21,7 +21,7 @@ |
218 |
- |
219 |
- #include "SavitarExport.h" |
220 |
- #include "SceneNode.h" |
221 |
--#include "../pugixml/src/pugixml.hpp" |
222 |
-+#include <pugixml.hpp> |
223 |
- |
224 |
- #include <string> |
225 |
- namespace Savitar |
226 |
|
227 |
diff --git a/dev-libs/libsavitar/libsavitar-3.4.1.ebuild b/dev-libs/libsavitar/libsavitar-3.4.1.ebuild |
228 |
deleted file mode 100644 |
229 |
index 1ee1e2a5084..00000000000 |
230 |
--- a/dev-libs/libsavitar/libsavitar-3.4.1.ebuild |
231 |
+++ /dev/null |
232 |
@@ -1,44 +0,0 @@ |
233 |
-# Copyright 1999-2020 Gentoo Authors |
234 |
-# Distributed under the terms of the GNU General Public License v2 |
235 |
- |
236 |
-EAPI=6 |
237 |
- |
238 |
-PYTHON_COMPAT=( python3_6 ) |
239 |
-inherit cmake-utils python-single-r1 |
240 |
- |
241 |
-MY_PN="libSavitar" |
242 |
- |
243 |
-DESCRIPTION="C++ implementation of 3mf loading with SIP python bindings" |
244 |
-HOMEPAGE="https://github.com/Ultimaker/libSavitar" |
245 |
-SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
246 |
- |
247 |
-LICENSE="LGPL-3" |
248 |
-SLOT="0/3" |
249 |
-KEYWORDS="~amd64 ~x86" |
250 |
-IUSE="+python static-libs" |
251 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
252 |
- |
253 |
-RDEPEND="${PYTHON_DEPS} |
254 |
- dev-libs/pugixml |
255 |
- $(python_gen_cond_dep ' |
256 |
- dev-python/sip[${PYTHON_MULTI_USEDEP}] |
257 |
- ')" |
258 |
- |
259 |
-DEPEND="${RDEPEND}" |
260 |
- |
261 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
262 |
- |
263 |
-PATCHES=( "${FILESDIR}"/${PN}-3.3.0-remove-packaged-pugixml.patch ) |
264 |
- |
265 |
-pkg_setup() { |
266 |
- use python && python-single-r1_pkg_setup |
267 |
-} |
268 |
- |
269 |
-src_configure() { |
270 |
- local mycmakeargs=( |
271 |
- -DBUILD_PYTHON=$(usex python ON OFF) |
272 |
- -DBUILD_STATIC=$(usex static-libs ON OFF) |
273 |
- ) |
274 |
- use python && mycmakeargs+=( -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" ) |
275 |
- cmake-utils_src_configure |
276 |
-} |
277 |
|
278 |
diff --git a/dev-libs/libsavitar/libsavitar-3.6.0.ebuild b/dev-libs/libsavitar/libsavitar-3.6.0.ebuild |
279 |
deleted file mode 100644 |
280 |
index 1ee1e2a5084..00000000000 |
281 |
--- a/dev-libs/libsavitar/libsavitar-3.6.0.ebuild |
282 |
+++ /dev/null |
283 |
@@ -1,44 +0,0 @@ |
284 |
-# Copyright 1999-2020 Gentoo Authors |
285 |
-# Distributed under the terms of the GNU General Public License v2 |
286 |
- |
287 |
-EAPI=6 |
288 |
- |
289 |
-PYTHON_COMPAT=( python3_6 ) |
290 |
-inherit cmake-utils python-single-r1 |
291 |
- |
292 |
-MY_PN="libSavitar" |
293 |
- |
294 |
-DESCRIPTION="C++ implementation of 3mf loading with SIP python bindings" |
295 |
-HOMEPAGE="https://github.com/Ultimaker/libSavitar" |
296 |
-SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
297 |
- |
298 |
-LICENSE="LGPL-3" |
299 |
-SLOT="0/3" |
300 |
-KEYWORDS="~amd64 ~x86" |
301 |
-IUSE="+python static-libs" |
302 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
303 |
- |
304 |
-RDEPEND="${PYTHON_DEPS} |
305 |
- dev-libs/pugixml |
306 |
- $(python_gen_cond_dep ' |
307 |
- dev-python/sip[${PYTHON_MULTI_USEDEP}] |
308 |
- ')" |
309 |
- |
310 |
-DEPEND="${RDEPEND}" |
311 |
- |
312 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
313 |
- |
314 |
-PATCHES=( "${FILESDIR}"/${PN}-3.3.0-remove-packaged-pugixml.patch ) |
315 |
- |
316 |
-pkg_setup() { |
317 |
- use python && python-single-r1_pkg_setup |
318 |
-} |
319 |
- |
320 |
-src_configure() { |
321 |
- local mycmakeargs=( |
322 |
- -DBUILD_PYTHON=$(usex python ON OFF) |
323 |
- -DBUILD_STATIC=$(usex static-libs ON OFF) |
324 |
- ) |
325 |
- use python && mycmakeargs+=( -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" ) |
326 |
- cmake-utils_src_configure |
327 |
-} |
328 |
|
329 |
diff --git a/dev-libs/libsavitar/libsavitar-4.2.0.ebuild b/dev-libs/libsavitar/libsavitar-4.2.0.ebuild |
330 |
deleted file mode 100644 |
331 |
index 55f2b677a7e..00000000000 |
332 |
--- a/dev-libs/libsavitar/libsavitar-4.2.0.ebuild |
333 |
+++ /dev/null |
334 |
@@ -1,44 +0,0 @@ |
335 |
-# Copyright 1999-2020 Gentoo Authors |
336 |
-# Distributed under the terms of the GNU General Public License v2 |
337 |
- |
338 |
-EAPI=7 |
339 |
- |
340 |
-PYTHON_COMPAT=( python3_6 ) |
341 |
-inherit cmake python-single-r1 |
342 |
- |
343 |
-MY_PN="libSavitar" |
344 |
- |
345 |
-DESCRIPTION="C++ implementation of 3mf loading with SIP python bindings" |
346 |
-HOMEPAGE="https://github.com/Ultimaker/libSavitar" |
347 |
-SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
348 |
- |
349 |
-LICENSE="LGPL-3" |
350 |
-SLOT="0/3" |
351 |
-KEYWORDS="~amd64 ~x86" |
352 |
-IUSE="+python static-libs" |
353 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
354 |
- |
355 |
-RDEPEND="${PYTHON_DEPS} |
356 |
- dev-libs/pugixml |
357 |
- $(python_gen_cond_dep ' |
358 |
- dev-python/sip[${PYTHON_MULTI_USEDEP}] |
359 |
- ')" |
360 |
- |
361 |
-DEPEND="${RDEPEND}" |
362 |
- |
363 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
364 |
- |
365 |
-PATCHES=( "${FILESDIR}"/${PN}-4.2.0-remove-packaged-pugixml.patch ) |
366 |
- |
367 |
-pkg_setup() { |
368 |
- use python && python-single-r1_pkg_setup |
369 |
-} |
370 |
- |
371 |
-src_configure() { |
372 |
- local mycmakeargs=( |
373 |
- -DBUILD_PYTHON=$(usex python ON OFF) |
374 |
- -DBUILD_STATIC=$(usex static-libs ON OFF) |
375 |
- ) |
376 |
- |
377 |
- cmake_src_configure |
378 |
-} |
379 |
|
380 |
diff --git a/dev-libs/libsavitar/libsavitar-4.3.0-r1.ebuild b/dev-libs/libsavitar/libsavitar-4.3.0-r1.ebuild |
381 |
deleted file mode 100644 |
382 |
index 599349de9ad..00000000000 |
383 |
--- a/dev-libs/libsavitar/libsavitar-4.3.0-r1.ebuild |
384 |
+++ /dev/null |
385 |
@@ -1,52 +0,0 @@ |
386 |
-# Copyright 1999-2020 Gentoo Authors |
387 |
-# Distributed under the terms of the GNU General Public License v2 |
388 |
- |
389 |
-EAPI=7 |
390 |
- |
391 |
-PYTHON_COMPAT=( python3_6 ) |
392 |
-inherit cmake python-single-r1 |
393 |
- |
394 |
-MY_PN="libSavitar" |
395 |
- |
396 |
-DESCRIPTION="C++ implementation of 3mf loading with SIP python bindings" |
397 |
-HOMEPAGE="https://github.com/Ultimaker/libSavitar" |
398 |
-SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
399 |
- |
400 |
-LICENSE="LGPL-3" |
401 |
-SLOT="0/3" |
402 |
-KEYWORDS="~amd64 ~x86" |
403 |
-IUSE="+python static-libs" |
404 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
405 |
- |
406 |
-RDEPEND="${PYTHON_DEPS} |
407 |
- dev-libs/pugixml |
408 |
- $(python_gen_cond_dep ' |
409 |
- dev-python/sip[${PYTHON_MULTI_USEDEP}] |
410 |
- ')" |
411 |
- |
412 |
-DEPEND="${RDEPEND}" |
413 |
- |
414 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
415 |
- |
416 |
-PATCHES=( "${FILESDIR}"/${PN}-4.2.0-remove-packaged-pugixml.patch ) |
417 |
- |
418 |
-pkg_setup() { |
419 |
- use python && python-single-r1_pkg_setup |
420 |
-} |
421 |
- |
422 |
-src_prepare() { |
423 |
- # Find SIP for current python version, not the latest installed |
424 |
- sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" CMakeLists.txt || die |
425 |
- sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" cmake/FindSIP.cmake || die |
426 |
- |
427 |
- cmake_src_prepare |
428 |
-} |
429 |
- |
430 |
-src_configure() { |
431 |
- local mycmakeargs=( |
432 |
- -DBUILD_PYTHON=$(usex python ON OFF) |
433 |
- -DBUILD_STATIC=$(usex static-libs ON OFF) |
434 |
- ) |
435 |
- |
436 |
- cmake_src_configure |
437 |
-} |