summaryrefslogtreecommitdiff
path: root/dev-python/pybind11
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pybind11')
-rw-r--r--dev-python/pybind11/Manifest4
-rw-r--r--dev-python/pybind11/pybind11-2.13.6.ebuild2
-rw-r--r--dev-python/pybind11/pybind11-3.0.0_rc2.ebuild85
3 files changed, 89 insertions, 2 deletions
diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest
index ff0854475bed..076688798719 100644
--- a/dev-python/pybind11/Manifest
+++ b/dev-python/pybind11/Manifest
@@ -1,6 +1,8 @@
AUX pybind11-2.13.6-pypy311.patch 1511 BLAKE2B 5a507b63278b0b2f7574e15634c683b4dac178fdadd9366530fce07981cdfa9bfd7881c84d0d57a8ba358498a28ca7986742b4d0f7bc333f39c09162b627fef3 SHA512 bdd23fe427f1983e7ac03f848480c95ff1cec2eb7537569a45ac623e9499a2b6c0fbde47626754d878aabdfe3ce2a8302e99c0571148fed6fbf80664957c9581
DIST pybind11-2.13.6.gh.tar.gz 800804 BLAKE2B 1f2efa05727ebbcd8e439b83bacfebb21d26a6f8f719e0a627633abdcae59837936e37e6441196e097e0075c9f922048d4e88146bb627d97ada28c48165bddb7 SHA512 497c25b33b09a9c42f67131ab82e35d689e8ce089dd7639be997305ff9a6d502447b79c824508c455d559e61f0186335b54dd2771d903a7c1621833930622d1a
DIST pybind11-3.0.0rc1.gh.tar.gz 902027 BLAKE2B 9ddc7a5307b8e2fd53d99b8f93afd960ba73c9a04dd1b89f4b53b4e80f4bede74a823643c6e40d43741321b5b73752738782c1f601158cb77a4d6f58485cb002 SHA512 e05369a1082e3980055970d8fa9dddb54f2d1d75ef1e9968f62a02d9d00b9d22109359f97fd8cc0a2a8881c8126f5820c08cd41dd29c998a1c60c6a69c9a3983
-EBUILD pybind11-2.13.6.ebuild 1713 BLAKE2B 37cb27bee59af96635b297954b49d6d49b72cc78fdbe156ed22baf09b1fdcda9bd41793fc20eebee7073331239fbfcc4f969bab3ba5cdaed5b7b398872897151 SHA512 6c4f76ed5b4604b03881132085011259197da9b9a6ae893d33b8ddab1c02d43969242536dee77ed138e956adeaba2e171bc75533acb7354ace3e859deea30aac
+DIST pybind11-3.0.0rc2.gh.tar.gz 904127 BLAKE2B 7d64cece4672c0c46d5a9114e06f4d877382e501cc3a926f7ed9aa2909bbb49ba8a2e7a6516ffde7f483aa6c0dbd43c4114e9fb4c05bf361fc87e65bd7bd9788 SHA512 ed36f00bbcdf4f52962eb2a52eb6ba1a7be7e9a3c81556676e8b8d52ce2a79c8e59c5e21da6acc149ba5a5d0e7ed60dbb2e80647d4228f46993c4c20ac3eae31
+EBUILD pybind11-2.13.6.ebuild 1707 BLAKE2B 3cc27515b834c314945f9042b439217bd12bcd35d5041135e9ac0d7a9ac5713eff50a362a56a19a796743693cd1ff176ed376f509df0cf04869947d3d30be549 SHA512 20d788d79ebf64175a8c9653c0b4cb66a0b4842baf01f329c99810cd2998b51d4ca0a54578c6f52a5b6354185c0bd65e646af141c32513cdf21088dcaec4e095
EBUILD pybind11-3.0.0_rc1.ebuild 1705 BLAKE2B e3a9c4ef6f8ec60e88bb9e3f31d2bf33eab9bdcdcab014d3243602622e4c8595281f96763198ea18592ffc342318c3fb7625001cafcbcb04e97f6312ab4b7cf5 SHA512 a891f85c05c5c9ee7e5086147bf37f57bc87bc855921704d7072ffd34ba5efc41f7f05fbd2c72e3cb01c17e6b4d8d9d6cea03710a4628a495365dabac8a7ab57
+EBUILD pybind11-3.0.0_rc2.ebuild 1705 BLAKE2B e3a9c4ef6f8ec60e88bb9e3f31d2bf33eab9bdcdcab014d3243602622e4c8595281f96763198ea18592ffc342318c3fb7625001cafcbcb04e97f6312ab4b7cf5 SHA512 a891f85c05c5c9ee7e5086147bf37f57bc87bc855921704d7072ffd34ba5efc41f7f05fbd2c72e3cb01c17e6b4d8d9d6cea03710a4628a495365dabac8a7ab57
MISC metadata.xml 475 BLAKE2B faf317a1197850acb0d16546a303bd50ee1bfe6fc3aaf592e6c147c6612fd20b809f1c911d79ca9a356cfa0c4166d2b155fcbd593f8b55e0d7dd75ff6444073b SHA512 5779adcc9f25c15fd999aa6c91d3144fc14535270e57925bfb8ac67f45448c144a142af2ea9a321ec6ffbf568713f663cef85a0be3d4a056e58b1782a5fc9a41
diff --git a/dev-python/pybind11/pybind11-2.13.6.ebuild b/dev-python/pybind11/pybind11-2.13.6.ebuild
index dea8590f1058..0459bf71d50e 100644
--- a/dev-python/pybind11/pybind11-2.13.6.ebuild
+++ b/dev-python/pybind11/pybind11-2.13.6.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 )
+PYTHON_COMPAT=( python3_{11..13} pypy3_11 )
inherit cmake distutils-r1
diff --git a/dev-python/pybind11/pybind11-3.0.0_rc2.ebuild b/dev-python/pybind11/pybind11-3.0.0_rc2.ebuild
new file mode 100644
index 000000000000..07a634804a43
--- /dev/null
+++ b/dev-python/pybind11/pybind11-3.0.0_rc2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=scikit-build-core
+PYTHON_COMPAT=( python3_{11..13} pypy3_11 )
+
+inherit cmake distutils-r1
+
+MY_P=${P/_}
+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
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+
+RDEPEND="
+ dev-cpp/eigen:3
+"
+BDEPEND="
+ test? (
+ <dev-cpp/catch-3:0
+ >=dev-cpp/catch-2.13.9:0
+ dev-libs/boost
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+ dev-python/tomlkit[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+src_prepare() {
+ cmake_src_prepare
+ distutils-r1_src_prepare
+
+ # https://github.com/scikit-build/scikit-build-core/issues/912
+ sed -i -e '/scikit-build-core/s:0\.11\.2:0.8:' pyproject.toml || die
+}
+
+python_configure() {
+ DISTUTILS_ARGS=(
+ # disable forced lto
+ -DHAS_FLTO=OFF
+ # https://github.com/pybind/pybind11/issues/5087
+ -DPYBIND11_FINDPYTHON=OFF
+ -DPYBIND11_INSTALL=ON
+ -DPYBIND11_TEST=OFF
+ )
+
+ local mycmakeargs=(
+ "${DISTUTILS_ARGS[@]}"
+ -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 cpptest test_cmake_build
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ cd "${BUILD_DIR}/tests" || die
+ epytest -p rerunfailures --reruns=5 "${S}/tests"
+}
+
+python_install() {
+ distutils-r1_python_install
+ cmake_src_install
+}