diff options
author | Dennis Lamm <expeditioneer@gentoo.org> | 2020-11-29 09:46:15 +0100 |
---|---|---|
committer | Dennis Lamm <expeditioneer@gentoo.org> | 2020-11-30 19:37:38 +0100 |
commit | cb61546bf6ac1edcbd76420d3c93756f260b0118 (patch) | |
tree | 6c3433b33f696ac989e8c78e89bea804d3440aeb /media-gfx | |
parent | dev-libs/stb: bump to 20200713 (diff) | |
download | gentoo-cb61546bf6ac1edcbd76420d3c93756f260b0118.tar.gz gentoo-cb61546bf6ac1edcbd76420d3c93756f260b0118.tar.bz2 gentoo-cb61546bf6ac1edcbd76420d3c93756f260b0118.zip |
media-gfx/curaengine: bump to 4.8.0
Signed-off-by: Dennis Lamm <expeditoneer@gentoo.org>
Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/curaengine/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/curaengine/curaengine-4.8.0.ebuild | 85 |
2 files changed, 86 insertions, 0 deletions
diff --git a/media-gfx/curaengine/Manifest b/media-gfx/curaengine/Manifest index 31167c77231a..ecbad4b97b1c 100644 --- a/media-gfx/curaengine/Manifest +++ b/media-gfx/curaengine/Manifest @@ -1,2 +1,3 @@ DIST curaengine-4.6.1.tar.gz 1685119 BLAKE2B 352c5b4b98866ebe6f90dc095960d2417ccf9c023334b4006b604da45aed1e3b6066700b08be3727214433fd505de87cad4da8e17d9067571d91dd0ec7660ebe SHA512 8b3a65fb00bebc37acd24a6d4277c1f09849c0318fca00867479d62c0f64b8628064a898128e1ffc5fb99eed2c1d45a310df2f97fde9c37a9ccc311f5ba4d057 DIST curaengine-4.7.0.tar.gz 1684860 BLAKE2B da25da5656eb2c2d9cd9bd1c8ea0f633284a6d300f2b5ab7a916be262d20106d07a17a5c5ac63b854b32e98f616ecadbc05a912146f4f6d396c646ca69637116 SHA512 4c5f2eb70912315595e7f090ba9a34196ecb740eb25b5b2da2decf6485260999e8a87f7c2619c6efab9b46280e9eecf11f7e6bb021359c3b72da9fb900b0c1c3 +DIST curaengine-4.8.0.tar.gz 1690082 BLAKE2B 7c582ad0743a937ad4efa2a224e052383b90632c8f33f666a4139a74954a7243e17107ac39b35c1a5e41df89e303d618e4407d7e9a75efc5d96913aaaf498273 SHA512 be0d12cfe61932bf03dde61df8fb7f31cbd0aef6a44292130a7a67e318891f37db685722ba5d3cf66e88d4ff1de64ac86be5e494b750f8f7ff4b52d7976cb670 diff --git a/media-gfx/curaengine/curaengine-4.8.0.ebuild b/media-gfx/curaengine/curaengine-4.8.0.ebuild new file mode 100644 index 000000000000..2f4c30faf728 --- /dev/null +++ b/media-gfx/curaengine/curaengine-4.8.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake toolchain-funcs + +MY_PN="CuraEngine" + +DESCRIPTION="A 3D model slicing engine for 3D printing" +HOMEPAGE="https://github.com/Ultimaker/CuraEngine" +SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+arcus doc openmp test" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${PYTHON_DEPS} + arcus? ( + ~dev-libs/libarcus-${PV}:* + dev-libs/protobuf:= + ) + dev-libs/clipper + dev-libs/rapidjson + dev-libs/stb" + +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" +BDEPEND="doc? ( app-doc/doxygen )" + +DOCS=( README.md ) +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + rm -r "${S}"/libs || die + + # remove static linking + # respect cflags + sed -i \ + -e "s/-static-libstdc++//g" \ + -e 's/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")//g' \ + -e 's/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE_INIT}")//g' \ + CMakeLists.txt || die + + if use test; then + find "${S}"/tests/arcus "${S}"/tests/integration "${S}"/tests/settings "${S}"/tests/utils \ + -type f -name '*.cpp' | xargs sed -i \ + -e 's <../src/utils/AABB.h> "../../src/utils/AABB.h" g'\ + -e 's <../src/utils/IntPoint.h> "../../src/utils/IntPoint.h" g' \ + -e 's <../src/utils/polygon.h> "../../src/utils/polygon.h" g'\ + -e 's <../src/utils/PolygonConnector.h> "../../src/utils/PolygonConnector.h" g'\ + -e 's <../src/utils/polygonUtils.h> "../../src/utils/polygonUtils.h" g'\ + -e 's <../src/utils/string.h> "../../src/utils/string.h" g' \ + -e 's <../src/utils/SVG.h> "../../src/utils/SVG.h" g' \ + -e 's#include "../src#include "../../src#g'|| die + fi + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test ON OFF) + -DENABLE_ARCUS=$(usex arcus ON OFF) + -DENABLE_MORE_COMPILER_OPTIMIZATION_FLAGS=OFF + -DENABLE_OPENMP=$(usex openmp ON OFF) + -DUSE_SYSTEM_LIBS=ON + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + doxygen || die "generating docs failed" + mv docs/html . || die + find html -type f \(-name '*.md5' -o -name '*.map'\) -delete || die + HTML_DOCS=( html/. ) + fi +} |