Opened 9 years ago

Last modified 6 years ago

#36957 new enhancement

Guide: Document the "subport" command

Reported by: dave@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: guide Version:
Keywords: Cc: cooljeanius (Eric Gallager), larryv (Lawrence Velázquez), nonstop.server@…, petrrr, ctreleaven (Craig Treleaven), coke (Will Coleda), robertoschwald@…
Port:

Description

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).

Change History (12)

comment:1 Changed 9 years ago by cooljeanius (Eric Gallager)

I think this was also mentioned in the discussion thread for Issue #126

comment:2 Changed 9 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 9 years ago by jmroot (Joshua Root)

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.

comment:4 Changed 8 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:5 in reply to:  3 Changed 8 years ago by cooljeanius (Eric Gallager)

Replying to 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)...

comment:6 Changed 8 years ago by nonstop.server@…

Cc: nonstop.server@… added

Cc Me!

comment:7 Changed 7 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:8 Changed 7 years ago by petrrr

I recently stepped across this as well and therefore would like to rebump this ticket.

comment:9 Changed 7 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven@… added

Cc Me!

comment:10 Changed 7 years ago by mf2k (Frank Schima)

Owner: changed from markd@… to macports-tickets@…
Summary: "subport" is undocumentedGuide: Document the "subport" command
Type: defectenhancement
Version: 2.1.2

markd has retired. See #44782.

comment:11 Changed 6 years ago by coke (Will Coleda)

Cc: will@… added

Cc Me!

comment:12 Changed 6 years ago by robertoschwald@…

Cc: robertoschwald@… added

Cc Me!

Note: See TracTickets for help on using tickets.