From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7A096138359 for ; Sun, 11 Oct 2020 11:26:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C30CDE09C6; Sun, 11 Oct 2020 11:26:01 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AA321E0BE3 for ; Sun, 11 Oct 2020 11:26:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 11DB5335D65 for ; Sun, 11 Oct 2020 11:26:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86B6C332 for ; Sun, 11 Oct 2020 11:25:58 +0000 (UTC) From: "Dennis Lamm" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Dennis Lamm" Message-ID: <1602415546.1171f18e35bb4beab4e6372046654ae880c2b905.expeditioneer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/cura/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/cura/cura-4.7.0-r1.ebuild X-VCS-Directories: media-gfx/cura/ X-VCS-Committer: expeditioneer X-VCS-Committer-Name: Dennis Lamm X-VCS-Revision: 1171f18e35bb4beab4e6372046654ae880c2b905 X-VCS-Branch: master Date: Sun, 11 Oct 2020 11:25:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8dd9b522-3481-4188-9699-1896bb057646 X-Archives-Hash: 1d21151f60bebc1ae804cd4c185df3f6 commit: 1171f18e35bb4beab4e6372046654ae880c2b905 Author: Dennis Lamm gentoo org> AuthorDate: Sun Oct 11 10:14:10 2020 +0000 Commit: Dennis Lamm gentoo org> CommitDate: Sun Oct 11 11:25:46 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1171f18e media-gfx/cura-4.7.0: fixed ModuleNotFoundError Bug: https://bugs.gentoo.org/726426 Signed-off-by: Dennis Lamm gentoo.org> Signed-off-by: Dennis Lamm gentoo.org> media-gfx/cura/cura-4.7.0-r1.ebuild | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/media-gfx/cura/cura-4.7.0-r1.ebuild b/media-gfx/cura/cura-4.7.0-r1.ebuild new file mode 100644 index 00000000000..032d2437193 --- /dev/null +++ b/media-gfx/cura/cura-4.7.0-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=(python3_{6..8}) +inherit cmake desktop python-single-r1 xdg + +MY_PN=Cura + +DESCRIPTION="A 3D model slicing application for 3D printing" +HOMEPAGE="https://github.com/Ultimaker/Cura" +SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+usb zeroconf" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND="sys-devel/gettext" +RDEPEND="${PYTHON_DEPS} + ~dev-libs/libarcus-${PV}:=[python,${PYTHON_SINGLE_USEDEP}] + ~dev-libs/libcharon-${PV}[${PYTHON_SINGLE_USEDEP}] + ~dev-libs/libsavitar-${PV}:=[python,${PYTHON_SINGLE_USEDEP}] + ~dev-python/uranium-${PV}[${PYTHON_SINGLE_USEDEP}] + ~media-gfx/curaengine-${PV} + ~media-gfx/fdm-materials-${PV} + $(python_gen_cond_dep ' + dev-python/mypy[${PYTHON_MULTI_USEDEP}] + dev-python/numpy[${PYTHON_MULTI_USEDEP}] + dev-python/PyQt5[${PYTHON_MULTI_USEDEP}] + dev-python/requests[${PYTHON_MULTI_USEDEP}] + dev-python/sentry-sdk[${PYTHON_MULTI_USEDEP}] + sci-libs/Shapely[${PYTHON_MULTI_USEDEP}] + usb? ( dev-python/pyserial[${PYTHON_MULTI_USEDEP}] ) + zeroconf? ( dev-python/zeroconf[${PYTHON_MULTI_USEDEP}] ) + ')" +DEPEND="${RDEPEND}" + +DOCS=(README.md) +PATCHES=("${FILESDIR}/${PN}-4.6.1-fix-install-paths.patch") +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + sed -i -e "s/set(CURA_VERSION \"master\"/set(CURA_VERSION \"${PV}\"/" CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + # trimesh not available in portage + local mycmakeargs=( + -DCURA_NO_INSTALL_PLUGINS="AMFReader;Toolbox;TrimeshReader" + -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + doicon icons/*.png + python_fix_shebang "${D}/usr/bin/cura" + python_optimize "${D}${get_libdir}" +}