summaryrefslogtreecommitdiff
path: root/dev-python/pybind11
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-01 19:20:33 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-01 19:20:33 +0000
commit7e12702389313d1bcff6e3acc60ab5d654966413 (patch)
tree7c1dce65d831e4b7acfb13c99f250dc77d8513d2 /dev-python/pybind11
parentadf2493bc15dece8e5a4b1dedea642158118767c (diff)
downloadbaldeagleos-repo-7e12702389313d1bcff6e3acc60ab5d654966413.tar.gz
baldeagleos-repo-7e12702389313d1bcff6e3acc60ab5d654966413.tar.xz
baldeagleos-repo-7e12702389313d1bcff6e3acc60ab5d654966413.zip
Adding metadata
Diffstat (limited to 'dev-python/pybind11')
-rw-r--r--dev-python/pybind11/Manifest1
-rw-r--r--dev-python/pybind11/pybind11-3.0.3.ebuild86
2 files changed, 87 insertions, 0 deletions
diff --git a/dev-python/pybind11/Manifest b/dev-python/pybind11/Manifest
index 2a044365f396..d4a9338e2715 100644
--- a/dev-python/pybind11/Manifest
+++ b/dev-python/pybind11/Manifest
@@ -1,2 +1,3 @@
DIST pybind11-3.0.1.gh.tar.gz 918227 BLAKE2B 90700c919872cd697a59951ef86da0bd0487fe01cd3f3e1b54f2b0b6380a356271635796ea2289340377ecb6ec571ac921ad5dae0e4c82f579f7d8acefba72e5 SHA512 c17e6d6a78c38e760864b390ac2aa7df6a94ca53acb2e8be71f0d63d611b738fa20a16946c98a93fbfcad56cb0346ebf247bbe41c6f5171c6ce68397b1e5c4db
DIST pybind11-3.0.2.gh.tar.gz 953272 BLAKE2B 62d1e5cc948556d5eb161b0059c1c4cada61178554af36c2c07e613399b92c24cbff19f5128abe4ba922de79c36ab349efd4af3d4d7d354270b811039e2c0576 SHA512 19bee2c76320e25202ee078b5680ff8a7acfb33494dec29dad984ab04de8bcb01340d9fec37c8cc5ac9015dfc367e60312dcd8506e66ce8f0af4c49db562ddef
+DIST pybind11-3.0.3.gh.tar.gz 964282 BLAKE2B e75596d9ea23a27476ccc3ffc3fbaa47ef7e29a7830bc777a13ad74774e2c0b11485172efb123e9f45847665ee413bc41c8fc84b7dfd3b01579a665ddce7eb85 SHA512 d6846dc88234a355f9ff312cfd0ecb8d3c7bb0e446ea5fcfc931ed7f18d56206e2b02662cdbd8d8d940a9f67b195dabfa13585f4bb1d57cb1af8a9c39a447a79
diff --git a/dev-python/pybind11/pybind11-3.0.3.ebuild b/dev-python/pybind11/pybind11-3.0.3.ebuild
new file mode 100644
index 000000000000..edd49be16e6b
--- /dev/null
+++ b/dev-python/pybind11/pybind11-3.0.3.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=scikit-build-core
+PYTHON_COMPAT=( python3_{10..14} )
+
+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"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
+
+RDEPEND="
+ dev-cpp/eigen:3
+"
+BDEPEND="
+ test? (
+ <dev-cpp/catch-3:0
+ >=dev-cpp/catch-2.13.9:0
+ dev-libs/boost
+ dev-python/tomlkit[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_PLUGINS=()
+EPYTEST_RERUNS=5
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+src_prepare() {
+ cmake_src_prepare
+ distutils-r1_src_prepare
+}
+
+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)
+
+ # fix missing prefix, https://bugs.gentoo.org/961861
+ -Dprefix_for_pc_file="${EPREFIX}"/usr
+ )
+ 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
+
+ cd "${BUILD_DIR}/tests" || die
+ epytest "${S}/tests"
+}
+
+python_install() {
+ distutils-r1_python_install
+ cmake_src_install
+}