1 |
commit: 701b4aaebc6397bcb251ae38e84ac983a0ced12d |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 28 19:24:13 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 28 19:43:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=701b4aae |
7 |
|
8 |
dev-python/pynest2d: add 4.13_beta |
9 |
|
10 |
Also use the correct Python version. |
11 |
|
12 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
13 |
|
14 |
dev-python/pynest2d/Manifest | 1 + |
15 |
dev-python/pynest2d/pynest2d-4.13_beta.ebuild | 39 +++++++++++++++++++++++++++ |
16 |
2 files changed, 40 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pynest2d/Manifest b/dev-python/pynest2d/Manifest |
19 |
index 6fe013eda4e1..953b96b37059 100644 |
20 |
--- a/dev-python/pynest2d/Manifest |
21 |
+++ b/dev-python/pynest2d/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST pynest2d-4.12.1.tar.gz 18448 BLAKE2B 5432d7acfe600afd32a0fb4543728eed351dea442ff23c9397182919f43015c4aed530aa7ec5b59c75d6373ea6ed122262d7018eb12cdd1b4586bf3ec960586b SHA512 0494efbc0ad6379fde4bdf9cdfe902cb4cbce30129771d34e01661b58ee38d6256910e10184c121de3b2d7139e6dbfee5b4e039d7d35507347efa2c475977625 |
24 |
+DIST pynest2d-4.13_beta.tar.gz 18455 BLAKE2B 1c5cbc72d8557f6c8031ea6e5b7e0344c7315dacfe3bf96dc98cd5fc353574811100728f665a27d538c1a9dfb90dce8a7fca477be9f8b589c6174364cc072bfb SHA512 b1918efa18c8d3b641271803ada6fd9122e456181854bb7a62dc574673791ad5a294d239c79cfc4590cb1ef760d410fed5764e81e938df64f5646751746b1250 |
25 |
DIST pynest2d-4.9.1.tar.gz 18252 BLAKE2B ea98af68e7b60d615eaf6e90a68b37f8e26aa181fafecc2470b5d93d1d20a9667f5a8c903be87d419cedf47befd4e9ce757a90880c0ef19e7bb920147b2443b2 SHA512 f208e13cace4345fe691beebfe61895cbf81b7f90c19adf6a63b592928abd8591fed5c10e5b12d60c375684398856ea8d569fe8d1893a049e45d89b0ffcfc51d |
26 |
|
27 |
diff --git a/dev-python/pynest2d/pynest2d-4.13_beta.ebuild b/dev-python/pynest2d/pynest2d-4.13_beta.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..363744e35591 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pynest2d/pynest2d-4.13_beta.ebuild |
32 |
@@ -0,0 +1,39 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+MY_PV=$(ver_rs 2 -) |
39 |
+PYTHON_COMPAT=( python3_{8..10} ) |
40 |
+ |
41 |
+inherit cmake python-single-r1 |
42 |
+ |
43 |
+DESCRIPTION="Python bindings for libnest2d" |
44 |
+HOMEPAGE="https://github.com/Ultimaker/pynest2d" |
45 |
+SRC_URI="https://github.com/Ultimaker/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
46 |
+S="${WORKDIR}"/${PN}-${MY_PV} |
47 |
+ |
48 |
+LICENSE="LGPL-3" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
51 |
+ |
52 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
53 |
+ |
54 |
+RDEPEND="${PYTHON_DEPS} |
55 |
+ dev-libs/libnest2d |
56 |
+ $(python_gen_cond_dep '<dev-python/sip-5[${PYTHON_USEDEP}]') |
57 |
+ " |
58 |
+ |
59 |
+DEPEND="${RDEPEND}" |
60 |
+ |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}"/${PN}-4.12.1-required-flags-from-Libnest2D-target.patch |
63 |
+) |
64 |
+ |
65 |
+src_configure() { |
66 |
+ local mycmakeargs=( |
67 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
68 |
+ ) |
69 |
+ |
70 |
+ cmake_src_configure |
71 |
+} |