diff options
author | 2016-05-18 19:58:10 +0200 | |
---|---|---|
committer | 2016-05-25 13:23:13 +0200 | |
commit | 1bbd1ede77321adda476a4cd90babe148772accc (patch) | |
tree | 8937f08751a83e13833239b595e77fab80e98a67 | |
parent | media-gfx/cura: new version 0.15.04.{4,5_rc5} (legacy) (diff) | |
download | tbc-1bbd1ede77321adda476a4cd90babe148772accc.tar.gz tbc-1bbd1ede77321adda476a4cd90babe148772accc.tar.bz2 tbc-1bbd1ede77321adda476a4cd90babe148772accc.zip |
media-gfx/curaengine: new version 0.15.04.6 (legacy)
-rw-r--r-- | media-gfx/curaengine/curaengine-0.15.04.6.ebuild | 49 |
1 files changed, 49 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 0000000..dcfe1fd --- /dev/null +++ b/media-gfx/curaengine/curaengine-0.15.04.6.ebuild @@ -0,0 +1,49 @@ +# 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 +} + +src_install() { + dobin build/CuraEngine + dodoc README.md +} |