From e0722f6145f1e8db6281ff135d83442091b31620 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 18 Jul 2023 13:00:52 +0100 Subject: gentoo auto-resync : 18:07:2023 - 13:00:52 --- dev-python/pybind11/Manifest | 2 + dev-python/pybind11/pybind11-2.11.1.ebuild | 68 ++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 dev-python/pybind11/pybind11-2.11.1.ebuild (limited to 'dev-python/pybind11') diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest index ab1b85fdd35f..24c5fbf1b1d2 100644 --- a/dev-python/pybind11/Manifest +++ b/dev-python/pybind11/Manifest @@ -1,4 +1,6 @@ AUX pybind11-2.10.4_macOS-GCC.patch 900 BLAKE2B 22d2e59db7d9c26064cb65ba8a6847986a2c4224bb7507b5fcf8f5deb48e65976bea717d3dd1876652429c2c6e9e41875480aa182ddd0bb039799e957554d04c SHA512 d71dee88b061b48e8c707e3a67062e297ff68f7ac3b6af8fdbc0cabd278a678af1e3376193e9507ef0368ecf9572b4cf6390cc7743d17551581dd5e4acbdf699 DIST pybind11-2.10.4.gh.tar.gz 740622 BLAKE2B 7b2d86e8262581b2cc6dd720b83336206e242ef8ca99b257b01a11141ed8b127d7f35d7d573bc763dd36f2fe8c8ac91766089deb63a76e9c10029c34eec2d6d3 SHA512 7970defbb6d057a44468ed707c80bfa6ef8c9578528fbc084b03aeea20a52dbd681581f82d55ff90af11ee89693379bd79e2ab6603239ba05b0aa8da29dd93c7 +DIST pybind11-2.11.1.gh.tar.gz 756445 BLAKE2B 66ad933ffcd7fd475121f0b7488e13b914cb090d0ed511b96070e2849dcc537fb55e865b72fe06da6c5d1e3ed8e438799c5b0b60cbdc71e5713530174bff3be9 SHA512 ed1512ff0bca3bc0a45edc2eb8c77f8286ab9389f6ff1d5cb309be24bc608abbe0df6a7f5cb18c8f80a3bfa509058547c13551c3cd6a759af708fd0cdcdd9e95 EBUILD pybind11-2.10.4.ebuild 1363 BLAKE2B 3eb66771750d56d7acee9208fd6dac13d95a83dbe81dd3a5e59f23d4323d1dee7eace4cb8925607843533a34aecf42fe0a6eae2c827879348265fece46fefee0 SHA512 9260291f7e30f4d0360bff665b29f76f5f99707e2ebdacd8f71a5c83007b5f18237fedb169bb0d13a8d22930be8fbda5d4ee3f6e961fc17d9f0d5ac916687774 +EBUILD pybind11-2.11.1.ebuild 1313 BLAKE2B 6fc1f0571384fbee195c27883b357ddd701eccbbc9723c473eaea9dbc13b550e68dcd4dc834f14065ead6ec9f2527c2abf97f3b5b765098648793d55a1344811 SHA512 d4f627d5306e8bd785ea082950a136522d03ec23c09a11129d70197b68d5eb21c7626cad19e38c1f860448f2a3877092b441c95de6aed9668dd7a42b9f8fdb7a MISC metadata.xml 475 BLAKE2B faf317a1197850acb0d16546a303bd50ee1bfe6fc3aaf592e6c147c6612fd20b809f1c911d79ca9a356cfa0c4166d2b155fcbd593f8b55e0d7dd75ff6444073b SHA512 5779adcc9f25c15fd999aa6c91d3144fc14535270e57925bfb8ac67f45448c144a142af2ea9a321ec6ffbf568713f663cef85a0be3d4a056e58b1782a5fc9a41 diff --git a/dev-python/pybind11/pybind11-2.11.1.ebuild b/dev-python/pybind11/pybind11-2.11.1.ebuild new file mode 100644 index 000000000000..7b60bb179887 --- /dev/null +++ b/dev-python/pybind11/pybind11-2.11.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit cmake distutils-r1 + +DESCRIPTION="AST-based Python refactoring library" +HOMEPAGE=" + https://pybind11.readthedocs.io/en/stable/ + https://github.com/pybind/pybind11/ + https://pypi.org/project/pybind11/ +" +SRC_URI=" + https://github.com/pybind/pybind11/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +RDEPEND=" + dev-cpp/eigen:3 +" +BDEPEND=" + test? ( + >=dev-cpp/catch-2.13.5 + dev-libs/boost + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + export PYBIND11_USE_CMAKE=1 + 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() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + cmake_build check +} + +python_install() { + distutils-r1_python_install + cmake_src_install +} -- cgit v1.2.3