diff options
Diffstat (limited to 'dev-python/pybind11')
| -rw-r--r-- | dev-python/pybind11/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/pybind11/metadata.xml | 13 | ||||
| -rw-r--r-- | dev-python/pybind11/pybind11-2.4.3.ebuild | 17 | ||||
| -rw-r--r-- | dev-python/pybind11/pybind11-2.5.0.ebuild | 63 |
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest new file mode 100644 index 000000000000..04715a0032b3 --- /dev/null +++ b/dev-python/pybind11/Manifest @@ -0,0 +1,2 @@ +DIST pybind11-2.4.3.tar.gz 138789 BLAKE2B 6279ddbc4ca4c8a62eeff684cac789a315eef0ce769258c8152f7073f8bbea39e582ed1ea86fae6878f46c675ed998c314bbaa54a40457287833cc555f5d9692 SHA512 97b6ffb38dbda8021e8265c2052df65785d532dbcd94a2b711306f806eab1a9e2aaf31ea466f13eb5784856ac69e0f4c1dc6d742aa70e5a10ce9ce338e5e9d84 +DIST pybind11-2.5.0.tar.gz 573769 BLAKE2B e46d99f873f8266efc577d3e0ab1e8a78784a45c35995bc3486501d627698e0fb10205008e8cb82c84e971f20cd02a6d2f08390f3a3041fff1a21c45f11b197f SHA512 7f3a9c71916749436898d1844ef6b112baf0817a386308b5df8dec2a912ef4b6a932b94965e98f227c49fa77312f131972a6039f23b84a3daf6442a8ab0be7c2 diff --git a/dev-python/pybind11/metadata.xml b/dev-python/pybind11/metadata.xml new file mode 100644 index 000000000000..eaf28b971ff8 --- /dev/null +++ b/dev-python/pybind11/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>perfinion@gentoo.org</email> + <name>Jason Zaman</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/pybind11/pybind11-2.4.3.ebuild b/dev-python/pybind11/pybind11-2.4.3.ebuild new file mode 100644 index 000000000000..44b91dbec22b --- /dev/null +++ b/dev-python/pybind11/pybind11-2.4.3.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{3_6,3_7,3_8} ) +DISTUTILS_USE_SETUPTOOLS=bdepend +inherit distutils-r1 + +DESCRIPTION="AST-based Python refactoring library" +HOMEPAGE="https://github.com/pybind/pybind11" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" 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 +} |
