You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/curaengine/curaengine-2.1.0_beta.ebuild

43 lines
890 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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 )"
S="${WORKDIR}/${MY_PN}-${MY_PV}"
DOCS=( README.md )
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
}