1 |
commit: 7cfac948c05bc1cc97272293d637de2be8692344 |
2 |
Author: Rick Farina <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 29 15:41:36 2020 +0000 |
4 |
Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 1 20:43:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cfac948 |
7 |
|
8 |
dev-python/pybind11: bump |
9 |
|
10 |
fix bug #706070 |
11 |
|
12 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
13 |
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org> |
14 |
|
15 |
dev-python/pybind11/Manifest | 1 + |
16 |
dev-python/pybind11/pybind11-2.5.0.ebuild | 79 +++++++++++++++++++++++++++++++ |
17 |
2 files changed, 80 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest |
20 |
index 5ff276e9ad3..04715a0032b 100644 |
21 |
--- a/dev-python/pybind11/Manifest |
22 |
+++ b/dev-python/pybind11/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST pybind11-2.4.3.tar.gz 138789 BLAKE2B 6279ddbc4ca4c8a62eeff684cac789a315eef0ce769258c8152f7073f8bbea39e582ed1ea86fae6878f46c675ed998c314bbaa54a40457287833cc555f5d9692 SHA512 97b6ffb38dbda8021e8265c2052df65785d532dbcd94a2b711306f806eab1a9e2aaf31ea466f13eb5784856ac69e0f4c1dc6d742aa70e5a10ce9ce338e5e9d84 |
25 |
+DIST pybind11-2.5.0.tar.gz 573769 BLAKE2B e46d99f873f8266efc577d3e0ab1e8a78784a45c35995bc3486501d627698e0fb10205008e8cb82c84e971f20cd02a6d2f08390f3a3041fff1a21c45f11b197f SHA512 7f3a9c71916749436898d1844ef6b112baf0817a386308b5df8dec2a912ef4b6a932b94965e98f227c49fa77312f131972a6039f23b84a3daf6442a8ab0be7c2 |
26 |
|
27 |
diff --git a/dev-python/pybind11/pybind11-2.5.0.ebuild b/dev-python/pybind11/pybind11-2.5.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..9f4ad379f84 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pybind11/pybind11-2.5.0.ebuild |
32 |
@@ -0,0 +1,79 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
39 |
+ |
40 |
+inherit cmake distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="AST-based Python refactoring library" |
43 |
+HOMEPAGE="https://pybind11.readthedocs.io/en/stable/" |
44 |
+SRC_URI="https://github.com/pybind/pybind11/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
49 |
+IUSE="doc" |
50 |
+ |
51 |
+DEPEND=" |
52 |
+ ${PYTHON_DEPS} |
53 |
+ doc? ( |
54 |
+ dev-python/breathe[${PYTHON_USEDEP}] |
55 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
56 |
+ ) |
57 |
+" |
58 |
+RDEPEND=" |
59 |
+ ${PYTHON_DEPS} |
60 |
+ dev-cpp/eigen:3 |
61 |
+" |
62 |
+ |
63 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
64 |
+ |
65 |
+DOCS=( README.md CONTRIBUTING.md ISSUE_TEMPLATE.md ) |
66 |
+ |
67 |
+pkg_setup() { |
68 |
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python3_6' ) |
69 |
+} |
70 |
+ |
71 |
+python_prepare_all() { |
72 |
+ export PYBIND11_USE_CMAKE=1 |
73 |
+ cmake_src_prepare |
74 |
+ distutils-r1_python_prepare_all |
75 |
+} |
76 |
+ |
77 |
+python_configure_all() { |
78 |
+ local mycmakeargs=( |
79 |
+ -DPYBIND11_INSTALL=ON |
80 |
+ -DPYBIND11_TEST=OFF |
81 |
+ ) |
82 |
+ |
83 |
+ cmake_src_configure |
84 |
+} |
85 |
+ |
86 |
+python_compile_all() { |
87 |
+ # No compilation has to be done by cmake |
88 |
+ |
89 |
+ # documentation is not covered by cmake, but has it's own makefile |
90 |
+ # using sphinx |
91 |
+ if use doc; then |
92 |
+ python_setup 'python3_6' |
93 |
+ pushd "${S}"/docs || die |
94 |
+ emake info man html |
95 |
+ popd || die |
96 |
+ fi |
97 |
+} |
98 |
+ |
99 |
+python_install_all() { |
100 |
+ cmake_src_install |
101 |
+ if use doc; then |
102 |
+ python_setup |
103 |
+ local HTML_DOCS=( "${S}"/docs/.build/html/. ) |
104 |
+ |
105 |
+ # install man and info pages |
106 |
+ doman "${S}"/docs/.build/man/pybind11.1 |
107 |
+ doinfo "${S}"/docs/.build/texinfo/pybind11.info |
108 |
+ fi |
109 |
+ |
110 |
+ distutils-r1_python_install_all |
111 |
+} |