Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nuitka/
Date: Sat, 30 Jul 2022 19:19:34
Message-Id: 1659208764.215b8a0f648f7ac1306cc3001d56e29d6a348d5c.arthurzam@gentoo
1 commit: 215b8a0f648f7ac1306cc3001d56e29d6a348d5c
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 30 19:18:17 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 30 19:19:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=215b8a0f
7
8 dev-python/nuitka: add 1.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/nuitka/Manifest | 1 +
13 dev-python/nuitka/nuitka-1.0.ebuild | 49 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 50 insertions(+)
15
16 diff --git a/dev-python/nuitka/Manifest b/dev-python/nuitka/Manifest
17 index 85094745f9c3..23d161b9464d 100644
18 --- a/dev-python/nuitka/Manifest
19 +++ b/dev-python/nuitka/Manifest
20 @@ -1,2 +1,3 @@
21 DIST Nuitka-0.9.5.tar.gz 3858378 BLAKE2B 0b8aa2b191caaa348fda81af41d7a4ad486479742acb929c6e0f0c1ec08b06ca02c5cae46b986c569a8bb792e15fbb90e49db9ece3b226d4e09c054b4311f079 SHA512 4e0def27cc12f4b37debb509c015ba9e56649e82ecede31c142b7c420424364fb243932bd146397bfb82aea1591a06566b346a1b2c6d64cf26cdc59eb77cf875
22 DIST Nuitka-0.9.6.tar.gz 3858273 BLAKE2B 5fbe454c5f5612d94342b1247b463a4248a35123d7d4515dadb4c9f4cf5b6714f55e1972d55f60cfdfe65ca97af5fae2cfc92009b274ccf9adaf944217a39333 SHA512 6088459a12f5506a547d40a4c3f0f16f8ab470ee4875d36dfad97e4ba25d7cdc25cae1115a11dd7752dafe51d6c83d80798c74a110c995e47ba127d9b2afbf81
23 +DIST Nuitka-1.0.tar.gz 3892664 BLAKE2B 6772c4af5a4fcee704a0c9b14b25a5ae8ca0d5663f2a60791dd194ae402dc0dccad1fbc3b85089469090f2f10cb0641fe739ef3f1c8c236292ac7e468c0de27d SHA512 4b8d17e49da152ab7c0ad146296375e8f8566bbd730ceac158c8dc9ed1588509384627f538dec347774b890a4715b4ba054b3be66b1b425bb736d35752b5db58
24
25 diff --git a/dev-python/nuitka/nuitka-1.0.ebuild b/dev-python/nuitka/nuitka-1.0.ebuild
26 new file mode 100644
27 index 000000000000..5b987e13729d
28 --- /dev/null
29 +++ b/dev-python/nuitka/nuitka-1.0.ebuild
30 @@ -0,0 +1,49 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit distutils-r1 flag-o-matic optfeature
40 +
41 +DESCRIPTION="Python to native compiler"
42 +HOMEPAGE="https://www.nuitka.net"
43 +SRC_URI="https://nuitka.net/releases/${P^}.tar.gz"
44 +S="${WORKDIR}/${P^}"
45 +
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~loong ~x86"
49 +IUSE="test"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="dev-util/scons[${PYTHON_USEDEP}]"
53 +BDEPEND="
54 + ${RDEPEND}
55 + test? ( dev-util/ccache )
56 +"
57 +
58 +DOCS=( Changelog.pdf Developer_Manual.pdf README.pdf )
59 +
60 +distutils-r1_src_prepare() {
61 + # remove vendored version of SCons that is Python2 only
62 + # this should be removed when upstream removes support for Python2
63 + rm -vR "${PN}/build/inline_copy/lib/scons-2.3.2/SCons" || die
64 + eapply_user
65 +}
66 +
67 +python_install() {
68 + distutils-r1_python_install
69 + doman doc/nuitka3.1 doc/nuitka3-run.1
70 +}
71 +
72 +python_test() {
73 + append-ldflags -Wl,--no-warn-search-mismatch
74 + ./tests/basics/run_all.py search || die
75 +}
76 +
77 +pkg_postinst() {
78 + optfeature "support for stand-alone executables" app-admin/chrpath
79 +}