From fdc74cac5db319a12778ef568904fead674bb0eb Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Wed, 6 Aug 2025 12:06:40 -0400 Subject: [PATCH] python3-pybind11: update to 3.0.0. --- .../python3-pybind11/patches/docs-build.patch | 16 ++++++++++++++ srcpkgs/python3-pybind11/template | 21 +++++++------------ 2 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 srcpkgs/python3-pybind11/patches/docs-build.patch diff --git a/srcpkgs/python3-pybind11/patches/docs-build.patch b/srcpkgs/python3-pybind11/patches/docs-build.patch new file mode 100644 index 00000000000..bacbdb1efdd --- /dev/null +++ b/srcpkgs/python3-pybind11/patches/docs-build.patch @@ -0,0 +1,16 @@ +The removed extensions are not packaged for Void and are not useful for +building the manual pages of interest for this package. + +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -36,10 +36,6 @@ + # ones. + extensions = [ + "breathe", +- "myst_parser", +- "sphinx_copybutton", +- "sphinxcontrib.rsvgconverter", +- "sphinxcontrib.moderncmakedomain", + ] + + breathe_projects = {"pybind11": ".build/doxygenxml/"} diff --git a/srcpkgs/python3-pybind11/template b/srcpkgs/python3-pybind11/template index 773afaf9c89..268aee3db92 100644 --- a/srcpkgs/python3-pybind11/template +++ b/srcpkgs/python3-pybind11/template @@ -1,25 +1,18 @@ # Template file for 'python3-pybind11' pkgname=python3-pybind11 -version=2.13.6 -revision=2 -build_style=python3-module -hostmakedepends="cmake python3-setuptools - python3-pytest python3-sphinx_rtd_theme python3-breathe" +version=3.0.0 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-scikit-build-core ninja + python3-sphinx_rtd_theme python3-breathe" depends="python3-devel" -checkdepends="python3-numpy $depends" +checkdepends="python3-pytest python3-numpy $depends" short_desc="C++ header-only library to produce Python bindings" maintainer="Andrew J. Hesford " license="BSD-3-Clause" homepage="https://github.com/pybind/pybind11" distfiles="https://github.com/pybind/pybind11/archive/v${version}.tar.gz" -checksum=e08cb87f4773da97fa7b5f035de8763abc656d87d5773e62f6da0587d1f0ec20 - -post_patch() { - # These dependencies are not packaged and don't affect the man page - vsed -e '/sphinx_copybutton/d' \ - -e '/sphinxcontrib.rsvgconverter/d' \ - -e '/sphinxcontrib.moderncmakedomain/d' -i docs/conf.py -} +checksum=453b1a3e2b266c3ae9da872411cadb6d693ac18063bd73226d96cfb7015a200c post_build() { # Build the man page