From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D70BF1382C5 for ; Mon, 30 Nov 2020 18:37:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C1503E0848; Mon, 30 Nov 2020 18:37:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 979ECE0848 for ; Mon, 30 Nov 2020 18:37:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1497A34106F for ; Mon, 30 Nov 2020 18:37:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BBAFE473 for ; Mon, 30 Nov 2020 18:37:51 +0000 (UTC) From: "Dennis Lamm" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Dennis Lamm" Message-ID: <1606761458.cb61546bf6ac1edcbd76420d3c93756f260b0118.expeditioneer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/curaengine/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/curaengine/Manifest media-gfx/curaengine/curaengine-4.8.0.ebuild X-VCS-Directories: media-gfx/curaengine/ X-VCS-Committer: expeditioneer X-VCS-Committer-Name: Dennis Lamm X-VCS-Revision: cb61546bf6ac1edcbd76420d3c93756f260b0118 X-VCS-Branch: master Date: Mon, 30 Nov 2020 18:37:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: babd9756-61e2-401e-b0fe-067e006556f7 X-Archives-Hash: e52e19ed20cc1aa27c8ecbc358b92735 commit: cb61546bf6ac1edcbd76420d3c93756f260b0118 Author: Dennis Lamm gentoo org> AuthorDate: Sun Nov 29 08:46:15 2020 +0000 Commit: Dennis Lamm gentoo org> CommitDate: Mon Nov 30 18:37:38 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb61546b media-gfx/curaengine: bump to 4.8.0 Signed-off-by: Dennis Lamm gentoo.org> Signed-off-by: Dennis Lamm gentoo.org> media-gfx/curaengine/Manifest | 1 + media-gfx/curaengine/curaengine-4.8.0.ebuild | 85 ++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/media-gfx/curaengine/Manifest b/media-gfx/curaengine/Manifest index 31167c77231..ecbad4b97b1 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 00000000000..2f4c30faf72 --- /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 +}