mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
media-gfx/cura: treeclean
Closes: https://bugs.gentoo.org/896982 Closes: https://bugs.gentoo.org/905769 Closes: https://bugs.gentoo.org/864109 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST cura-4.13.1.tar.gz 42339030 BLAKE2B e5c10ff03e42c0f88a2e7d827bf08f45c57142ca7b1dda6c00ccfbf0fd486dd366db23f00990ac5a021ecbfe038b2ca0247df8ea5130f2ee1efb766efc6f152c SHA512 6483fd6312bd2181cc812bce78aadc7e8532ecf292f09c75ce5e7870f7efddd63e84315ab40eb73c775b15c2ed2ce7fc804fcbefb73b3d8aaac77d8b22f0cbd0
|
||||
@@ -1,89 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..10} )
|
||||
|
||||
inherit cmake desktop python-single-r1 xdg
|
||||
|
||||
FDM_MATERIALS_PV=4.13.0
|
||||
LIBCHARON_PV=4.13.0
|
||||
LIBSAVITAR_PV=4.13.0
|
||||
PYNEST2D_PV=4.13_beta # never got tagged as 4.13.0 proper
|
||||
URANIUM_PV=4.13.0 # 4.13.1 is identical and so is not packaged in ::gentoo
|
||||
|
||||
DESCRIPTION="A 3D model slicing application for 3D printing"
|
||||
HOMEPAGE="https://github.com/Ultimaker/Cura"
|
||||
SRC_URI="https://github.com/Ultimaker/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ~x86"
|
||||
IUSE="debug test +usb zeroconf"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="${PYTHON_DEPS}
|
||||
sys-devel/gettext
|
||||
$(python_gen_cond_dep '
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||||
')
|
||||
"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
~dev-libs/libarcus-${PV}:=[python,${PYTHON_SINGLE_USEDEP}]
|
||||
~dev-libs/libcharon-${LIBCHARON_PV}[${PYTHON_SINGLE_USEDEP}]
|
||||
~dev-libs/libsavitar-${LIBSAVITAR_PV}:=[python,${PYTHON_SINGLE_USEDEP}]
|
||||
~dev-python/pynest2d-${PYNEST2D_PV}[${PYTHON_SINGLE_USEDEP}]
|
||||
~dev-python/uranium-${URANIUM_PV}[${PYTHON_SINGLE_USEDEP}]
|
||||
~media-gfx/curaengine-${PV}
|
||||
~media-gfx/fdm-materials-${FDM_MATERIALS_PV}
|
||||
dev-qt/qtquickcontrols[widgets]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/importlib-metadata[${PYTHON_USEDEP}]
|
||||
dev-python/keyring[${PYTHON_USEDEP}]
|
||||
dev-python/mypy[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/PyQt5[-debug,${PYTHON_USEDEP}]
|
||||
dev-python/PyQt5-sip[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/sentry-sdk[${PYTHON_USEDEP}]
|
||||
dev-python/shapely[${PYTHON_USEDEP}]
|
||||
dev-python/trimesh[${PYTHON_USEDEP}]
|
||||
usb? ( dev-python/pyserial[${PYTHON_USEDEP}] )
|
||||
zeroconf? ( dev-python/zeroconf[${PYTHON_USEDEP}] )
|
||||
')"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.12.1-code-style-test.patch
|
||||
)
|
||||
|
||||
DOCS=( README.md )
|
||||
S="${WORKDIR}"/Cura-${PV}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s:lib\${LIB_SUFFIX}/python\${Python3_VERSION_MAJOR}.\${Python3_VERSION_MINOR}/site-packages:$(python_get_sitedir):g" CMakeLists.txt || die
|
||||
|
||||
# Remove failing test. Bug #693172.
|
||||
rm -r plugins/VersionUpgrade/VersionUpgrade44to45/tests || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCURA_BUILDTYPE="ebuild"
|
||||
-DCURA_VERSION=${PV}
|
||||
-DCURA_DEBUGMODE=$(usex debug)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
doicon icons/*.png
|
||||
python_fix_shebang "${D}/usr/bin/cura"
|
||||
python_optimize "${D}${get_libdir}"
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
This is a test for developers, not end users.
|
||||
|
||||
--- a/cmake/CuraTests.cmake
|
||||
+++ b/cmake/CuraTests.cmake
|
||||
@@ -50,13 +50,6 @@
|
||||
endfunction()
|
||||
|
||||
|
||||
-#Add code style test.
|
||||
-add_test(
|
||||
- NAME "code-style"
|
||||
- COMMAND ${Python3_EXECUTABLE} run_mypy.py
|
||||
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
-)
|
||||
-
|
||||
#Add test for import statements which are not compatible with all builds
|
||||
add_test(
|
||||
NAME "invalid-imports"
|
||||
@@ -1,27 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>3dprint@gentoo.org</email>
|
||||
<name>Gentoo 3D Printer Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>mathy@vanvoorden.be</email>
|
||||
<name>Mathy Vanvoorden</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<slots>
|
||||
<subslots>soname major version number</subslots>
|
||||
</slots>
|
||||
<use>
|
||||
<flag name="usb">Access 3D printers via USB</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/Ultimaker/Cura/issues</bugs-to>
|
||||
<doc>https://github.com/Ultimaker/Cura/wiki</doc>
|
||||
<remote-id type="github">Ultimaker/Cura</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -475,15 +475,6 @@ app-portage/layman
|
||||
# reverse dependencies are fixed. Tracker bug is bug #906077.
|
||||
=dev-libs/libfmt-10*
|
||||
|
||||
# Michał Górny <mgorny@gentoo.org> (2023-05-05)
|
||||
# The Gentoo packages are severely out of date, and they haven't been
|
||||
# ported to Python 3.11. They are hard to keep working, and there
|
||||
# are better alternatives available. The suggested replacements are:
|
||||
# media-gfx/prusaslicer, media-gfx/superslicer and orcaslicer
|
||||
# (not packaged).
|
||||
# Removal on 2023-08-04. Bug #905769.
|
||||
media-gfx/cura
|
||||
|
||||
# Sam James <sam@gentoo.org> (2023-05-03)
|
||||
# Broken pkgconfig file, please upgrade to -r1.
|
||||
# bug #704348, bug #905632, bug #905822
|
||||
|
||||
Reference in New Issue
Block a user