[MacPorts] #53089: option-contains

MacPorts noreply at macports.org
Wed May 31 18:07:48 UTC 2023


#53089: option-contains
--------------------------+----------------------
  Reporter:  RJVB         |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:
Resolution:               |   Keywords:  haspatch
      Port:               |
--------------------------+----------------------

Comment (by ryandesign):

 Does the [https://wiki.tcl-lang.org/page/In in operator] satisfy this
 need?

 {{{
 if {!("port:pkgconfig" in ${depends_build})} {
 }}}

 The usual way we handle this however is just to delete before appending.

 {{{
 depends_build-delete port:pkgconfig
 depends_build-append port:pkgconfig
 }}}

 It's not an error to delete something that is not in the list; in that
 case, nothing happens.

-- 
Ticket URL: <https://trac.macports.org/ticket/53089#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list