tkurbad-overlay/media-gfx/curaengine/curaengine-3.4.1.ebuild

48 lines
954 B
Bash
Raw Normal View History

2018-11-27 17:01:22 +01:00
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils eutils
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 ~x86"
IUSE="doc test"
RDEPEND="${PYTHON_DEPS}
~dev-libs/libarcus-${PV}:*
dev-libs/protobuf"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
DOCS=( README.md )
S="${WORKDIR}/${MY_PN}-${PV}"
src_prepare() {
cmake-utils_src_prepare
epatch "${FILESDIR}/${P}-cmake.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
mv docs/html . || die
find html -name '*.md5' -or -name '*.map' -delete || die
DOCS+=( html )
fi
}