Gentoo Archives: gentoo-commits

From: Dennis Lamm <expeditioneer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/cura/
Date: Sun, 11 Oct 2020 11:26:02
Message-Id: 1602415546.1171f18e35bb4beab4e6372046654ae880c2b905.expeditioneer@gentoo
1 commit: 1171f18e35bb4beab4e6372046654ae880c2b905
2 Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 10:14:10 2020 +0000
4 Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 11:25:46 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1171f18e
7
8 media-gfx/cura-4.7.0: fixed ModuleNotFoundError
9
10 Bug: https://bugs.gentoo.org/726426
11
12 Signed-off-by: Dennis Lamm <expeditoneer <AT> gentoo.org>
13 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
14
15 media-gfx/cura/cura-4.7.0-r1.ebuild | 64 +++++++++++++++++++++++++++++++++++++
16 1 file changed, 64 insertions(+)
17
18 diff --git a/media-gfx/cura/cura-4.7.0-r1.ebuild b/media-gfx/cura/cura-4.7.0-r1.ebuild
19 new file mode 100644
20 index 00000000000..032d2437193
21 --- /dev/null
22 +++ b/media-gfx/cura/cura-4.7.0-r1.ebuild
23 @@ -0,0 +1,64 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +PYTHON_COMPAT=(python3_{6..8})
30 +inherit cmake desktop python-single-r1 xdg
31 +
32 +MY_PN=Cura
33 +
34 +DESCRIPTION="A 3D model slicing application for 3D printing"
35 +HOMEPAGE="https://github.com/Ultimaker/Cura"
36 +SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
37 +
38 +LICENSE="LGPL-3"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm64 ~x86"
41 +IUSE="+usb zeroconf"
42 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
43 +
44 +BDEPEND="sys-devel/gettext"
45 +RDEPEND="${PYTHON_DEPS}
46 + ~dev-libs/libarcus-${PV}:=[python,${PYTHON_SINGLE_USEDEP}]
47 + ~dev-libs/libcharon-${PV}[${PYTHON_SINGLE_USEDEP}]
48 + ~dev-libs/libsavitar-${PV}:=[python,${PYTHON_SINGLE_USEDEP}]
49 + ~dev-python/uranium-${PV}[${PYTHON_SINGLE_USEDEP}]
50 + ~media-gfx/curaengine-${PV}
51 + ~media-gfx/fdm-materials-${PV}
52 + $(python_gen_cond_dep '
53 + dev-python/mypy[${PYTHON_MULTI_USEDEP}]
54 + dev-python/numpy[${PYTHON_MULTI_USEDEP}]
55 + dev-python/PyQt5[${PYTHON_MULTI_USEDEP}]
56 + dev-python/requests[${PYTHON_MULTI_USEDEP}]
57 + dev-python/sentry-sdk[${PYTHON_MULTI_USEDEP}]
58 + sci-libs/Shapely[${PYTHON_MULTI_USEDEP}]
59 + usb? ( dev-python/pyserial[${PYTHON_MULTI_USEDEP}] )
60 + zeroconf? ( dev-python/zeroconf[${PYTHON_MULTI_USEDEP}] )
61 + ')"
62 +DEPEND="${RDEPEND}"
63 +
64 +DOCS=(README.md)
65 +PATCHES=("${FILESDIR}/${PN}-4.6.1-fix-install-paths.patch")
66 +S="${WORKDIR}/${MY_PN}-${PV}"
67 +
68 +src_prepare() {
69 + sed -i -e "s/set(CURA_VERSION \"master\"/set(CURA_VERSION \"${PV}\"/" CMakeLists.txt || die
70 + cmake_src_prepare
71 +}
72 +
73 +src_configure() {
74 + # trimesh not available in portage
75 + local mycmakeargs=(
76 + -DCURA_NO_INSTALL_PLUGINS="AMFReader;Toolbox;TrimeshReader"
77 + -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)"
78 + )
79 + cmake_src_configure
80 +}
81 +
82 +src_install() {
83 + cmake_src_install
84 + doicon icons/*.png
85 + python_fix_shebang "${D}/usr/bin/cura"
86 + python_optimize "${D}${get_libdir}"
87 +}