1 |
commit: 9a0ef3c029aee6faebcf704731cc058cf26cc309 |
2 |
Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 14 05:27:59 2020 +0000 |
4 |
Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 14 18:12:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a0ef3c0 |
7 |
|
8 |
media-gfx/curaengine: bump 4.7.0, remove bundled rapidjson and clipper, also fix failing tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/693176 |
11 |
|
12 |
Closes: https://bugs.gentoo.org/693170 |
13 |
|
14 |
Closes: https://bugs.gentoo.org/732226 |
15 |
|
16 |
Bug: https://bugs.gentoo.org/739692 |
17 |
|
18 |
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> |
19 |
Closes: https://github.com/gentoo/gentoo/pull/16719 |
20 |
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> |
21 |
|
22 |
media-gfx/curaengine/Manifest | 1 + |
23 |
media-gfx/curaengine/curaengine-4.7.0.ebuild | 86 ++++++++++++++++++++++ |
24 |
.../files/curaengine-4.7.0-fix-tests.patch | 13 ++++ |
25 |
media-gfx/curaengine/metadata.xml | 12 +++ |
26 |
4 files changed, 112 insertions(+) |
27 |
|
28 |
diff --git a/media-gfx/curaengine/Manifest b/media-gfx/curaengine/Manifest |
29 |
index 78c5b9f6880..5ad33f8d3c6 100644 |
30 |
--- a/media-gfx/curaengine/Manifest |
31 |
+++ b/media-gfx/curaengine/Manifest |
32 |
@@ -3,3 +3,4 @@ DIST curaengine-3.6.0.tar.gz 1390109 BLAKE2B a0a6b8016bb5fa2f772634a671fc391df45 |
33 |
DIST curaengine-4.2.0.tar.gz 1654657 BLAKE2B c11f77a126e49c1c63550accd42c3616ab647d2575de0f11e64cb2188e7c565a54f3613e296c3f19e8534a7a758162fe29cdd62e8d62d691a7d9c9e6430545ce SHA512 6c3edac5a21068b50a31d3ab37dac58b986e18be2d24711d77cf210da62b521d62dc92a1b4e8865a26e5c394119349f03b3816d19d67ebee670424cc4a7b2500 |
34 |
DIST curaengine-4.3.0.tar.gz 1656780 BLAKE2B 9b93e3f294a8a67c2cd4f2d4462a4047e6860e0c391e7ff550b24c498faa82fd2af4fd044845f00f93fb01d38ca3fa1511bfe65a7456b5a6e0b919821be5ab8f SHA512 60ca0ce586c0cf5f1516f803b2a05a20299ef8193f065acd6e11a0054903189225f9c60be1b536ffe5a9a22652097acd3a4aae2833920a468071b78f213f7572 |
35 |
DIST curaengine-4.6.1.tar.gz 1685119 BLAKE2B 352c5b4b98866ebe6f90dc095960d2417ccf9c023334b4006b604da45aed1e3b6066700b08be3727214433fd505de87cad4da8e17d9067571d91dd0ec7660ebe SHA512 8b3a65fb00bebc37acd24a6d4277c1f09849c0318fca00867479d62c0f64b8628064a898128e1ffc5fb99eed2c1d45a310df2f97fde9c37a9ccc311f5ba4d057 |
36 |
+DIST curaengine-4.7.0.tar.gz 1684860 BLAKE2B da25da5656eb2c2d9cd9bd1c8ea0f633284a6d300f2b5ab7a916be262d20106d07a17a5c5ac63b854b32e98f616ecadbc05a912146f4f6d396c646ca69637116 SHA512 4c5f2eb70912315595e7f090ba9a34196ecb740eb25b5b2da2decf6485260999e8a87f7c2619c6efab9b46280e9eecf11f7e6bb021359c3b72da9fb900b0c1c3 |
37 |
|
38 |
diff --git a/media-gfx/curaengine/curaengine-4.7.0.ebuild b/media-gfx/curaengine/curaengine-4.7.0.ebuild |
39 |
new file mode 100644 |
40 |
index 00000000000..a644aeef81b |
41 |
--- /dev/null |
42 |
+++ b/media-gfx/curaengine/curaengine-4.7.0.ebuild |
43 |
@@ -0,0 +1,86 @@ |
44 |
+# Copyright 1999-2020 Gentoo Authors |
45 |
+# Distributed under the terms of the GNU General Public License v2 |
46 |
+ |
47 |
+EAPI=7 |
48 |
+ |
49 |
+inherit cmake toolchain-funcs |
50 |
+ |
51 |
+MY_PN="CuraEngine" |
52 |
+ |
53 |
+DESCRIPTION="A 3D model slicing engine for 3D printing" |
54 |
+HOMEPAGE="https://github.com/Ultimaker/CuraEngine" |
55 |
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
56 |
+ |
57 |
+LICENSE="AGPL-3" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~amd64 ~x86" |
60 |
+IUSE="+arcus doc openmp test" |
61 |
+RESTRICT="!test? ( test )" |
62 |
+ |
63 |
+RDEPEND=" |
64 |
+ ${PYTHON_DEPS} |
65 |
+ arcus? ( |
66 |
+ ~dev-libs/libarcus-${PV}:* |
67 |
+ dev-libs/protobuf:= |
68 |
+ ) |
69 |
+ dev-libs/clipper |
70 |
+ dev-libs/rapidjson |
71 |
+ dev-libs/stb" |
72 |
+ |
73 |
+DEPEND="${RDEPEND} |
74 |
+ test? ( dev-cpp/gtest )" |
75 |
+BDEPEND="doc? ( app-doc/doxygen )" |
76 |
+ |
77 |
+DOCS=( README.md ) |
78 |
+PATCHES=( "${FILESDIR}/${PN}-4.7.0-fix-tests.patch" ) |
79 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ rm -r "${S}"/libs || die |
83 |
+ |
84 |
+ # remove static linking |
85 |
+ # respect cflags |
86 |
+ sed -i \ |
87 |
+ -e "s/-static-libstdc++//g" \ |
88 |
+ -e 's/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")//g' \ |
89 |
+ -e 's/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE_INIT}")//g' \ |
90 |
+ CMakeLists.txt || die |
91 |
+ |
92 |
+ if use test; then |
93 |
+ find "${S}"/tests/arcus "${S}"/tests/integration "${S}"/tests/settings "${S}"/tests/utils \ |
94 |
+ -type f -name '*.cpp' | xargs sed -i \ |
95 |
+ -e 's <../src/utils/AABB.h> "../../src/utils/AABB.h" g'\ |
96 |
+ -e 's <../src/utils/IntPoint.h> "../../src/utils/IntPoint.h" g' \ |
97 |
+ -e 's <../src/utils/polygon.h> "../../src/utils/polygon.h" g'\ |
98 |
+ -e 's <../src/utils/PolygonConnector.h> "../../src/utils/PolygonConnector.h" g'\ |
99 |
+ -e 's <../src/utils/polygonUtils.h> "../../src/utils/polygonUtils.h" g'\ |
100 |
+ -e 's <../src/utils/string.h> "../../src/utils/string.h" g' \ |
101 |
+ -e 's <../src/utils/SVG.h> "../../src/utils/SVG.h" g' \ |
102 |
+ -e 's#include "../src#include "../../src#g'|| die |
103 |
+ fi |
104 |
+ |
105 |
+ cmake_src_prepare |
106 |
+} |
107 |
+ |
108 |
+src_configure() { |
109 |
+ local mycmakeargs=( |
110 |
+ -DBUILD_TESTS=$(usex test ON OFF) |
111 |
+ -DENABLE_ARCUS=$(usex arcus ON OFF) |
112 |
+ -DENABLE_MORE_COMPILER_OPTIMIZATION_FLAGS=OFF |
113 |
+ -DENABLE_OPENMP=$(usex openmp ON OFF) |
114 |
+ -DUSE_SYSTEM_LIBS=ON |
115 |
+ ) |
116 |
+ |
117 |
+ cmake_src_configure |
118 |
+} |
119 |
+ |
120 |
+src_compile() { |
121 |
+ cmake_src_compile |
122 |
+ |
123 |
+ if use doc; then |
124 |
+ doxygen || die "generating docs failed" |
125 |
+ mv docs/html . || die |
126 |
+ find html -type f \(-name '*.md5' -o -name '*.map'\) -delete || die |
127 |
+ HTML_DOCS=( html/. ) |
128 |
+ fi |
129 |
+} |
130 |
|
131 |
diff --git a/media-gfx/curaengine/files/curaengine-4.7.0-fix-tests.patch b/media-gfx/curaengine/files/curaengine-4.7.0-fix-tests.patch |
132 |
new file mode 100644 |
133 |
index 00000000000..33feab3d394 |
134 |
--- /dev/null |
135 |
+++ b/media-gfx/curaengine/files/curaengine-4.7.0-fix-tests.patch |
136 |
@@ -0,0 +1,13 @@ |
137 |
+Upstream issue: https://github.com/Ultimaker/CuraEngine/issues/1318 |
138 |
+ |
139 |
+--- a/tests/utils/SparseGridTest.cpp |
140 |
++++ b/tests/utils/SparseGridTest.cpp |
141 |
+@@ -1,6 +1,7 @@ |
142 |
+ //Copyright (c) 2019 Ultimaker B.V. |
143 |
+ //CuraEngine is released under the terms of the AGPLv3 or higher. |
144 |
+ |
145 |
++#include <algorithm> |
146 |
+ #include <gtest/gtest.h> |
147 |
+ #include <unordered_set> |
148 |
+ #include <vector> |
149 |
+ |
150 |
|
151 |
diff --git a/media-gfx/curaengine/metadata.xml b/media-gfx/curaengine/metadata.xml |
152 |
index 58e8297dc74..45587a19e8c 100644 |
153 |
--- a/media-gfx/curaengine/metadata.xml |
154 |
+++ b/media-gfx/curaengine/metadata.xml |
155 |
@@ -21,6 +21,18 @@ |
156 |
<email>perlovka@×××××.com</email> |
157 |
<name>Michael Perlov</name> |
158 |
</maintainer> |
159 |
+ <longdescription> |
160 |
+ The CuraEngine is a C++ console application for 3D printing GCode generation. |
161 |
+ It has been made as a better and faster alternative to the old Skeinforge engine. |
162 |
+ |
163 |
+ This is just a console application for GCode generation. |
164 |
+ For a full graphical application look at Cura which is the graphical frontend for CuraEngine. |
165 |
+ |
166 |
+ The CuraEngine can be used seperately or in other applications. Feel free to add it to your application. |
167 |
+ </longdescription> |
168 |
+ <use> |
169 |
+ <flag name="arcus">Build with support for communication library between internal components for Ultimaker software</flag> |
170 |
+ </use> |
171 |
<slots> |
172 |
<subslots>soname major version number</subslots> |
173 |
</slots> |