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