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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5FD6B158090 for ; Sun, 8 May 2022 08:47:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56A02E0896; Sun, 8 May 2022 08:47:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3ACA0E0896 for ; Sun, 8 May 2022 08:47:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AA9F634164F for ; Sun, 8 May 2022 08:47:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CF2DE459 for ; Sun, 8 May 2022 08:47:32 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1651999632.0a307309213632c3c319832bf6d05f7911174d17.mgorny@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.13.1-r1.ebuild X-VCS-Directories: media-gfx/cura/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0a307309213632c3c319832bf6d05f7911174d17 X-VCS-Branch: master Date: Sun, 8 May 2022 08:47:32 +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: 35ccb490-23da-48fb-b20e-997d9bb0fc61 X-Archives-Hash: e3c76dafef5970953e95beff63faa056 commit: 0a307309213632c3c319832bf6d05f7911174d17 Author: Michał Górny gentoo org> AuthorDate: Sun May 8 08:34:12 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun May 8 08:47:12 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a307309 media-gfx/cura: Remove py3.8 due to sentry-sdk losing it Signed-off-by: Michał Górny gentoo.org> media-gfx/cura/cura-4.13.1-r1.ebuild | 89 ++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/media-gfx/cura/cura-4.13.1-r1.ebuild b/media-gfx/cura/cura-4.13.1-r1.ebuild new file mode 100644 index 000000000000..a6a983dfe2ba --- /dev/null +++ b/media-gfx/cura/cura-4.13.1-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2022 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/trimesh[${PYTHON_USEDEP}] + sci-libs/shapely[${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}" +}