<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/0d8e18a9ca4636297320027f3c546c37aca4b649">https://github.com/macports/macports-ports/commit/0d8e18a9ca4636297320027f3c546c37aca4b649</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 0d8e18a obsolete-1.0.tcl: Allow replaced_by to be set later
</span>0d8e18a is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 0d8e18a9ca4636297320027f3c546c37aca4b649
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Mar 12 10:29:28 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> obsolete-1.0.tcl: Allow replaced_by to be set later
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Previously, replaced_by needed to be set before the portgroup was
</span><span style='display:block; white-space:pre;color:#404040;'> included. Now it can be set, changed, or unset, before or after.
</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/56023
</span>---
_resources/port1.0/group/obsolete-1.0.tcl | 30 +++++++++++++++++++++++++-----
1 file changed, 25 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/obsolete-1.0.tcl b/_resources/port1.0/group/obsolete-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index bf60fe4..447aa7a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/obsolete-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/obsolete-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,8 +32,8 @@
</span> #
# Usage:
#
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# replaced_by name-of-port-that-deprecated-this-port
</span> # PortGroup obsolete 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# replaced_by name-of-port-that-deprecated-this-port
</span>
# set a number of reasonable defaults for a port that is only there to
# inform users that they should uninstall it and install something else
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,12 +43,32 @@ platforms darwin
</span> maintainers nomaintainer
supported_archs noarch
<span style='display:block; white-space:pre;background:#e0ffe0;'>+proc obsolete.set_descriptions {replaced_by} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${replaced_by} eq ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Obsolete port
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description This port is obsolete.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description Obsolete port, replaced by ${replaced_by}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description This port has been replaced by ${replaced_by}.
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Handle replaced_by set after portgroup inclusion.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+option_proc replaced_by obsolete.replaced_by_proc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc obsolete.replaced_by_proc {option action args} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch ${action} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ obsolete.set_descriptions ${args}
</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;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Handle replaced_by set before portgroup inclusion.
</span> if {[info exists replaced_by]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- description Obsolete port, replaced by ${replaced_by}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default long_description "This port has been replaced by ${replaced_by}."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ obsolete.set_descriptions ${replaced_by}
</span> } else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- description Obsolete port
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default long_description "This port is obsolete."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ obsolete.set_descriptions ""
</span> }
homepage https://www.macports.org/
</pre><pre style='margin:0'>
</pre>