1 |
commit: 52eda6c286c51c206fc8e17c86243e0e73f156e6 |
2 |
Author: Michael Perlov <perlovka <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri May 22 00:50:06 2020 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 25 19:41:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52eda6c2 |
7 |
|
8 |
dev-libs/libsavitar: version bump to 4.6.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Michael Perlov <perlovka <AT> gmail.com> |
12 |
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org> |
13 |
|
14 |
dev-libs/libsavitar/Manifest | 1 + |
15 |
.../libsavitar-4.6.1-remove-packaged-pugixml.patch | 60 ++++++++++++++++++++++ |
16 |
dev-libs/libsavitar/libsavitar-4.6.1.ebuild | 53 +++++++++++++++++++ |
17 |
3 files changed, 114 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/libsavitar/Manifest b/dev-libs/libsavitar/Manifest |
20 |
index de4dfc57d70..a4c6a4380d0 100644 |
21 |
--- a/dev-libs/libsavitar/Manifest |
22 |
+++ b/dev-libs/libsavitar/Manifest |
23 |
@@ -2,3 +2,4 @@ DIST libsavitar-3.4.1.tar.gz 92457 BLAKE2B ef5b7bb87d7b3293c0634d510f860b64f3235 |
24 |
DIST libsavitar-3.6.0.tar.gz 92456 BLAKE2B badd2e416015c2d3331cfe77840466f11f2b671821474b78fff084c4f1c3bebab7b2ae16f75918d4eb40996e293165be46f98efea20edc57b1e1255c2ea9fed0 SHA512 6d7c416218a69b1327ed211a9b198cdfb6ebdf1fc9c8c76b898882a63d0905521d5e41380b21f0b8100ab3e3474bbbf142adea29c6643f03bc3f8c3e6ec3c72f |
25 |
DIST libsavitar-4.2.0.tar.gz 96223 BLAKE2B bfb41111e8c7cd90acec28bcb11874fc39d6fa2d0785959fd020fb36949300a0e1517a4ed78a153b1f1576b6603a466a2f5baa7e8370b05311729e17b7e83566 SHA512 9d1ee73b8e29e1b8b5688c309471cb6053addce351df8deb4e0cb46d15ffc8fe764216c9abd603440b6a60f42379fa03d88e8023ed01502c4e905ebc6a4f393d |
26 |
DIST libsavitar-4.3.0.tar.gz 96154 BLAKE2B 866edadad2ea27002b79e018dc073f53409e5fc3af86941ca3e196ab0c8e7299f945997801126b79776538abe81af3abec5c116dac9eb977c1fac02fa45767b4 SHA512 4accce4a96deddfe148540c3abb3cba391178ffc34b88ea77e07053c36eb2c3d6aa7b040ec386ba5bb2eb9e6d9c371b5c35fae268f953694f6ccd9e6c82223d6 |
27 |
+DIST libsavitar-4.6.1.tar.gz 98202 BLAKE2B 8025d11316fb777a037c01fb9411a6368e5e7a1b64c4a695a114ff94c1a2802d4eaeb6c8512e14db74ddbbffabd2bc98f93f61adfc2cbdc7ef329d30b105bd4b SHA512 49a0f2e98bc26d84b638d6eb44f9fd93811d92ad398f3c85b1abf2cca3172667315b907d30807eb70b497bd652d95cd443c8cc4daa68c8852787ef46fda47cc2 |
28 |
|
29 |
diff --git a/dev-libs/libsavitar/files/libsavitar-4.6.1-remove-packaged-pugixml.patch b/dev-libs/libsavitar/files/libsavitar-4.6.1-remove-packaged-pugixml.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..b1b77469d74 |
32 |
--- /dev/null |
33 |
+++ b/dev-libs/libsavitar/files/libsavitar-4.6.1-remove-packaged-pugixml.patch |
34 |
@@ -0,0 +1,60 @@ |
35 |
+diff -urN libSavitar-4.2.0_old/CMakeLists.txt libSavitar-4.2.0/CMakeLists.txt |
36 |
+--- libSavitar-4.2.0_old/CMakeLists.txt 2019-07-30 09:03:53.000000000 +0300 |
37 |
++++ libSavitar-4.2.0/CMakeLists.txt 2019-08-04 17:23:27.099395645 +0300 |
38 |
+@@ -15,7 +15,7 @@ |
39 |
+ find_package(Threads QUIET) |
40 |
+ endif() |
41 |
+ |
42 |
+-add_subdirectory(pugixml) |
43 |
++find_package(pugixml REQUIRED) |
44 |
+ |
45 |
+ if(BUILD_PYTHON) |
46 |
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) |
47 |
+diff -urN libSavitar-4.2.0_old/src/MeshData.cpp libSavitar-4.2.0/src/MeshData.cpp |
48 |
+--- libSavitar-4.2.0_old/src/MeshData.cpp 2019-07-30 09:03:53.000000000 +0300 |
49 |
++++ libSavitar-4.2.0/src/MeshData.cpp 2019-08-04 17:23:59.891051757 +0300 |
50 |
+@@ -17,7 +17,7 @@ |
51 |
+ */ |
52 |
+ |
53 |
+ #include "MeshData.h" |
54 |
+-#include "../pugixml/src/pugixml.hpp" |
55 |
++#include <pugixml.hpp> |
56 |
+ #include <cstring> |
57 |
+ #include <iostream> |
58 |
+ #include <stdexcept> //For std::runtime_error. |
59 |
+diff -urN libSavitar-4.2.0_old/src/Scene.cpp libSavitar-4.2.0/src/Scene.cpp |
60 |
+--- libSavitar-4.2.0_old/src/Scene.cpp 2019-07-30 09:03:53.000000000 +0300 |
61 |
++++ libSavitar-4.2.0/src/Scene.cpp 2019-08-04 17:24:10.425265944 +0300 |
62 |
+@@ -17,7 +17,7 @@ |
63 |
+ */ |
64 |
+ |
65 |
+ #include "Scene.h" |
66 |
+-#include "../pugixml/src/pugixml.hpp" |
67 |
++#include <pugixml.hpp> |
68 |
+ #include <iostream> |
69 |
+ #include <string> |
70 |
+ using namespace Savitar; |
71 |
+diff -urN libSavitar-4.2.0_old/src/SceneNode.cpp libSavitar-4.2.0/src/SceneNode.cpp |
72 |
+--- libSavitar-4.2.0_old/src/SceneNode.cpp 2019-07-30 09:03:53.000000000 +0300 |
73 |
++++ libSavitar-4.2.0/src/SceneNode.cpp 2019-08-04 17:24:31.617696840 +0300 |
74 |
+@@ -18,7 +18,7 @@ |
75 |
+ |
76 |
+ #include "SceneNode.h" |
77 |
+ #include "Namespace.h" |
78 |
+-#include "../pugixml/src/pugixml.hpp" |
79 |
++#include <pugixml.hpp> |
80 |
+ #include <iostream> |
81 |
+ using namespace Savitar; |
82 |
+ |
83 |
+diff -urN libSavitar-4.2.0_old/src/ThreeMFParser.h libSavitar-4.2.0/src/ThreeMFParser.h |
84 |
+--- libSavitar-4.2.0_old/src/ThreeMFParser.h 2019-07-30 09:03:53.000000000 +0300 |
85 |
++++ libSavitar-4.2.0/src/ThreeMFParser.h 2019-08-04 17:24:53.996151843 +0300 |
86 |
+@@ -21,7 +21,7 @@ |
87 |
+ |
88 |
+ #include "SavitarExport.h" |
89 |
+ #include "SceneNode.h" |
90 |
+-#include "../pugixml/src/pugixml.hpp" |
91 |
++#include <pugixml.hpp> |
92 |
+ |
93 |
+ #include <string> |
94 |
+ namespace Savitar |
95 |
|
96 |
diff --git a/dev-libs/libsavitar/libsavitar-4.6.1.ebuild b/dev-libs/libsavitar/libsavitar-4.6.1.ebuild |
97 |
new file mode 100644 |
98 |
index 00000000000..8c07045e9b5 |
99 |
--- /dev/null |
100 |
+++ b/dev-libs/libsavitar/libsavitar-4.6.1.ebuild |
101 |
@@ -0,0 +1,53 @@ |
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 |
+inherit cmake python-single-r1 |
109 |
+ |
110 |
+MY_PN="libSavitar" |
111 |
+ |
112 |
+DESCRIPTION="C++ implementation of 3mf loading with SIP python bindings" |
113 |
+HOMEPAGE="https://github.com/Ultimaker/libSavitar" |
114 |
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
115 |
+ |
116 |
+LICENSE="LGPL-3" |
117 |
+SLOT="0/3" |
118 |
+KEYWORDS="~amd64 ~x86" |
119 |
+IUSE="+python static-libs" |
120 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
121 |
+ |
122 |
+RDEPEND="${PYTHON_DEPS} |
123 |
+ dev-libs/pugixml |
124 |
+ $(python_gen_cond_dep ' |
125 |
+ dev-python/sip[${PYTHON_MULTI_USEDEP}] |
126 |
+ ')" |
127 |
+DEPEND="${RDEPEND}" |
128 |
+ |
129 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
130 |
+ |
131 |
+PATCHES=( "${FILESDIR}"/${PN}-4.6.1-remove-packaged-pugixml.patch ) |
132 |
+ |
133 |
+pkg_setup() { |
134 |
+ use python && python-single-r1_pkg_setup |
135 |
+} |
136 |
+ |
137 |
+src_prepare() { |
138 |
+ # Find SIP for current python version, not the latest installed |
139 |
+ sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \ |
140 |
+ CMakeLists.txt || die |
141 |
+ sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \ |
142 |
+ cmake/FindSIP.cmake || die |
143 |
+ |
144 |
+ cmake_src_prepare |
145 |
+} |
146 |
+ |
147 |
+src_configure() { |
148 |
+ local mycmakeargs=( |
149 |
+ -DBUILD_PYTHON=$(usex python ON OFF) |
150 |
+ -DBUILD_STATIC=$(usex static-libs ON OFF) |
151 |
+ ) |
152 |
+ |
153 |
+ cmake_src_configure |
154 |
+} |