commit:     517bdba5cc3f9c484191524c9849318dd4b80d88
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  6 03:34:15 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb  6 03:54:57 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=517bdba5

dev-python/nuitka: Bump to 4.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/nuitka/Manifest          |  1 +
 dev-python/nuitka/nuitka-4.0.ebuild | 54 +++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/dev-python/nuitka/Manifest b/dev-python/nuitka/Manifest
index 2625d9e0f2d1..1df94267a527 100644
--- a/dev-python/nuitka/Manifest
+++ b/dev-python/nuitka/Manifest
@@ -1 +1,2 @@
 DIST nuitka-2.8.10.tar.gz 4331977 BLAKE2B 
87ebbcd2e183e84c535f051d5de886108861312db08619c243d10dc6f9dcd88f9f7d7909a8710d13f8855a824a1650c31c9ddf9386371f918d1051e4a4f9c216
 SHA512 
f3616336b0c293f6279eec81323aacc54fc1ae0bc6fffefaa3e732f580de34bfa6079fcdea039cdc9aa23afea9a3e10773ad6fe3820923674aa062ef11343cba
+DIST nuitka-4.0.tar.gz 4410008 BLAKE2B 
2359e1c48a83b3f0461dc4da1abe34a861fcee1c5a2987a2d32a72bb19b3c8868bfb79f7cf69f0aef351e061af80dd0874f338aa601a751b243f998115272f2c
 SHA512 
ed9e25fa3d81ebe8f0fec104154b8d59853ad898c94b4e49056fda111ccf9bb1c701fa13e9757ac7dc26858d16637ba3ac12065322cddc9f0f3506b25d120f5c

diff --git a/dev-python/nuitka/nuitka-4.0.ebuild 
b/dev-python/nuitka/nuitka-4.0.ebuild
new file mode 100644
index 000000000000..395b0323c88f
--- /dev/null
+++ b/dev-python/nuitka/nuitka-4.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_PN=${PN^}
+PYTHON_COMPAT=( python3_{11..13} )
+
+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}]
+       >=dev-python/ordered-set-4.1.0[${PYTHON_USEDEP}]
+       >=dev-python/zstandard-0.15[${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
+}

Reply via email to