1 |
commit: bdab230c705a0afebd454dbed4ec7a3ea0ab6109 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 1 03:53:53 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 1 05:19:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdab230c |
7 |
|
8 |
dev-python/pybind11: Bump to 2.10.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pybind11/Manifest | 1 + |
13 |
dev-python/pybind11/pybind11-2.10.1.ebuild | 67 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 68 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest |
17 |
index a8ed8a79cc2f..94ca5f7badb2 100644 |
18 |
--- a/dev-python/pybind11/Manifest |
19 |
+++ b/dev-python/pybind11/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST pybind11-2.10.0.gh.tar.gz 716362 BLAKE2B d9d3a8a108a303721766b822d43b631396c451c8caea0ec1bd36a97850382cdaec69a4f4e5fb475bc84e2aead050f73b759320a81750a661997870e1a84383b5 SHA512 93112ce530a0652b2b4458a137b4a35f2fd8607f82ad96698ef422128d0b53e16e1d06c239ee4643b821acafae09c74eb0f72bc4ee5584aa9fcdaff4d79980d9 |
22 |
+DIST pybind11-2.10.1.gh.tar.gz 727880 BLAKE2B d051220f33ce44ea6d174d64a2ecfad4f7452b0f5152035cfd36950875dc451e11e8352eb80c9c01b200176c0b09fa5274504ece524e699590deac64c44d57c6 SHA512 040f109ec870516acdaebc5133ccbba9e3ed7ff93214a66997cf4b8366c209322f3c902c283040826c7e585c3ea2259caf62d90d0b475bfa33d21e459dd54df1 |
23 |
DIST pybind11-2.9.2.tar.gz 709521 BLAKE2B 76ae9c72faad805885eabbe4dadf1092fe814f04f2a8d834da035c7389dcc996c09a63149911aa7a5c0b70d2da9f7c32e94aaf1c941f13345e0aef40a5748dfc SHA512 c6c18e5f59873adb3692640ade26472abd257607e7bb9fd48cfd1949878811e83d6ac6eb8c8dd926622d52ca4f13e5e6a58e0abaaaa1fa814ee831ea2b515272 |
24 |
|
25 |
diff --git a/dev-python/pybind11/pybind11-2.10.1.ebuild b/dev-python/pybind11/pybind11-2.10.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..391705a55c76 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pybind11/pybind11-2.10.1.ebuild |
30 |
@@ -0,0 +1,67 @@ |
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..11} ) |
38 |
+ |
39 |
+inherit cmake distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="AST-based Python refactoring library" |
42 |
+HOMEPAGE=" |
43 |
+ https://pybind11.readthedocs.io/en/stable/ |
44 |
+ https://github.com/pybind/pybind11/ |
45 |
+ https://pypi.org/project/pybind11/ |
46 |
+" |
47 |
+SRC_URI=" |
48 |
+ https://github.com/pybind/pybind11/archive/v${PV}.tar.gz |
49 |
+ -> ${P}.gh.tar.gz |
50 |
+" |
51 |
+ |
52 |
+LICENSE="BSD" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ dev-cpp/eigen:3 |
58 |
+" |
59 |
+BDEPEND=" |
60 |
+ test? ( |
61 |
+ >=dev-cpp/catch-2.13.5 |
62 |
+ dev-libs/boost |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+distutils_enable_tests pytest |
67 |
+ |
68 |
+python_prepare_all() { |
69 |
+ export PYBIND11_USE_CMAKE=1 |
70 |
+ cmake_src_prepare |
71 |
+ distutils-r1_python_prepare_all |
72 |
+} |
73 |
+ |
74 |
+python_configure() { |
75 |
+ local mycmakeargs=( |
76 |
+ # disable forced lto |
77 |
+ -DPYBIND11_LTO_CXX_FLAGS= |
78 |
+ -DPYBIND11_INSTALL=ON |
79 |
+ -DPYBIND11_TEST=$(usex test) |
80 |
+ ) |
81 |
+ cmake_src_configure |
82 |
+} |
83 |
+ |
84 |
+python_compile() { |
85 |
+ distutils-r1_python_compile |
86 |
+ # Compilation only does anything for tests |
87 |
+ use test && cmake_src_compile |
88 |
+} |
89 |
+ |
90 |
+python_test() { |
91 |
+ cmake_build check |
92 |
+} |
93 |
+ |
94 |
+python_install() { |
95 |
+ distutils-r1_python_install |
96 |
+ cmake_src_install |
97 |
+} |