diff options
Diffstat (limited to 'media-gfx/curaengine/curaengine-2.3.1-r2.ebuild')
-rw-r--r-- | media-gfx/curaengine/curaengine-2.3.1-r2.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/media-gfx/curaengine/curaengine-2.3.1-r2.ebuild b/media-gfx/curaengine/curaengine-2.3.1-r2.ebuild new file mode 100644 index 000000000000..caa04ad6c138 --- /dev/null +++ b/media-gfx/curaengine/curaengine-2.3.1-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit cmake-utils + +MY_PN=CuraEngine +MY_PV=${PV/_beta} + +DESCRIPTION="A 3D model slicing engine for 3D printing" +HOMEPAGE="https://github.com/Ultimaker/CuraEngine" +SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +LICENSE="AGPL-3" +SLOT="0" +IUSE="doc test" + +RDEPEND="${PYTHON_DEPS} + dev-libs/libarcus:= + >=dev-libs/protobuf-3" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen + media-gfx/graphviz ) + test? ( dev-util/cppunit )" + +S="${WORKDIR}/${MY_PN}-${MY_PV}" +DOCS=( "README.md" ) +PATCHES=( "${FILESDIR}/${P}-remove-gcodeplannertest.patch" + "${FILESDIR}/${P}-make-stringtest-64bit-safe.patch" + "${FILESDIR}/${P}-fix-stringtest-int-types.patch" ) + +src_configure() { + local mycmakeargs=( "-DBUILD_TESTS=$(usex test ON OFF)" ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_make + if use doc; then + doxygen || die + mv docs/html . || die + find html -name '*.md5' -or -name '*.map' -delete || die + HTML_DOCS=( html/. ) + fi +} |