[MacPorts] #36957: "subport" is undocumented
#36957: "subport" is undocumented --------------------+--------------------- Reporter: dave@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: guide | Version: 2.1.2 Keywords: | Port: --------------------+--------------------- I find it used in a few of the official ports, but can't find anything about it on the portfile manpage (or any of the others). -- Ticket URL: <https://trac.macports.org/ticket/36957> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36957: "subport" is undocumented ---------------------+--------------------- Reporter: dave@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: guide | Version: 2.1.2 Resolution: | Keywords: Port: | ---------------------+--------------------- Comment (by egall@…): I think this was also mentioned in the discussion thread for Issue #126 -- Ticket URL: <https://trac.macports.org/ticket/36957#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36957: "subport" is undocumented ---------------------+--------------------- Reporter: dave@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: guide | Version: 2.1.2 Resolution: | Keywords: Port: | ---------------------+--------------------- Comment (by jmr@…): Usage: {{{ subport <subname> { body } }}} Body is executed iff the portfile has been opened as the port name <subname>. This allows defining multiple ports in a single portfile, which avoids redundancy in cases where you would otherwise need to have several almost identical portfiles. If someone wants to write this up nicely and add it to the guide and portfile(7) before I get to it, please go ahead. -- Ticket URL: <https://trac.macports.org/ticket/36957#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36957: "subport" is undocumented ---------------------+--------------------- Reporter: dave@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: guide | Version: 2.1.2 Resolution: | Keywords: Port: | ---------------------+--------------------- Comment (by egall@…): Replying to [comment:3 jmr@…]:
Usage: {{{ subport <subname> { body } }}} Body is executed iff the portfile has been opened as the port name <subname>. This allows defining multiple ports in a single portfile, which avoids redundancy in cases where you would otherwise need to have several almost identical portfiles.
If someone wants to write this up nicely and add it to the guide and portfile(7) before I get to it, please go ahead.
OK, so that's the usage of subports in portfiles, how about the command- line usage of the `subport:` and `subportof:` pseudo-portnames added in r100059? So far they're only documented in the changelog (r100060)... -- Ticket URL: <https://trac.macports.org/ticket/36957#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#36957: "subport" is undocumented ---------------------+--------------------- Reporter: dave@… | Owner: markd@… Type: defect | Status: new Priority: Normal | Milestone: Component: guide | Version: 2.1.2 Resolution: | Keywords: Port: | ---------------------+--------------------- Comment (by petr@…): I recently stepped across this as well and therefore would like to rebump this ticket. -- Ticket URL: <https://trac.macports.org/ticket/36957#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#36957: Guide: Document the "subport" command --------------------------+-------------------------------- Reporter: dave@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: guide | Version: Resolution: | Keywords: Port: | --------------------------+-------------------------------- Changes (by mf2k@…): * owner: markd@… => macports-tickets@… * version: 2.1.2 => * type: defect => enhancement Comment: markd has retired. See #44782. -- Ticket URL: <https://trac.macports.org/ticket/36957#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts