From e60bc473d9105654e1d444c7222b5e1e9e8a404d Mon Sep 17 00:00:00 2001 From: Giovanni Date: Wed, 25 Feb 2026 18:17:27 +0100 Subject: [PATCH] ViennaRNA: update to 2.7.2, update python variants - disable optimizations as capabilities on the buildbots might differ from the end user; introduce a "native" variant that the user can select to build from source with the correct/available optimizations. --- science/ViennaRNA/Portfile | 97 ++++++++++++++++++++++++++------------ 1 file changed, 68 insertions(+), 29 deletions(-) diff --git a/science/ViennaRNA/Portfile b/science/ViennaRNA/Portfile index 59ae38a5045..11654deb2c2 100644 --- a/science/ViennaRNA/Portfile +++ b/science/ViennaRNA/Portfile @@ -3,11 +3,10 @@ PortSystem 1.0 name ViennaRNA -version 2.4.17 -revision 1 +version 2.7.2 +revision 0 categories science -platforms darwin maintainers {gmail.com:giovanni.bussi @GiovanniBussi} openmaintainer description C Library and programs for the prediction and comparison\ of RNA secondary structures. @@ -21,36 +20,76 @@ master_sites ${homepage}download/sourcecode/${branch}/ # https://github.com/ViennaRNA/ViennaRNA/blob/master/license.txt license restrictive -checksums rmd160 35c40f8e892295d660646bff11faa05558d1cf7d \ - sha256 b1e608f6f37cdf4adbcdd1f86fd9ebfcc1e663d58488e0f8173a58879480c121 \ - size 34680460 +checksums rmd160 12e9c6b93a4efd8254750a033c365c0313e2ebac \ + sha256 1ab5f4a4f76fc85a2243546088e45f5d85f2d7a56cc656e969b005cce9bfab5f \ + size 67253851 -configure.args-append --disable-lto \ - --with-cluster \ - --with-kinwalker \ - --without-doc-pdf \ - --without-doc-html \ - --without-perl \ - --without-python \ - --without-python3 \ - --without-tutorial-pdf +compiler.cxx_standard 2011 -depends_lib-append port:gsl \ - port:mpfr +configure.args-append \ + --disable-silent-rules \ + --disable-lto \ + --with-cluster \ + --without-kinwalker \ + --without-kinfold \ + --without-rnalocmin \ + --without-doc \ + --without-doc-pdf \ + --without-doc-html \ + --without-cla \ + --without-cla-pdf \ + --without-perl \ + --without-python2 \ + --without-python \ + --without-swig \ + --disable-vectorize \ + --disable-simd -test.run yes -test.target check +depends_build path:bin/pkg-config:pkgconfig -variant python38 conflicts python39 description {Enable python3.8 wrappers} { - depends_lib-append port:python38 - configure.args-replace --without-python3 PYTHON3=${prefix}/bin/python3.8 - configure.args-append PYTHON3_DIR=${frameworks_dir}/Python.framework/Versions/3.8/lib/python3.8/site-packages - configure.args-append PYTHON3_EXECDIR=${frameworks_dir}/Python.framework/Versions/3.8/lib/python3.8/site-packages +depends_lib-append port:gsl \ + port:mpfr + +test.run yes +test.target check + +post-destroot { + if {[file exists ${destroot}/RNA]} { + delete -force ${destroot}/RNA + } } -variant python39 conflicts python38 description {Enable python3.9 wrappers} { - depends_lib-append port:python39 - configure.args-replace --without-python3 PYTHON3=${prefix}/bin/python3.9 - configure.args-append PYTHON3_DIR=${frameworks_dir}/Python.framework/Versions/3.9/lib/python3.9/site-packages - configure.args-append PYTHON3_EXECDIR=${frameworks_dir}/Python.framework/Versions/3.9/lib/python3.9/site-packages +variant native description {Enable CPU-specific optimizations} { + configure.args-delete \ + --disable-vectorize \ + --disable-simd +} + +variant python312 conflicts python313 python314 description {Enable python3.12 wrappers} { + depends_build-append port:swig-python + depends_lib-append port:python312 + configure.args-replace --without-python --with-python + configure.args-replace --without-swig --with-swig + configure.env-append PYTHON3=${prefix}/bin/python3.12 \ + PYTHON3_DIR=${frameworks_dir}/Python.framework/Versions/3.12/lib/python3.12/site-packages \ + PYTHON3_EXECDIR=${frameworks_dir}/Python.framework/Versions/3.12/lib/python3.12/site-packages +} + +variant python313 conflicts python312 python314 description {Enable python3.13 wrappers} { + depends_build-append port:swig-python + depends_lib-append port:python313 + configure.args-replace --without-python --with-python + configure.env-append PYTHON3=${prefix}/bin/python3.13 \ + PYTHON3_DIR=${frameworks_dir}/Python.framework/Versions/3.13/lib/python3.13/site-packages \ + PYTHON3_EXECDIR=${frameworks_dir}/Python.framework/Versions/3.13/lib/python3.13/site-packages +} + +variant python314 conflicts python312 python313 description {Enable python3.14 wrappers} { + depends_build-append port:swig + depends_lib-append port:python314 + configure.args-replace --without-python --with-python + configure.args-replace --without-swig --with-swig + configure.env-append PYTHON3=${prefix}/bin/python3.14 \ + PYTHON3_DIR=${frameworks_dir}/Python.framework/Versions/3.14/lib/python3.14/site-packages \ + PYTHON3_EXECDIR=${frameworks_dir}/Python.framework/Versions/3.14/lib/python3.14/site-packages }