<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d5b0ccd4bd0dc65462b0de6e50e9a51476357ba9">https://github.com/macports/macports-ports/commit/d5b0ccd4bd0dc65462b0de6e50e9a51476357ba9</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit d5b0ccd4bd0dc65462b0de6e50e9a51476357ba9
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Thu Apr 21 19:53:38 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> gunits: Update to 2.21
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Use a specific python.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/58780
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Add dependency on the python requests module.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/58781
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Install currency data in a standard directory and mark the file as
</span><span style='display:block; white-space:pre;color:#404040;'> writable by everyone so that gunits_cur can update it.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/58782
</span>---
math/gunits/Portfile | 33 ++++++++++++++++++++-------------
1 file changed, 20 insertions(+), 13 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/gunits/Portfile b/math/gunits/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3ddfe205c2f..ea90b0b8796 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/gunits/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/gunits/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,30 +1,37 @@
</span> PortSystem 1.0
name gunits
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 2.19
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.21
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 d2bde1ad336d7b4800bbec7aa8fa3d25e84ef15b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 6c3e80a9f980589fd962a5852a2674642257db1c5fd5b27c4d9e664f3486cbaf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1308533
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> categories math
license GPL-3+
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> description Unit conversion and calculation
long_description \
GNU units converts quantities expressed in various scales to \
their equivalents in other scales.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> homepage https://www.gnu.org/software/units/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> master_sites gnu:units
distname units-${version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 09a4e2fbc344ce01a8516f49386bb3cc2de8becd \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 4262136bdfc152b63ff5a9b93a7d80ce18b5e8bebdcffddc932dda769e306556 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 1271288
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_version 3.10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set python_ver_no_dot [string map {. {}} ${python_version}]
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:readline
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:py${python_ver_no_dot}-requests \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:python${python_ver_no_dot} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:readline
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cflags-append {*}${configure.cppflags}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --program-prefix=g \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --mandir=${prefix}/share/man \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --infodir=${prefix}/share/info
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args ac_cv_path_PYTHON=${prefix}/bin/python${python_version} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --program-prefix=g \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --sharedstatedir=${prefix}/var/lib
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.url https://ftp.gnu.org/gnu/units/?C=M&O=D
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex units-(\\d+\\.\\d+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # gunits_cur wants to be able to update this file.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${destroot}${prefix}/var/lib/units/currency.units -permissions a+w
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>