<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/992c00ac9986f385d0956a5cecfa90b211da5dd2">https://github.com/macports/macports-ports/commit/992c00ac9986f385d0956a5cecfa90b211da5dd2</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 992c00ac998 libsbml: update to version 5.19.0
</span>992c00ac998 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 992c00ac9986f385d0956a5cecfa90b211da5dd2
</span>Author: Akira Funahashi <funa@bio.keio.ac.jp>
AuthorDate: Tue Dec 1 03:47:14 2020 +0900
<span style='display:block; white-space:pre;color:#404040;'> libsbml: update to version 5.19.0
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * update to version 5.19.0
</span><span style='display:block; white-space:pre;color:#404040;'> * add Python37, Python38 and Python39 bindings
</span><span style='display:block; white-space:pre;color:#404040;'> * add port:check as depends_build to support `port test`
</span><span style='display:block; white-space:pre;color:#404040;'> * fixed an issue in original code which does not work with py38 and py39
</span>---
science/libsbml/Portfile | 54 ++++++++++++++++++++--------
science/libsbml/files/patch-readSBML-py.diff | 20 +++++++++++
2 files changed, 59 insertions(+), 15 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/libsbml/Portfile b/science/libsbml/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 86276876e0e..8c4c02238c1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/libsbml/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/libsbml/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span> PortGroup cmake 1.1
name libsbml
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 5.17.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 5.19.0
</span> categories science
platforms darwin
maintainers {@funasoul gmail.com:funasoul} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -20,19 +20,25 @@ long_description LibSBML is a free, open-source programming library to \
</span>
homepage http://sbml.org/Software/libSBML
master_sites sourceforge:project/sbml/libsbml/${version}/experimental/source
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-python-mp.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-python-mp.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-readSBML-py.diff
</span>
distname libSBML-${version}-Source
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 67f35b4b5eaf049c34e53ddc22fac1cbf449c86f \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 d2160c06c8b5f849913165c468a87b23960c24cf6f6309e9c0022cd86d2f7ee4 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 17257347
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 a462e9c497ed5072a3fc9ad24280b6fc0cadc6b8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 b2bcea187060e4fb4e6f51a69cc84a22f39cf45bc41fc4e1534ce5e4ef579b58 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 16948303
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib-append port:bzip2 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:zlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append port:check \
</span> port:pkgconfig
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args-append -DWITH_EXAMPLES:BOOL=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:bzip2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DWITH_EXAMPLES:BOOL=ON -DWITH_CHECK:BOOL=ON
</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;'>+test.target check
</span>
variant arrays description {Enable libSBML support for the SBML Level 3 Arrays and Sets ('arrays')} {
configure.args-append -DENABLE_ARRAYS:BOOL=ON
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -70,7 +76,7 @@ variant groups description {Enable libSBML support for the SBML Level 3 Groups (
</span> }
variant java description {Configure to use Java} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:swig port:swig-java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:swig-java
</span> configure.args-append -DWITH_JAVA:BOOL=ON
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -89,24 +95,42 @@ variant multi description {Enable libSBML support for the SBML Level 3 Multistat
</span> configure.args-append -DENABLE_MULTI:BOOL=ON
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python27 conflicts python35 python36 description {Configure to use Python version 2.7} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:swig port:swig-python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python27 conflicts python35 python36 python37 python38 python39 description {Configure to use Python version 2.7} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:swig-python
</span> depends_lib-append port:python27
configure.args-append -DWITH_PYTHON:BOOL=ON -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7 -DPYTHON_USE_DYNAMIC_LOOKUP:BOOL=ON
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python35 conflicts python27 python36 description {Configure to use Python version 3.5} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:swig port:swig-python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python35 conflicts python27 python36 python37 python38 python39 description {Configure to use Python version 3.5} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:swig-python
</span> depends_lib-append port:python35
configure.args-append -DWITH_PYTHON:BOOL=ON -DPYTHON_EXECUTABLE=${prefix}/bin/python3.5 -DPYTHON_USE_DYNAMIC_LOOKUP:BOOL=ON
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python36 conflicts python27 python35 description {Configure to use Python version 3.6} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:swig port:swig-python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python36 conflicts python27 python35 python37 python38 python39 description {Configure to use Python version 3.6} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:swig-python
</span> depends_lib-append port:python36
configure.args-append -DWITH_PYTHON:BOOL=ON -DPYTHON_EXECUTABLE=${prefix}/bin/python3.6 -DPYTHON_USE_DYNAMIC_LOOKUP:BOOL=ON
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python37 conflicts python27 python35 python36 python38 python39 description {Configure to use Python version 3.7} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:swig-python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:python37
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DWITH_PYTHON:BOOL=ON -DPYTHON_EXECUTABLE=${prefix}/bin/python3.7 -DPYTHON_USE_DYNAMIC_LOOKUP:BOOL=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python38 conflicts python27 python35 python36 python37 python39 description {Configure to use Python version 3.8} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:swig-python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:python38
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DWITH_PYTHON:BOOL=ON -DPYTHON_EXECUTABLE=${prefix}/bin/python3.8 -DPYTHON_USE_DYNAMIC_LOOKUP:BOOL=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python39 conflicts python27 python35 python36 python37 python38 description {Configure to use Python version 3.9} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:swig-python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:python39
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DWITH_PYTHON:BOOL=ON -DPYTHON_EXECUTABLE=${prefix}/bin/python3.9 -DPYTHON_USE_DYNAMIC_LOOKUP:BOOL=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant qual description {Enable libSBML support for the SBML Level 3 Qualitative Models ('qual')} {
configure.args-append -DENABLE_QUAL:BOOL=ON
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/libsbml/files/patch-readSBML-py.diff b/science/libsbml/files/patch-readSBML-py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..47ca2fd6795
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/libsbml/files/patch-readSBML-py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- examples/python/readSBML.py.dist 2020-11-19 20:17:49.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ examples/python/readSBML.py 2020-12-01 03:30:25.000000000 +0900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -54,7 +54,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ filename = args[1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- current = time.clock()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ current = time.time()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ document = readSBML(filename)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ errors = document.getNumErrors()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -62,7 +62,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ print()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ print(" filename: " + filename)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ print(" file size: " + str(os.stat(filename).st_size))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- print(" read time (ms): " + str(time.clock() - current))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ print(" read time (ms): " + str((time.time() - current)*1000))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ print(" validation error(s): " + str(errors))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ print()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ document.printErrors()
</span></pre><pre style='margin:0'>
</pre>