<pre style='margin:0'>
Vadim-Valdis Yudaev (judaew) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1b6d38242893c97821f1af8d2d221ab32792b92f">https://github.com/macports/macports-ports/commit/1b6d38242893c97821f1af8d2d221ab32792b92f</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 1b6d3824289 ncdu, ncdu1: Create subport for 1.x version
</span>1b6d3824289 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 1b6d38242893c97821f1af8d2d221ab32792b92f
</span>Author: Vadim-Valdis Yudaev <judaew@macports.org>
AuthorDate: Mon Feb 14 02:20:00 2022 +0200
<span style='display:block; white-space:pre;color:#404040;'> ncdu, ncdu1: Create subport for 1.x version
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See https://github.com/macports/macports-ports/pull/13978#issuecomment-1038215523
</span>---
sysutils/ncdu/Portfile | 49 ++++++++++++++++++++++++++++++++-----------------
1 file changed, 32 insertions(+), 17 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/ncdu/Portfile b/sysutils/ncdu/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 148ef936dff..7ffbf4a7505 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/ncdu/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/ncdu/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,10 +3,10 @@
</span> PortSystem 1.0
name ncdu
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 2.1
</span> categories sysutils
maintainers {snc @nerdling} {judaew @judaew} openmaintainer
license MIT
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> description NCurses Disk Usage
long_description ncdu is an ncurses version of the famous old 'du' unix \
command. It provides a fast and easy interface to your \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,30 +17,45 @@ platforms darwin freebsd
</span> homepage https://dev.yorhel.nl/ncdu
master_sites https://dev.yorhel.nl/download/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build port:zig
</span> depends_lib port:ncurses
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 20f69506b46382d51440a6175e974f9e61cbdfef \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 4ba8d20a64a55cc00af2d2c6138afcc9dc25e40a5ed6a8c544cb9e2285a195fe \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 52449
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport ncdu1 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 1.16
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts ncdu
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 c0fb3bac76629a75222abf51f47ab80acafcd0ca \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 2b915752a183fae014b5e5b1f0a135b4b408de7488c716e325217c2513980fd4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 149705
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} eq ${name}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 2.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts ncdu1
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.cmd ./ncdu --version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 20f69506b46382d51440a6175e974f9e61cbdfef \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 4ba8d20a64a55cc00af2d2c6138afcc9dc25e40a5ed6a8c544cb9e2285a195fe \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 52449
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build port:zig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 0755 ${worksrcpath}/zig-out/bin/${name} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target release
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 0644 ${worksrcpath}/${name}.1 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/share/man/man1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${worksrcpath}/zig-out/bin/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 ${worksrcpath}/${name}.1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/man/man1
</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.cmd ./ncdu --version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> livecheck.regex ${name}-(\\d\\.\\d+(?:\\.\\d+)*)${extract.suffix}
</pre><pre style='margin:0'>
</pre>