Gentoo Archives: gentoo-commits

From: Matthew Smith <matthew@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/cura/
Date: Mon, 28 Feb 2022 19:44:02
Message-Id: 1646077399.0baf298926214c7b14f47b6fd34c45ea0d5077d6.matthew@gentoo
1 commit: 0baf298926214c7b14f47b6fd34c45ea0d5077d6
2 Author: Matthew Smith <matthew <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 28 19:41:20 2022 +0000
4 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 28 19:43:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0baf2989
7
8 media-gfx/cura: add 4.13.0
9
10 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
11
12 media-gfx/cura/Manifest | 1 +
13 media-gfx/cura/cura-4.13.0.ebuild | 86 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 87 insertions(+)
15
16 diff --git a/media-gfx/cura/Manifest b/media-gfx/cura/Manifest
17 index 66fb25368e66..7ed2fd162fb3 100644
18 --- a/media-gfx/cura/Manifest
19 +++ b/media-gfx/cura/Manifest
20 @@ -1,2 +1,3 @@
21 DIST cura-4.12.1.tar.gz 50021408 BLAKE2B 114bbe0cc022e33125486228db2eeaeacd9f4abeac8e65f3ed70231e05f4429062ce1cd49e1649959beb827b7a2d245f61c106529a18bd0cebbd0e8b9b8f883f SHA512 397048e1ed93d2e3ec326a3b0564db2b6ee2b239843346e2dd44470b11b5aea86f3f519534270789e020261c87a0100bf3bba39ddbd3a1d8be0e38e68fd7e0c0
22 +DIST cura-4.13.0.tar.gz 42339276 BLAKE2B 05e747b8e84ecf64bdc1ad7662eae7b5e8a739b7c1bbafdd3ae081e790dafbcd98209eb90f45996e93115ea8b7a38764be957091dd358c502e7aa71cb61fe6c7 SHA512 46f13cde12735d64dad2c533c7688612ebc1c2c8b78d71ced8cfd7d7abd80a53c09105bb16f64ae92cddf345fe44f83800d4448007fe5c2938c652f58354747b
23 DIST cura-4.9.1.tar.gz 47870392 BLAKE2B 2471c8461f73ad2343f4c3315994c5f63781ae1e49cb4699cd66e7e77c25a93916931fbaa6598c4144707dbc7778c902dad3a25839c0523aaf51ed39aacd2463 SHA512 436b8e33514de67d6d680fe59ab9599a75a86caa7e63fbcd05297b12a435483ec0c9ca90557fe23f25590a24e533294915fc18a665fd5cdb77fcc3a05a9076bf
24
25 diff --git a/media-gfx/cura/cura-4.13.0.ebuild b/media-gfx/cura/cura-4.13.0.ebuild
26 new file mode 100644
27 index 000000000000..805c67fdd48c
28 --- /dev/null
29 +++ b/media-gfx/cura/cura-4.13.0.ebuild
30 @@ -0,0 +1,86 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit cmake desktop python-single-r1 xdg
39 +
40 +# Never got tagged as 4.13 proper.
41 +PYNEST2D_PV=4.13_beta
42 +
43 +DESCRIPTION="A 3D model slicing application for 3D printing"
44 +HOMEPAGE="https://github.com/Ultimaker/Cura"
45 +SRC_URI="https://github.com/Ultimaker/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="LGPL-3"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm64 ~x86"
50 +IUSE="debug test +usb zeroconf"
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +RESTRICT="!test? ( test )"
54 +
55 +BDEPEND="${PYTHON_DEPS}
56 + sys-devel/gettext
57 + $(python_gen_cond_dep '
58 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )
59 + ')
60 +"
61 +RDEPEND="${PYTHON_DEPS}
62 + ~dev-libs/libarcus-${PV}:=[python,${PYTHON_SINGLE_USEDEP}]
63 + ~dev-libs/libcharon-${PV}[${PYTHON_SINGLE_USEDEP}]
64 + ~dev-libs/libsavitar-${PV}:=[python,${PYTHON_SINGLE_USEDEP}]
65 + ~dev-python/pynest2d-${PYNEST2D_PV}[${PYTHON_SINGLE_USEDEP}]
66 + ~dev-python/uranium-${PV}[${PYTHON_SINGLE_USEDEP}]
67 + ~media-gfx/curaengine-${PV}
68 + ~media-gfx/fdm-materials-${PV}
69 + dev-qt/qtquickcontrols[widgets]
70 + $(python_gen_cond_dep '
71 + dev-python/importlib_metadata[${PYTHON_USEDEP}]
72 + dev-python/keyring[${PYTHON_USEDEP}]
73 + dev-python/mypy[${PYTHON_USEDEP}]
74 + dev-python/numpy[${PYTHON_USEDEP}]
75 + dev-python/PyQt5[-debug,${PYTHON_USEDEP}]
76 + dev-python/PyQt5-sip[${PYTHON_USEDEP}]
77 + dev-python/requests[${PYTHON_USEDEP}]
78 + dev-python/sentry-sdk[${PYTHON_USEDEP}]
79 + dev-python/trimesh[${PYTHON_USEDEP}]
80 + sci-libs/shapely[${PYTHON_USEDEP}]
81 + usb? ( dev-python/pyserial[${PYTHON_USEDEP}] )
82 + zeroconf? ( dev-python/zeroconf[${PYTHON_USEDEP}] )
83 + ')"
84 +DEPEND="${RDEPEND}"
85 +
86 +PATCHES=(
87 + "${FILESDIR}"/${PN}-4.12.1-code-style-test.patch
88 +)
89 +
90 +DOCS=( README.md )
91 +S="${WORKDIR}"/Cura-${PV}
92 +
93 +src_prepare() {
94 + sed -i -e "s:lib\${LIB_SUFFIX}/python\${Python3_VERSION_MAJOR}.\${Python3_VERSION_MINOR}/site-packages:$(python_get_sitedir):g" CMakeLists.txt || die
95 +
96 + # Remove failing test. Bug #693172.
97 + rm -r plugins/VersionUpgrade/VersionUpgrade44to45/tests || die
98 +
99 + cmake_src_prepare
100 +}
101 +
102 +src_configure() {
103 + local mycmakeargs=(
104 + -DCURA_BUILDTYPE="ebuild"
105 + -DCURA_VERSION=${PV}
106 + -DCURA_DEBUGMODE=$(usex debug)
107 + )
108 + cmake_src_configure
109 +}
110 +
111 +src_install() {
112 + cmake_src_install
113 + doicon icons/*.png
114 + python_fix_shebang "${D}/usr/bin/cura"
115 + python_optimize "${D}${get_libdir}"
116 +}