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