diff options
Diffstat (limited to 'dev-python/pybind11')
-rw-r--r-- | dev-python/pybind11/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pybind11/metadata.xml | 7 | ||||
-rw-r--r-- | dev-python/pybind11/pybind11-2.5.0.ebuild | 63 |
3 files changed, 70 insertions, 4 deletions
diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest index b6c83776bd45..9f54a6a6301d 100644 --- a/dev-python/pybind11/Manifest +++ b/dev-python/pybind11/Manifest @@ -1,3 +1,5 @@ DIST pybind11-2.4.3.tar.gz 138789 BLAKE2B 6279ddbc4ca4c8a62eeff684cac789a315eef0ce769258c8152f7073f8bbea39e582ed1ea86fae6878f46c675ed998c314bbaa54a40457287833cc555f5d9692 SHA512 97b6ffb38dbda8021e8265c2052df65785d532dbcd94a2b711306f806eab1a9e2aaf31ea466f13eb5784856ac69e0f4c1dc6d742aa70e5a10ce9ce338e5e9d84 +DIST pybind11-2.5.0.tar.gz 573769 BLAKE2B e46d99f873f8266efc577d3e0ab1e8a78784a45c35995bc3486501d627698e0fb10205008e8cb82c84e971f20cd02a6d2f08390f3a3041fff1a21c45f11b197f SHA512 7f3a9c71916749436898d1844ef6b112baf0817a386308b5df8dec2a912ef4b6a932b94965e98f227c49fa77312f131972a6039f23b84a3daf6442a8ab0be7c2 EBUILD pybind11-2.4.3.ebuild 478 BLAKE2B 67d1ceb0003ce620d43f0a33800d5b9718a1a48d00eec456e88b63134df36dca5ab246e08efeb8ee1991f30dd3a6ff0c12a4f35fd156cf92326954448ad83c22 SHA512 4f8965e2cd685936d76ec5e131af307a919e72ba1e8d845993b3c5c6d1f203927bc2127a389658715d88fb208f5b3f5ddc7b574272cbf0e3130e3a80e1930e7e -MISC metadata.xml 344 BLAKE2B 43767c7307da199018d865ab629b72a9df002046ae4fb011fc52610d56a0f890af4da32a56ef0ec73f9f20bb6849734cf7bf25b4f961b6e7fa6e61695ac96a58 SHA512 185ed0ca79b66e1ae69b3989366a304efd4cb71845e62bad7cb64b21d3c5761e2fb09b9eb4aa9647a975e2759de1104910ebbf48b6069bb9aee24b129ec3fb3b +EBUILD pybind11-2.5.0.ebuild 1305 BLAKE2B 65b14a85077c4c3254f497380a59ee8fa3ecc2e995f214d3aa57754e68d7f67ddfcf94f2be5df6638504bd81d71257acb719346dede21c63c0da846ec4f00a33 SHA512 a1514c9d8f8b3d041cae951ef8acf8e1c3c9c35ffedf071ca8a04d63a64a7fde2e94ee5215e18f618b6539cbbf225309a4623e75bd255eb8c04cfc1b7dbd9fb2 +MISC metadata.xml 348 BLAKE2B 06ae224547d14422e51d6e07615adf51fee22afcde2391a4483a8e1937b932a4268f0b31b94d4df12bb06804101b0e6b51614f0ffcb601a4fa34616dcc939377 SHA512 02a7f6afd867bf9f7832a9c8b2d1470be6b1fd537ae8f9509143bb6acb3af75c1eefa38b330bad6aa5e2c37a1158b4b0260277c6307a9b97d144d6c3695a855b diff --git a/dev-python/pybind11/metadata.xml b/dev-python/pybind11/metadata.xml index cd8fa63c07d6..025838642020 100644 --- a/dev-python/pybind11/metadata.xml +++ b/dev-python/pybind11/metadata.xml @@ -5,7 +5,8 @@ <email>perfinion@gentoo.org</email> <name>Jason Zaman</name> </maintainer> - <longdescription lang="en"> - Seamless operability between C++11 and Python - </longdescription> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> </pkgmetadata> diff --git a/dev-python/pybind11/pybind11-2.5.0.ebuild b/dev-python/pybind11/pybind11-2.5.0.ebuild new file mode 100644 index 000000000000..338584b79ec7 --- /dev/null +++ b/dev-python/pybind11/pybind11-2.5.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit cmake distutils-r1 + +DESCRIPTION="AST-based Python refactoring library" +HOMEPAGE="https://pybind11.readthedocs.io/en/stable/" +SRC_URI="https://github.com/pybind/pybind11/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" + +RDEPEND=" + dev-cpp/eigen:3 +" + +distutils_enable_sphinx docs \ + '<dev-python/sphinx-3' \ + dev-python/breathe \ + dev-python/sphinx_rtd_theme +distutils_enable_tests pytest + +DOCS=( README.md CONTRIBUTING.md ISSUE_TEMPLATE.md ) + +python_prepare_all() { + export PYBIND11_USE_CMAKE=1 + + # broken with scipy-1.4.1 + sed -i -e 's:test_sparse:_&:' tests/test_eigen.py || die + + cmake_src_prepare + distutils-r1_python_prepare_all +} + +python_configure() { + local mycmakeargs=( + # disable forced lto + -DPYBIND11_LTO_CXX_FLAGS= + -DPYBIND11_INSTALL=ON + -DPYBIND11_TEST=$(usex test) + ) + cmake_src_configure +} + +python_compile() { + distutils-r1_python_compile + # Compilation only does anything for tests + use test && cmake_src_compile +} + +python_test() { + cmake_build check +} + +python_install() { + distutils-r1_python_install + cmake_src_install +} |