1 |
commit: 36b9de35119da3e030f403f92e645c6d05615cf4 |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 28 19:15:27 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 28 19:43:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36b9de35 |
7 |
|
8 |
dev-libs/libsavitar: add 4.13.0 |
9 |
|
10 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
11 |
|
12 |
dev-libs/libsavitar/Manifest | 1 + |
13 |
dev-libs/libsavitar/libsavitar-4.13.0.ebuild | 76 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 77 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libsavitar/Manifest b/dev-libs/libsavitar/Manifest |
17 |
index 5552ae1dd08e..6555c1203b66 100644 |
18 |
--- a/dev-libs/libsavitar/Manifest |
19 |
+++ b/dev-libs/libsavitar/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST libsavitar-4.12.1.tar.gz 100730 BLAKE2B cb9dd3ed6802e88235769f70092dbd50113d107b3d2ec17851120338ad6b6ee809c1243f406ee0c96358e5e618d883640e2c3ff9c7f3b41fa6e3a4993939c044 SHA512 c848730cca44b942cd0aba343880a68b23f1bfe95b3348cf1d9d490d9a99be3db9d1940ae473a74ad695823404fab86b728327783c8cc3cfb04ebff8cc6a1b3c |
22 |
+DIST libsavitar-4.13.0.tar.gz 100723 BLAKE2B d631c572e20fcf92cb2053959fad7c806b18981eaad7a0ad1efb52870a7f5874459d4012a7583be8bcdd7cbfad863dea9c4f8c13579269db3ea3a3cf92383b4f SHA512 a446131c0bbcc34e55c093032af823b9750797f06297bea9fd4d64838e793811e71679a1f6ae99be9fc9382a23e8763140147c7a6eea0a310f6f2d40b53be3bf |
23 |
DIST libsavitar-4.9.1.tar.gz 100496 BLAKE2B 7700f110522298905c1e4cf42529e83c06c337ac826007db2fca8abf462abcb8dd9245d2d81773ba3e6663d9afa093685bf955a1cc7e27d48fc904913e56d62f SHA512 2b291a17603922a4a06292282392015cf381a813b5f9a374e8cb35da6c0701ead72cbf76f17e763793225885a4209b49e73114f462b40d6999f95db6de887a44 |
24 |
|
25 |
diff --git a/dev-libs/libsavitar/libsavitar-4.13.0.ebuild b/dev-libs/libsavitar/libsavitar-4.13.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..6d2bdda023f0 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/libsavitar/libsavitar-4.13.0.ebuild |
30 |
@@ -0,0 +1,76 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+ |
38 |
+inherit cmake python-single-r1 |
39 |
+ |
40 |
+MY_PN="libSavitar" |
41 |
+ |
42 |
+DESCRIPTION="C++ implementation of 3mf loading with SIP python bindings" |
43 |
+HOMEPAGE="https://github.com/Ultimaker/libSavitar" |
44 |
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="LGPL-3" |
47 |
+SLOT="0/3" |
48 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
49 |
+ |
50 |
+IUSE="+python static-libs test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
53 |
+ |
54 |
+RDEPEND="${PYTHON_DEPS} |
55 |
+ dev-libs/pugixml |
56 |
+ $(python_gen_cond_dep ' |
57 |
+ <dev-python/sip-5[${PYTHON_USEDEP}] |
58 |
+ ')" |
59 |
+ |
60 |
+DEPEND="${RDEPEND} |
61 |
+ test? ( |
62 |
+ dev-cpp/gtest |
63 |
+ dev-cpp/tbb |
64 |
+ )" |
65 |
+ |
66 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
67 |
+BUILD_DIR="${S}/build" |
68 |
+ |
69 |
+PATCHES=( "${FILESDIR}/${PN}-4.7.0-use-system-pugixml.patch" ) |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ use python && python-single-r1_pkg_setup |
73 |
+} |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ # remove bundled pugixml |
77 |
+ rm -r "${S}"/pugixml || die |
78 |
+ |
79 |
+ find "${S}"/src -type f -name '*.cpp' -o -name '*.h' | xargs sed -i \ |
80 |
+ -e 's "../pugixml/src/pugixml.hpp" <pugixml.hpp> g' || die |
81 |
+ |
82 |
+ if use test; then |
83 |
+ find "${S}"/tests -type f -name '*.cpp' -o -name '*.h' | xargs sed -i \ |
84 |
+ -e 's "../pugixml/src/pugixml.hpp" <pugixml.hpp> g' || die |
85 |
+ fi |
86 |
+ |
87 |
+ # find SIP for current python version, not the latest installed |
88 |
+ sed -i -e "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \ |
89 |
+ CMakeLists.txt cmake/FindSIP.cmake || die |
90 |
+ |
91 |
+ cmake_src_prepare |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ local mycmakeargs=( |
96 |
+ -DBUILD_PYTHON=$(usex python ON OFF) |
97 |
+ -DBUILD_STATIC=$(usex static-libs ON OFF) |
98 |
+ -DBUILD_TESTS=$(usex test ON OFF) |
99 |
+ ) |
100 |
+ |
101 |
+ cmake_src_configure |
102 |
+} |
103 |
+ |
104 |
+src_test() { |
105 |
+ cmake_src_test |
106 |
+} |