From bb05a6b2daff6ab7d62f2daec755a55914d1f454 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 17 Jul 2021 15:17:24 -0400 Subject: [PATCH] python3-pybind11: update to 2.7.0. --- srcpkgs/python3-pybind11/template | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python3-pybind11/template b/srcpkgs/python3-pybind11/template index 6dcafe28636..4b98c889661 100644 --- a/srcpkgs/python3-pybind11/template +++ b/srcpkgs/python3-pybind11/template @@ -1,20 +1,19 @@ # Template file for 'python3-pybind11' pkgname=python3-pybind11 -version=2.6.2 +version=2.7.0 revision=1 wrksrc="pybind11-${version}" build_style=python3-module -make_install_args="--install-headers=/usr/include/pybind11" hostmakedepends="cmake python3-setuptools python3-pytest python3-sphinx_rtd_theme python3-breathe" depends="python3-devel" +checkdepends="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=8ff2fff22df038f5cd02cea8af56622bc67f5b64534f1b83b9f133b8366acff2 - +checksum=6cd73b3d0bf3daf415b5f9b87ca8817cc2e2b64c275d65f9500250f9fee1677e post_patch() { # These dependencies are not packaged and don't affect the man page @@ -27,6 +26,21 @@ post_build() { make $makejobs -C docs man } +pre_check() { + mkdir -p build.tests + + cd build.tests + + CFLAGS="-DNDEBUG ${CFLAGS/ -pipe / }" \ + CXXFLAGS="-DNDEBUG ${CXXFLAGS/ -pipe / }" cmake .. + + make $makejobs +} + +do_check() { + make $makejobs -C build.tests check +} + post_install() { vlicense LICENSE