<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b730509afdc8bb08633cdb822e9b075355950e58">https://github.com/macports/macports-ports/commit/b730509afdc8bb08633cdb822e9b075355950e58</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b730509afdc8bb08633cdb822e9b075355950e58
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sun Jan 15 09:15:51 2023 -0700
<span style='display:block; white-space:pre;color:#404040;'> pybind11: enable testing via tests variant
</span>---
devel/pybind11/Portfile | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/pybind11/Portfile b/devel/pybind11/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 410f6ac77e0..3cf8223d6f8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/pybind11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/pybind11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,3 +34,19 @@ configure.args-append -DPYBIND11_PYTHON_VERSION=${python_branch} \
</span>
depends_build-append port:python${python_version} \
port:py${python_version}-setuptools
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant tests description {Enable tests} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup boost 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup active_variants 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DPYBIND11_TEST=NO \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPYBIND11_TEST=YES
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.target pytest
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_test-append port:py${python_version}-numpy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python_version}-scipy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:include/eigen3:eigen3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants [boost::depends_portname] python${python_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxxflags-append -std=c++17
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>