[MacPorts] #72284: [suggestion] platform keyword for the variant declaration

MacPorts noreply at macports.org
Thu Apr 3 13:43:53 UTC 2025


#72284: [suggestion] platform keyword for the variant declaration
-------------------------+--------------------
 Reporter:  RJVB         |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  base         |    Version:
 Keywords:               |       Port:
-------------------------+--------------------
 I see more and more Portfiles that check `os.platform` repeatedly. Very
 helpful for me when I port a new port to Linux.

 I think it would be useful in this light if the variant declaration syntax
 also had a simple keyword allowing to define platform-specific variants
 (e.g. `+credential_osxkeychain` for `port:git`).

 I don't have any concrete examples at hand but I can imagine that even on
 Darwin certain variants would make sense only on newer (+qt5, +qt6 or
 +gtk4 variants, for instance) or older OS versions.

-- 
Ticket URL: <https://trac.macports.org/ticket/72284>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list