<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fcb611ce46c00dddcec5c02e8cab3ad449b52dcd">https://github.com/macports/macports-ports/commit/fcb611ce46c00dddcec5c02e8cab3ad449b52dcd</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit fcb611ce46c00dddcec5c02e8cab3ad449b52dcd
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Thu Aug 18 10:12:28 2022 -0400
<span style='display:block; white-space:pre;color:#404040;'> pg stub: replace option lib_deps with noarch and libs
</span>---
_resources/port1.0/group/stub-1.0.tcl | 53 +++++++++++++++++------------------
1 file changed, 26 insertions(+), 27 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/stub-1.0.tcl b/_resources/port1.0/group/stub-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 199756b5f93..fa3cc9afa11 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/stub-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/stub-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,10 +1,10 @@
</span> # -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#==============================================================================
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#===================================================================================================
</span> #
# Portgroup to simplify declaration of stub ports/subports
#
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#---------------------------------------------------------------------------------------------------
</span> #
# Usage:
# PortGroup stub 1.0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,32 +17,29 @@
</span> # long_description my_long_description
#
# Optional Declarations:
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# * license - default: Permissive
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# * maintainers - default: nomaintainer
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# * homepage - default: empty
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# * license - default: Permissive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# * maintainers - default: nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# * homepage - default: empty
</span> #
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Options:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# PG Options:
</span> # * stub.subport_name - override subport name, for README location
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# * stub.lib_dep - allow subport to be used as lib dep; default: true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# * stub.noarch - designate as noarch; default: false
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# * stub.libs - whether subport, and/or deps, install libs; default: true
</span> #
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# If there's a desire to install another port by default, include a lib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# dependency for that:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# depends_lib-append port:default_port_to_install
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#==============================================================================
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#===================================================================================================
</span>
namespace eval stub {}
options stub.subport_name
default stub.subport_name ${subport}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Designate whether stub is intended to be used as a lib dep.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# If not, set 'supported_archs noarch' and 'installs_libs no'.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options stub.lib_dep
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default stub.lib_dep true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Designate whether stub is noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options stub.noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default stub.noarch false
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Designate whether stub, and/or deps, install libs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options stub.libs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default stub.libs true
</span>
proc stub::destroot {} {
global destroot prefix
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -56,26 +53,28 @@ proc stub::destroot {} {
</span> proc stub::setup_stub {} {
global PortInfo
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![info exists PortInfo(maintainers)]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ![info exists PortInfo(maintainers)] } {
</span> maintainers nomaintainer
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![info exists PortInfo(homepage)]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ![info exists PortInfo(homepage)] } {
</span> homepage
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![info exists PortInfo(license)] || ${PortInfo(license)} eq "unknown"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ![info exists PortInfo(license)] || ${PortInfo(license)} eq "unknown" } {
</span> license Permissive
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[option stub.lib_dep]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "stub::setup_stub: lib_dep: yes"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "stub::setup_stub: lib_dep: no; mark noarch; set installs_libs no"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set stub_noarch [option stub.noarch]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "stub.noarch: ${stub_noarch}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${stub_noarch} } {
</span> supported_archs noarch
<span style='display:block; white-space:pre;background:#ffe0e0;'>- installs_libs no
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set stub_libs [option stub.libs]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "stub.libs: ${stub_libs}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ installs_libs ${stub_libs}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> distfiles
patchfiles
use_configure no
</pre><pre style='margin:0'>
</pre>