diff options
author | Matthew Smith <matthew@gentoo.org> | 2022-02-28 19:28:45 +0000 |
---|---|---|
committer | Matthew Smith <matthew@gentoo.org> | 2022-02-28 19:43:11 +0000 |
commit | a1ab04dcca1e16263a5925163a98c1912ad24a52 (patch) | |
tree | 5db5d0a2c48957baf33ad86707678a5cb6cc5586 /media-gfx | |
parent | dev-python/uranium: add 4.13.0 (diff) | |
download | gentoo-a1ab04dcca1e16263a5925163a98c1912ad24a52.tar.gz gentoo-a1ab04dcca1e16263a5925163a98c1912ad24a52.tar.bz2 gentoo-a1ab04dcca1e16263a5925163a98c1912ad24a52.zip |
media-gfx/curaengine: add 4.13.0
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/curaengine/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/curaengine/curaengine-4.13.0.ebuild | 85 |
2 files changed, 86 insertions, 0 deletions
diff --git a/media-gfx/curaengine/Manifest b/media-gfx/curaengine/Manifest index 70897f8fd7f5..a2e814aea9cd 100644 --- a/media-gfx/curaengine/Manifest +++ b/media-gfx/curaengine/Manifest @@ -1,2 +1,3 @@ DIST curaengine-4.12.1.tar.gz 1726565 BLAKE2B be231ec43792e1f27a6c720444c6755f71bbc3dbaea45b714c73f9b5b51753d58dafeef7ad2ed1bc21de1c39fe9f2a325ab8b85d3eb5b7f075a472dac98654b7 SHA512 c0c703ec9c7fb05389806f45174d45dd65bece169e3ad88aa1744091ce3c3c1e1e4f5af32cb55cfa9f1a4a8bffe0a008d5924a6e5d02baed00996c9112fbafef +DIST curaengine-4.13.0.tar.gz 1727539 BLAKE2B e28aab6a4fa6c4fd9eb6b365ecd99d8c49a4e76da9198628e38d2d6aaa13f0120fcbd9fc809520f7b1f117782a09759e0c625b880f3b40e9d5d110b14debb260 SHA512 3d52c67c0968f6caffd9e0b86743f70916705e6f2896466e69a179ce97b6d35f7af33b056e9375abaa445a00438d25e5f782a7e2a92c0805cec0c0527a25426c DIST curaengine-4.9.1.tar.gz 1694141 BLAKE2B 84119a2dd66340bdc3a4bd58384f300fb839aa7c5920de87d070945d3c436ace0f8686cd907a204e5825bdc17809d9f9052e37fb96b37e34a20650ca625d7b1e SHA512 cfa918c6301c9948713306256d74a2a84a1fefbc0f85c7ac0eb182d8363f1eae97aecdcb91c207a2e7e1ab252f63cf4b513734b50d4229da7aa35e095ef88bee diff --git a/media-gfx/curaengine/curaengine-4.13.0.ebuild b/media-gfx/curaengine/curaengine-4.13.0.ebuild new file mode 100644 index 000000000000..5d9281bd5518 --- /dev/null +++ b/media-gfx/curaengine/curaengine-4.13.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +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 +} |