summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Brewer (Gentoo Key) <tomboy64@sina.cn>2016-04-30 09:56:35 +0200
committerGöktürk Yüksek <gokturk@gentoo.org>2016-08-07 21:34:01 -0400
commit926306e30a97823ca59c5a12d63e67f241ae3f36 (patch)
treec42f08210f3a4c834ec94812edbf17c19c78e497 /media-gfx/curaengine/curaengine-0.15.04.6.ebuild
parentmedia-gfx/cura: new version 0.15.04.5_rc5 (legacy) (diff)
downloadgentoo-926306e30a97823ca59c5a12d63e67f241ae3f36.tar.gz
gentoo-926306e30a97823ca59c5a12d63e67f241ae3f36.tar.bz2
gentoo-926306e30a97823ca59c5a12d63e67f241ae3f36.zip
media-gfx/curaengine: new version 0.15.04.6 (legacy)
based on the original ebuild by _AxS_ Package-Manager: portage-2.2.28
Diffstat (limited to 'media-gfx/curaengine/curaengine-0.15.04.6.ebuild')
-rw-r--r--media-gfx/curaengine/curaengine-0.15.04.6.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/media-gfx/curaengine/curaengine-0.15.04.6.ebuild b/media-gfx/curaengine/curaengine-0.15.04.6.ebuild
new file mode 100644
index 000000000000..7abf5a3b4377
--- /dev/null
+++ b/media-gfx/curaengine/curaengine-0.15.04.6.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+MY_PV=${PV#0.}
+MY_PN=CuraEngine
+
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+
+DESCRIPTION="A 3D model slicing engine for 3D printing"
+HOMEPAGE="https://github.com/Ultimaker/CuraEngine"
+
+LICENSE="AGPL-3"
+SLOT="0"
+IUSE="test"
+
+RDEPEND=""
+DEPEND=""
+
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+PATCHES=( "${FILESDIR}"/${P}-cflags.patch )
+
+src_prepare() {
+ tc-export CXX
+ default
+}
+
+src_test() {
+ pushd tests 2>&- || die
+ einfo "Commencing test ..."
+ local testbin=( "${S}/build/CuraEngine" "-c" "supportAngle=60" "-c" "supportEverywhere=1" )
+ local testmdl="${S}/tests/testModel.stl"
+ ${testbin[*]} "${testmdl}"
+ if [[ $? -eq 0 && -f "${testbin[0]}" && -f "${testmdl}" ]]; then
+ einfo "Test completed successfully."
+ else
+ ewarn "Test failed."
+ fi
+ popd 2>&- || die
+}
+
+src_install() {
+ dobin build/CuraEngine
+ dodoc README.md
+}