commit: f8221d2bae85c4696088b26b970d22f9691affea
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 1 00:50:02 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 1 00:50:02 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8221d2b
dev-python/Nuitka: Bump to 2.4.5
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/Nuitka/Manifest | 1 +
dev-python/Nuitka/Nuitka-2.4.5.ebuild | 52 +++++++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+)
diff --git a/dev-python/Nuitka/Manifest b/dev-python/Nuitka/Manifest
index cd8e3af5e316..de54028c6868 100644
--- a/dev-python/Nuitka/Manifest
+++ b/dev-python/Nuitka/Manifest
@@ -1 +1,2 @@
DIST Nuitka-2.4.4.tar.gz 3719076 BLAKE2B
513a84e9b8ec222f14df253eab53c82edf2a663e97ac4b272481f2c3df306ad4d9c7b7785295718c68aadb02b04c8a31b0dc58f9ed0418ad2e530dbcff1f1cbf
SHA512
9cdcb377d3e7c0a64e7bb76fa3b1ca7ef6b1590c91bae82e34638fd2bab8e1497a6683c4db243e51e4653b105af43dd86e071c5c33c3baf15e58ee81e1388ca0
+DIST Nuitka-2.4.5.tar.gz 3718921 BLAKE2B
23549ef422c635c644ff65e2a7f63729d538b6d7149d31b31251cc84232d8069be616a2cdf6878f0c54876dce1296afecdc6b76b0046bdec3c62a24bd5145cf0
SHA512
f582c9b28e673fd152e9a2cc567457412d7d0da64be94d466933c68e50464346657ed107f4042060eb837a8b1d1f0b182c50bd3e665ffe47b636f467a81a5a82
diff --git a/dev-python/Nuitka/Nuitka-2.4.5.ebuild
b/dev-python/Nuitka/Nuitka-2.4.5.ebuild
new file mode 100644
index 000000000000..274aff9ae3b5
--- /dev/null
+++ b/dev-python/Nuitka/Nuitka-2.4.5.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 flag-o-matic optfeature pypi
+
+DESCRIPTION="Python to native compiler"
+HOMEPAGE="
+ https://nuitka.net/
+ https://github.com/Nuitka/Nuitka/
+ https://pypi.org/project/Nuitka/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~loong ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-build/scons[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ ${RDEPEND}
+ test? ( dev-util/ccache )
+"
+
+distutils-r1_src_prepare() {
+ # remove vendored version of SCons that is Python2 only
+ # this should be removed when upstream removes support for Python2
+ rm -vR "nuitka/build/inline_copy/lib/scons-2.3.2/SCons" || die
+ eapply_user
+}
+
+python_install() {
+ distutils-r1_python_install
+ doman doc/nuitka.1 doc/nuitka-run.1
+}
+
+python_test() {
+ append-ldflags -Wl,--no-warn-search-mismatch
+ ./tests/basics/run_all.py search || die
+}
+
+pkg_postinst() {
+ optfeature "support for stand-alone executables" dev-util/patchelf
+}