diff options
author | Michael Perlov <perlovka@gmail.com> | 2019-08-04 19:10:21 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2019-08-25 20:59:07 +0300 |
commit | 2a990297c78893b117a18a85dec0be4152d6bf0e (patch) | |
tree | e91f157fb53cbd64d7c3c1310c4de1d30ecfacf2 /media-gfx/curaengine | |
parent | media-gfx/fdm-materials: version bump to 4.2.0 (diff) | |
download | gentoo-2a990297c78893b117a18a85dec0be4152d6bf0e.tar.gz gentoo-2a990297c78893b117a18a85dec0be4152d6bf0e.tar.bz2 gentoo-2a990297c78893b117a18a85dec0be4152d6bf0e.zip |
media-gfx/curaengine: version bump to 4.2.0
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Michael Perlov <perlovka@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-gfx/curaengine')
-rw-r--r-- | media-gfx/curaengine/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/curaengine/curaengine-4.2.0.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/media-gfx/curaengine/Manifest b/media-gfx/curaengine/Manifest index e10e9a2fca4e..f2f0335a82d9 100644 --- a/media-gfx/curaengine/Manifest +++ b/media-gfx/curaengine/Manifest @@ -1,2 +1,3 @@ DIST curaengine-3.4.1.tar.gz 949312 BLAKE2B 4902575c40002ab49e3ef13c94c8531b6975ff62e58012dc48744e2d27e9d1767e8f7768250179a374ed24da5a5e2085e9c194068ad6ffb98fff0595a314f7b0 SHA512 51c75e299ef7728101a4c61aa033c9b07112b0955d2ec72ba6173684513ed3c503a744fab487efe2c19da01eb97bd1297b5b8724b4f767639c8e82eefcdd01be DIST curaengine-3.6.0.tar.gz 1390109 BLAKE2B a0a6b8016bb5fa2f772634a671fc391df45875fc36cdf100f00ce34b9d5495f32986c473b1ba4c184cb77e50a64e2648c5d4f31053790182e657b0c981e1412c SHA512 340dad4c697fb0d7b633091715a904ae7df8973626e217ae2528d0121723c07a6cf0bbc740b9ad9980f3b288fa690c9c3ee43d90914264855dace007bbb334c8 +DIST curaengine-4.2.0.tar.gz 1654657 BLAKE2B c11f77a126e49c1c63550accd42c3616ab647d2575de0f11e64cb2188e7c565a54f3613e296c3f19e8534a7a758162fe29cdd62e8d62d691a7d9c9e6430545ce SHA512 6c3edac5a21068b50a31d3ab37dac58b986e18be2d24711d77cf210da62b521d62dc92a1b4e8865a26e5c394119349f03b3816d19d67ebee670424cc4a7b2500 diff --git a/media-gfx/curaengine/curaengine-4.2.0.ebuild b/media-gfx/curaengine/curaengine-4.2.0.ebuild new file mode 100644 index 000000000000..30ee0ee8564f --- /dev/null +++ b/media-gfx/curaengine/curaengine-4.2.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils toolchain-funcs + +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" + +BDEPEND="|| ( <sys-devel/gcc-9 <sys-devel/clang-8 ) + doc? ( app-doc/doxygen )" +RDEPEND="${PYTHON_DEPS} + ~dev-libs/libarcus-${PV}:* + dev-libs/protobuf + dev-libs/stb" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) + +S="${WORKDIR}/${MY_PN}-${PV}" + +pkg_pretend() { + if [[ $(tc-getCC) == clang ]] && [[ $(clang-major-version) -ge 8 ]]; then + eerror "Compilation with sys-devel/clang-8 or newer is not supported" + eerror "See https://github.com/Ultimaker/CuraEngine/issues/984 for more information" + eerror "" + die "Incompatible clang version found" + elif [[ $(gcc-major-version) -ge 9 ]]; then + eerror "Compilation with sys-devel/gcc-9 or newer is not supported" + eerror "See https://github.com/Ultimaker/CuraEngine/issues/984 for more information" + eerror "" + die "Incompatible gcc version found" + fi +} + +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 +} |