1 |
commit: 2505f991bea5b748fe798e2f194a0e7e6770834f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 5 07:11:34 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 5 08:27:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2505f991 |
7 |
|
8 |
dev-python/pybind11: Bump to 2.8.0 |
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.8.0.ebuild | 53 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 54 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest |
17 |
index 96f96ba6b10..8e6050c7d18 100644 |
18 |
--- a/dev-python/pybind11/Manifest |
19 |
+++ b/dev-python/pybind11/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pybind11-2.7.1.tar.gz 668217 BLAKE2B 92d857f14290ee0717bd9f9b871dcecd6c0b36209bb9879f107c8542326fb0cc42c051f3bc12a8be50df892f1e26c26b710f60ed275f0dff206e30149547f2b4 SHA512 f09f46622b394d3990ab82aa7ea15a06e298df109cd2df263ba9d6ac7fb248217df7450e1954a9679a8360335d5bbf662926a34c8b7c61b6e4c396bbdfd88305 |
22 |
+DIST pybind11-2.8.0.tar.gz 688544 BLAKE2B 3652ebf56cdec9c50a431915b4b59cd7c61d58be5a521dd2bea20ea9a0e56ae8782400d4460a5e32f3c3ec086709ee466b6b39c6adc5cd712da05b4016f9f2e1 SHA512 2f066ab1a3d4a22513625f52b55d7722f953007876e800b4a08d6341b9ae70f73a3b0fd57f76cee443e7b8cf0eecdaafc032a23ddad2b8bca2c8108ac4090a82 |
23 |
|
24 |
diff --git a/dev-python/pybind11/pybind11-2.8.0.ebuild b/dev-python/pybind11/pybind11-2.8.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..3edf9adb8aa |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pybind11/pybind11-2.8.0.ebuild |
29 |
@@ -0,0 +1,53 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+inherit cmake distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="AST-based Python refactoring library" |
39 |
+HOMEPAGE="https://pybind11.readthedocs.io/en/stable/" |
40 |
+SRC_URI="https://github.com/pybind/pybind11/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ dev-cpp/eigen:3 |
48 |
+" |
49 |
+ |
50 |
+distutils_enable_tests pytest |
51 |
+ |
52 |
+python_prepare_all() { |
53 |
+ export PYBIND11_USE_CMAKE=1 |
54 |
+ |
55 |
+ cmake_src_prepare |
56 |
+ distutils-r1_python_prepare_all |
57 |
+} |
58 |
+ |
59 |
+python_configure() { |
60 |
+ local mycmakeargs=( |
61 |
+ # disable forced lto |
62 |
+ -DPYBIND11_LTO_CXX_FLAGS= |
63 |
+ -DPYBIND11_INSTALL=ON |
64 |
+ -DPYBIND11_TEST=$(usex test) |
65 |
+ ) |
66 |
+ cmake_src_configure |
67 |
+} |
68 |
+ |
69 |
+python_compile() { |
70 |
+ distutils-r1_python_compile |
71 |
+ # Compilation only does anything for tests |
72 |
+ use test && cmake_src_compile |
73 |
+} |
74 |
+ |
75 |
+python_test() { |
76 |
+ cmake_build check |
77 |
+} |
78 |
+ |
79 |
+python_install() { |
80 |
+ distutils-r1_python_install |
81 |
+ cmake_src_install |
82 |
+} |