Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pybind11/
Date: Wed, 27 Oct 2021 22:44:22
Message-Id: 1635374652.c14c11f3004c28bc6b3e42563a82e02833ae27f6.chutzpah@gentoo
1 commit: c14c11f3004c28bc6b3e42563a82e02833ae27f6
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Wed Oct 27 22:43:50 2021 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 27 22:44:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c14c11f3
7
8 dev-python/pybind11: Version bump to 2.8.1
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/pybind11/Manifest | 1 +
15 dev-python/pybind11/pybind11-2.8.1.ebuild | 53 +++++++++++++++++++++++++++++++
16 2 files changed, 54 insertions(+)
17
18 diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest
19 index 8e6050c7d18..f92ed463cb7 100644
20 --- a/dev-python/pybind11/Manifest
21 +++ b/dev-python/pybind11/Manifest
22 @@ -1,2 +1,3 @@
23 DIST pybind11-2.7.1.tar.gz 668217 BLAKE2B 92d857f14290ee0717bd9f9b871dcecd6c0b36209bb9879f107c8542326fb0cc42c051f3bc12a8be50df892f1e26c26b710f60ed275f0dff206e30149547f2b4 SHA512 f09f46622b394d3990ab82aa7ea15a06e298df109cd2df263ba9d6ac7fb248217df7450e1954a9679a8360335d5bbf662926a34c8b7c61b6e4c396bbdfd88305
24 DIST pybind11-2.8.0.tar.gz 688544 BLAKE2B 3652ebf56cdec9c50a431915b4b59cd7c61d58be5a521dd2bea20ea9a0e56ae8782400d4460a5e32f3c3ec086709ee466b6b39c6adc5cd712da05b4016f9f2e1 SHA512 2f066ab1a3d4a22513625f52b55d7722f953007876e800b4a08d6341b9ae70f73a3b0fd57f76cee443e7b8cf0eecdaafc032a23ddad2b8bca2c8108ac4090a82
25 +DIST pybind11-2.8.1.tar.gz 693075 BLAKE2B 00f691121858bbe019b5398ab5418523b352f29716901ec6572817e3a35efeb953a9a1542ad37830aab6b9e5a6d6dd56c7aee390772f1d992ef570e03472ebd8 SHA512 6738b4551a1ca2fdf6676be78216b9056cecf8b4d125f0d1aaae9929614bcbf4a9b233fc3c52b8f9dfd19a9ca1496515e6748c1afd8968b9c52c9a1e8b28da10
26
27 diff --git a/dev-python/pybind11/pybind11-2.8.1.ebuild b/dev-python/pybind11/pybind11-2.8.1.ebuild
28 new file mode 100644
29 index 00000000000..3edf9adb8aa
30 --- /dev/null
31 +++ b/dev-python/pybind11/pybind11-2.8.1.ebuild
32 @@ -0,0 +1,53 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +inherit cmake distutils-r1
40 +
41 +DESCRIPTION="AST-based Python refactoring library"
42 +HOMEPAGE="https://pybind11.readthedocs.io/en/stable/"
43 +SRC_URI="https://github.com/pybind/pybind11/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
48 +
49 +RDEPEND="
50 + dev-cpp/eigen:3
51 +"
52 +
53 +distutils_enable_tests pytest
54 +
55 +python_prepare_all() {
56 + export PYBIND11_USE_CMAKE=1
57 +
58 + cmake_src_prepare
59 + distutils-r1_python_prepare_all
60 +}
61 +
62 +python_configure() {
63 + local mycmakeargs=(
64 + # disable forced lto
65 + -DPYBIND11_LTO_CXX_FLAGS=
66 + -DPYBIND11_INSTALL=ON
67 + -DPYBIND11_TEST=$(usex test)
68 + )
69 + cmake_src_configure
70 +}
71 +
72 +python_compile() {
73 + distutils-r1_python_compile
74 + # Compilation only does anything for tests
75 + use test && cmake_src_compile
76 +}
77 +
78 +python_test() {
79 + cmake_build check
80 +}
81 +
82 +python_install() {
83 + distutils-r1_python_install
84 + cmake_src_install
85 +}