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/cx_Freeze/files/, dev-python/cx_Freeze/
Date: Wed, 27 Oct 2021 06:48:21
Message-Id: 1635317279.69dac2a123caaa276010346e769481c8fc32ca6c.arthurzam@gentoo
1 commit: 69dac2a123caaa276010346e769481c8fc32ca6c
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 27 06:39:52 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 27 06:47:59 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69dac2a1
7
8 dev-python/cx_Freeze: add 6.8.2, enable tests, enable py3.10
9
10 Bug: https://bugs.gentoo.org/765385
11 Closes: https://bugs.gentoo.org/812341
12 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
13
14 dev-python/cx_Freeze/Manifest | 1 +
15 dev-python/cx_Freeze/cx_Freeze-6.8.2.ebuild | 46 ++++++++++++++++++++++
16 .../files/cx_Freeze-6.8.2-buildsystem.patch | 13 ++++++
17 3 files changed, 60 insertions(+)
18
19 diff --git a/dev-python/cx_Freeze/Manifest b/dev-python/cx_Freeze/Manifest
20 index ece5807e2b8..39f3a7b8775 100644
21 --- a/dev-python/cx_Freeze/Manifest
22 +++ b/dev-python/cx_Freeze/Manifest
23 @@ -1 +1,2 @@
24 DIST cx_Freeze-6.6.tar.gz 120239 BLAKE2B f4ba5de3f4233ee5417d1e1dfb8ad23180d59bf7b2b2da4918c390d69e6f73cb814a1063951b2564bd4f8eabe8aff5faf9f731fe500bf90b4a5ef8cd081632a4 SHA512 24305f19c10d13ea58d995d80dc43c884898ae1e29a470d2885b6d7448806103bc7771874cc6dd064114c6e5e59f351dfec71c37ef3dddc0a136bb5a166cdb3a
25 +DIST cx_Freeze-6.8.2.gh.tar.gz 1271879 BLAKE2B 5c0feb7fdb51edd9e1c3a508d3d2401d1930986ee8caf957ad84a853baed56b0a6d9bd09628331adac67b4b8c79059c5a6669f8a52f22596cd1d42c87ae8d7f4 SHA512 7c7de3290597ab986326ee67b9cb8fc3dd554cef2940e3df11df5be23a6a5b4eebb33784149aff59ebec97663c8a2e70b0811cb7c244cabe43659c59882ecd40
26
27 diff --git a/dev-python/cx_Freeze/cx_Freeze-6.8.2.ebuild b/dev-python/cx_Freeze/cx_Freeze-6.8.2.ebuild
28 new file mode 100644
29 index 00000000000..7dea1918559
30 --- /dev/null
31 +++ b/dev-python/cx_Freeze/cx_Freeze-6.8.2.ebuild
32 @@ -0,0 +1,46 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Create standalone executables from Python scripts"
42 +HOMEPAGE="https://cx-freeze.readthedocs.io/"
43 +SRC_URI="
44 + https://github.com/marcelotduarte/cx_Freeze/archive/${PV}.tar.gz
45 + -> ${P}.gh.tar.gz
46 +"
47 +
48 +LICENSE="PYTHON"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +RDEPEND="
53 + dev-python/importlib_metadata[${PYTHON_USEDEP}]
54 + dev-util/patchelf
55 + virtual/libcrypt:=
56 + $(python_gen_cond_dep '
57 + dev-python/backports-zoneinfo[${PYTHON_USEDEP}]
58 + ' python3_8)
59 +"
60 +BDEPEND="
61 + test? (
62 + dev-python/bcrypt[${PYTHON_USEDEP}]
63 + dev-python/cryptography[${PYTHON_USEDEP}]
64 + dev-python/openpyxl[${PYTHON_USEDEP}]
65 + dev-python/pandas[${PYTHON_USEDEP}]
66 + dev-python/pillow[${PYTHON_USEDEP}]
67 + dev-python/pydantic[${PYTHON_USEDEP}]
68 + dev-python/pytest-mock[${PYTHON_USEDEP}]
69 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
70 + )
71 +"
72 +
73 +PATCHES=(
74 + # bug #491602
75 + "${FILESDIR}/${PN}-6.8.2-buildsystem.patch"
76 +)
77 +
78 +distutils_enable_tests --install pytest
79
80 diff --git a/dev-python/cx_Freeze/files/cx_Freeze-6.8.2-buildsystem.patch b/dev-python/cx_Freeze/files/cx_Freeze-6.8.2-buildsystem.patch
81 new file mode 100644
82 index 00000000000..760ac42fb94
83 --- /dev/null
84 +++ b/dev-python/cx_Freeze/files/cx_Freeze-6.8.2-buildsystem.patch
85 @@ -0,0 +1,13 @@
86 +diff --git a/setup.py b/setup.py
87 +index 3149360..e06a1d3 100755
88 +--- a/setup.py
89 ++++ b/setup.py
90 +@@ -99,8 +99,6 @@ class build_ext(setuptools.command.build_ext.build_ext):
91 + # macOS on Github Actions
92 + extra_args.append("-Wl,-export_dynamic")
93 + else:
94 +- if not self.debug:
95 +- extra_args.append("-s")
96 + extra_args.append("-Wl,-rpath,$ORIGIN/lib")
97 + extra_args.append("-Wl,-rpath,$ORIGIN/../lib")
98 + self.compiler.link_executable(