<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0424cf77c7c5124b76e8e5b1baa4fec07a06d84a">https://github.com/macports/macports-ports/commit/0424cf77c7c5124b76e8e5b1baa4fec07a06d84a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 0424cf77c7c5124b76e8e5b1baa4fec07a06d84a
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sat Nov 21 15:27:16 2020 +1100
<span style='display:block; white-space:pre;color:#404040;'> MacPorts port: support nonzero revision
</span>---
sysutils/MacPorts/Portfile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/MacPorts/Portfile b/sysutils/MacPorts/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f0d4a79d6b4..1e4a1217c48 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/MacPorts/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/MacPorts/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -111,7 +111,11 @@ pre-pkg {
</span> set next_major [lindex [split $macosx_deployment_target .] 0].[expr {[lindex [split $macosx_deployment_target .] 1] + 1}]
}
reinplace "s|__NEXT_XVERS__|$next_major|" ${workpath}/Distribution
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|__VERSION__|${version}|" ${workpath}/Distribution
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set pkgvers ${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$revision != 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append pkgvers _${revision}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|__VERSION__|${pkgvers}|" ${workpath}/Distribution
</span> move ${package.scripts}/postflight ${package.scripts}/postinstall
} else {
file copy -force -- ${worksrcpath}/portmgr/dmg/InstallationCheck ${package.resources}
</pre><pre style='margin:0'>
</pre>