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