Working curaengine

This commit is contained in:
layman 2018-11-27 17:01:22 +01:00
parent 0e46f98bb0
commit e9002e635e
3 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,3 @@
AUX curaengine-3.4.1-cmake.patch 576 BLAKE2B fb92f33b974c1ace8625bd497d71324771d8927643fcb29aab814b5839e82d748039301982ba87bddf1d5f4bc4857dec4211a7b75ae13f3ec0adf589d2671cc9 SHA512 52e2e425782f7b06bc7e361356d2ff5acf0a2d5279173776b38a807e37bf53357c0416697504143a7e84e282cf0be304e943710dfc5bd2911542fbb302384187
DIST curaengine-3.4.1.tar.gz 949312 BLAKE2B 4902575c40002ab49e3ef13c94c8531b6975ff62e58012dc48744e2d27e9d1767e8f7768250179a374ed24da5a5e2085e9c194068ad6ffb98fff0595a314f7b0 SHA512 51c75e299ef7728101a4c61aa033c9b07112b0955d2ec72ba6173684513ed3c503a744fab487efe2c19da01eb97bd1297b5b8724b4f767639c8e82eefcdd01be
EBUILD curaengine-3.4.1.ebuild 954 BLAKE2B 8a35fb6db1ebf67873d739f19cc870a1edf988cdf1157417deb5099938767b1f052d1e67d5edc2a196ab6daf455c2b242287d943b0d0aec2d1c6a99190d702c4 SHA512 2b21788e3c9235801cb23c811d6bd2b18aaa48398c42c03348cf67c08b33386b85539528f5f298e31d873a219d438485ceaaf82c944fe740d61ba4caf1d2b9b3

View File

@ -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 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
}

View File

@ -0,0 +1,14 @@
diff -Naur CuraEngine-3.4.1-old/CMakeLists.txt CuraEngine-3.4.1/CMakeLists.txt
--- CuraEngine-3.4.1-old/CMakeLists.txt 2018-07-09 10:55:15.000000000 +0200
+++ CuraEngine-3.4.1/CMakeLists.txt 2018-07-31 14:33:50.654251779 +0200
@@ -252,10 +252,6 @@
endif()
-add_custom_command(TARGET CuraEngine POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy_directory
- ${CMAKE_SOURCE_DIR}/resources $<TARGET_FILE_DIR:CuraEngine>)
-
# Installing CuraEngine.
include(GNUInstallDirs)
install(TARGETS CuraEngine DESTINATION ${CMAKE_INSTALL_BINDIR})