1 |
commit: 10bc45c1b6d886e2a902e8d4ce62061106bcab0b |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 5 11:33:26 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 5 11:53:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10bc45c1 |
7 |
|
8 |
media-gfx/curaengine: add 4.13.1 |
9 |
|
10 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
11 |
|
12 |
media-gfx/curaengine/Manifest | 1 + |
13 |
media-gfx/curaengine/curaengine-4.13.1.ebuild | 85 +++++++++++++++++++++++++++ |
14 |
2 files changed, 86 insertions(+) |
15 |
|
16 |
diff --git a/media-gfx/curaengine/Manifest b/media-gfx/curaengine/Manifest |
17 |
index a2e814aea9cd..7f1608bc6906 100644 |
18 |
--- a/media-gfx/curaengine/Manifest |
19 |
+++ b/media-gfx/curaengine/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST curaengine-4.12.1.tar.gz 1726565 BLAKE2B be231ec43792e1f27a6c720444c6755f71bbc3dbaea45b714c73f9b5b51753d58dafeef7ad2ed1bc21de1c39fe9f2a325ab8b85d3eb5b7f075a472dac98654b7 SHA512 c0c703ec9c7fb05389806f45174d45dd65bece169e3ad88aa1744091ce3c3c1e1e4f5af32cb55cfa9f1a4a8bffe0a008d5924a6e5d02baed00996c9112fbafef |
22 |
DIST curaengine-4.13.0.tar.gz 1727539 BLAKE2B e28aab6a4fa6c4fd9eb6b365ecd99d8c49a4e76da9198628e38d2d6aaa13f0120fcbd9fc809520f7b1f117782a09759e0c625b880f3b40e9d5d110b14debb260 SHA512 3d52c67c0968f6caffd9e0b86743f70916705e6f2896466e69a179ce97b6d35f7af33b056e9375abaa445a00438d25e5f782a7e2a92c0805cec0c0527a25426c |
23 |
+DIST curaengine-4.13.1.tar.gz 1727935 BLAKE2B d306f990b86e6120705b36eba6f3363adc67cf8c93c66c2da506c1ee461a5a6bdd27a4e04880daeb6cebab3ecc736d9a52eec27bf17aa9f032237a4c8ee1d2a3 SHA512 224379a40e26ae0026a3849d582353e49edf99520401e1fef56c9504638c68c62cfe394dab0eb40e4a447bfe0bfa506a880512e84fd6057a839b6384087c46d0 |
24 |
DIST curaengine-4.9.1.tar.gz 1694141 BLAKE2B 84119a2dd66340bdc3a4bd58384f300fb839aa7c5920de87d070945d3c436ace0f8686cd907a204e5825bdc17809d9f9052e37fb96b37e34a20650ca625d7b1e SHA512 cfa918c6301c9948713306256d74a2a84a1fefbc0f85c7ac0eb182d8363f1eae97aecdcb91c207a2e7e1ab252f63cf4b513734b50d4229da7aa35e095ef88bee |
25 |
|
26 |
diff --git a/media-gfx/curaengine/curaengine-4.13.1.ebuild b/media-gfx/curaengine/curaengine-4.13.1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..5d9281bd5518 |
29 |
--- /dev/null |
30 |
+++ b/media-gfx/curaengine/curaengine-4.13.1.ebuild |
31 |
@@ -0,0 +1,85 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit cmake |
38 |
+ |
39 |
+MY_PN="CuraEngine" |
40 |
+ |
41 |
+DESCRIPTION="A 3D model slicing engine for 3D printing" |
42 |
+HOMEPAGE="https://github.com/Ultimaker/CuraEngine" |
43 |
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="AGPL-3" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
48 |
+IUSE="+arcus doc openmp test" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ ${PYTHON_DEPS} |
53 |
+ arcus? ( |
54 |
+ ~dev-libs/libarcus-${PV}:* |
55 |
+ dev-libs/protobuf:= |
56 |
+ ) |
57 |
+ dev-libs/clipper |
58 |
+ dev-libs/rapidjson |
59 |
+ dev-libs/stb" |
60 |
+ |
61 |
+DEPEND="${RDEPEND} |
62 |
+ test? ( dev-cpp/gtest )" |
63 |
+BDEPEND="doc? ( app-doc/doxygen )" |
64 |
+ |
65 |
+DOCS=( README.md ) |
66 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ rm -r "${S}"/libs || die |
70 |
+ |
71 |
+ # remove static linking |
72 |
+ # respect cflags |
73 |
+ sed -i \ |
74 |
+ -e "s/-static-libstdc++//g" \ |
75 |
+ -e 's/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")//g' \ |
76 |
+ -e 's/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE_INIT}")//g' \ |
77 |
+ CMakeLists.txt || die |
78 |
+ |
79 |
+ if use test; then |
80 |
+ find "${S}"/tests/arcus "${S}"/tests/integration "${S}"/tests/settings "${S}"/tests/utils \ |
81 |
+ -type f -name '*.cpp' | xargs sed -i \ |
82 |
+ -e 's <../src/utils/AABB.h> "../../src/utils/AABB.h" g'\ |
83 |
+ -e 's <../src/utils/IntPoint.h> "../../src/utils/IntPoint.h" g' \ |
84 |
+ -e 's <../src/utils/polygon.h> "../../src/utils/polygon.h" g'\ |
85 |
+ -e 's <../src/utils/PolygonConnector.h> "../../src/utils/PolygonConnector.h" g'\ |
86 |
+ -e 's <../src/utils/polygonUtils.h> "../../src/utils/polygonUtils.h" g'\ |
87 |
+ -e 's <../src/utils/string.h> "../../src/utils/string.h" g' \ |
88 |
+ -e 's <../src/utils/SVG.h> "../../src/utils/SVG.h" g' \ |
89 |
+ -e 's#include "../src#include "../../src#g'|| die |
90 |
+ fi |
91 |
+ |
92 |
+ cmake_src_prepare |
93 |
+} |
94 |
+ |
95 |
+src_configure() { |
96 |
+ local mycmakeargs=( |
97 |
+ -DBUILD_TESTS=$(usex test ON OFF) |
98 |
+ -DENABLE_ARCUS=$(usex arcus ON OFF) |
99 |
+ -DENABLE_MORE_COMPILER_OPTIMIZATION_FLAGS=OFF |
100 |
+ -DENABLE_OPENMP=$(usex openmp ON OFF) |
101 |
+ -DUSE_SYSTEM_LIBS=ON |
102 |
+ ) |
103 |
+ |
104 |
+ cmake_src_configure |
105 |
+} |
106 |
+ |
107 |
+src_compile() { |
108 |
+ cmake_src_compile |
109 |
+ |
110 |
+ if use doc; then |
111 |
+ doxygen || die "generating docs failed" |
112 |
+ mv docs/html . || die |
113 |
+ find html -type f '(' -name '*.md5' -o -name '*.map' ')' -delete || die |
114 |
+ HTML_DOCS=( html/. ) |
115 |
+ fi |
116 |
+} |