[133630] trunk/base

raimue at macports.org raimue at macports.org
Sat Mar 7 07:02:36 PST 2015


Revision: 133630
          https://trac.macports.org/changeset/133630
Author:   raimue at macports.org
Date:     2015-03-07 07:02:36 -0800 (Sat, 07 Mar 2015)
Log Message:
-----------
base: add 'port info --patchfiles' by exporting the list of patchfiles in PortInfo

Modified Paths:
--------------
    trunk/base/doc/port-info.1.txt
    trunk/base/src/port/port.tcl
    trunk/base/src/port1.0/portmain.tcl

Modified: trunk/base/doc/port-info.1.txt
===================================================================
--- trunk/base/doc/port-info.1.txt	2015-03-07 14:39:20 UTC (rev 133629)
+++ trunk/base/doc/port-info.1.txt	2015-03-07 15:02:36 UTC (rev 133630)
@@ -14,7 +14,7 @@
      [--categories|--category] [--depends] [--depends_fetch] [--depends_extract]
      [--depends_build] [--depends_lib] [--depends_run] [--description] [--epoch]
      [--fullname] [--heading] [--homepage] [--index] [--license] [--line]
-     [--long_description] [--maintainer|--maintainers] [--name]
+     [--long_description] [--maintainer|--maintainers] [--name] [--patchfiles]
      [--platform|--platforms] [--portdir] [--pretty] [--replaced_by]
      [--revision] [--subports] [--variant|--variants] [--version]
      [['portname' | 'pseudo-portname' | 'port-expressions' | 'port-url']]
@@ -78,6 +78,11 @@
 *--name*::
     Print the name of a port.
 
+*--patchfiles*::
+    List the patches that will be applied to the port, taking the current
+    platform and selected variants into account. This information will not be
+    available if *--index* is specified.
+
 *--platform*, *--platforms*::
     List the platforms supported by a port. This field exists for historical
     reasons only. In modern MacPorts, this is always 'darwin', i.e., OS X.
@@ -106,5 +111,5 @@
 
 AUTHORS
 -------
- (C) 2014 The MacPorts Project
+ (C) 2014-2015 The MacPorts Project
  Clemens Lang <cal at macports.org>

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2015-03-07 14:39:20 UTC (rev 133629)
+++ trunk/base/src/port/port.tcl	2015-03-07 15:02:36 UTC (rev 133630)
@@ -2051,6 +2051,7 @@
             variants        1
             conflicts       1
             subports        1
+            patchfiles      1
         "
 
         # Label map for pretty printing
@@ -2072,6 +2073,7 @@
             conflicts   "Conflicts with"
             replaced_by "Replaced by"
             subports    "Sub-ports"
+            patchfiles  "Patchfiles"
         }
 
         # Wrap-length map for pretty printing
@@ -2092,6 +2094,7 @@
             conflicts 22
             maintainers 22
             subports 22
+            patchfiles 22
         }
 
         # Interpret a convenient field abbreviation
@@ -4362,8 +4365,8 @@
                  depends_build depends_lib depends_run
                  depends description epoch fullname heading homepage index license
                  line long_description
-                 maintainer maintainers name platform platforms portdir pretty
-                 replaced_by revision subports variant variants version}
+                 maintainer maintainers name patchfiles platform platforms portdir
+                 pretty replaced_by revision subports variant variants version}
     contents    {size {units 1}}
     deps        {index no-build}
     rdeps       {index no-build full}

Modified: trunk/base/src/port1.0/portmain.tcl
===================================================================
--- trunk/base/src/port1.0/portmain.tcl	2015-03-07 14:39:20 UTC (rev 133629)
+++ trunk/base/src/port1.0/portmain.tcl	2015-03-07 15:02:36 UTC (rev 133630)
@@ -67,7 +67,7 @@
 option_proc notes handle_option_string
 
 # Export options via PortInfo
-options_export name version revision epoch categories maintainers platforms description long_description notes homepage license provides conflicts replaced_by installs_libs license_noconflict
+options_export name version revision epoch categories maintainers platforms description long_description notes homepage license provides conflicts replaced_by installs_libs license_noconflict patchfiles
 
 default subport {[portmain::get_default_subport]}
 proc portmain::get_default_subport {} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150307/ed7db563/attachment.html>


More information about the macports-changes mailing list