New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12224 (closed enhancement: fixed)

Opened 5 years ago

Last modified 2 years ago

RFE: provide ${os.major} instead of local regexps

Reported by: afb@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.5
Component: base Version: 1.5
Keywords: Cc:
Port:

Description

Provide ${os.major} with the major ${os.version} to use for platform variants and for packaging. Having it in one place makes it easier to modify for different OSes, and less code when using...

Attachments

macports-major.patch Download (4.0 KB) - added by afb@… 5 years ago.
macports-major.patch

Change History

Changed 5 years ago by afb@…

macports-major.patch

Changed 5 years ago by afb@…

  • component changed from ports to base

Changed 5 years ago by eridius@…

  • status changed from new to closed
  • resolution set to fixed

Looks good, though there's no reason to use a regexp for this when we can just split on periods. Committed with that change in r26693. Thanks.

Changed 5 years ago by afb@…

Thanks for applying the change, now we can include the ${os.major} when fetching remote packages and when setting up repositories - something like ${os.platform}/${os.major}/${os.arch}...

Changed 5 years ago by afb@…

It should be noted that the patch only adds the variable, it doesn't actually change naming.

Changed 5 years ago by jmpp@…

  • milestone set to Needs developer review

Go to the dev list archive to read my comments on this:  http://lists.macosforge.org/pipermail/macports-dev/2007-July/002041.html

Setting milestone to "Needs dev review", hoping we get better traction there.

-jmpp

Changed 5 years ago by jmpp@…

  • milestone changed from Needs developer review to MacPorts base bugs

Milestone Needs developer review deleted

Changed 5 years ago by nox@…

  • priority changed from Expected to Normal
  • summary changed from provide ${os.major} instead of local regexps to RFE: provide ${os.major} instead of local regexps
  • milestone changed from MacPorts base bugs to MacPorts base enhancements

Changed 2 years ago by jmr@…

  • milestone changed from MacPorts Future to MacPorts 1.5
Note: See TracTickets for help on using tickets.