[137835] trunk/dports/_resources/port1.0/group/python-1.0.tcl

larryv at macports.org larryv at macports.org
Sat Jun 20 21:55:58 PDT 2015


Revision: 137835
          https://trac.macports.org/changeset/137835
Author:   larryv at macports.org
Date:     2015-06-20 21:55:58 -0700 (Sat, 20 Jun 2015)
Log Message:
-----------
python-1.0: Add `rootname` option

This represents the "real" name of the software being packaged. For
pyXY-foo modules, it defaults to "foo". It's intended to replace the
`set real_name` scourge that plagues the ports tree.

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/python-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/python-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/python-1.0.tcl	2015-06-21 04:55:56 UTC (rev 137834)
+++ trunk/dports/_resources/port1.0/group/python-1.0.tcl	2015-06-21 04:55:58 UTC (rev 137835)
@@ -57,6 +57,13 @@
     xinstall -d -m 755 ${destroot}${prefix}/share/doc/${subport}/examples
 }
 
+# python.rootname: The "proper" name of the software. For a module
+#   pyXY-foo, this defaults to "foo"; for an app "foobar", this defaults
+#   to "foobar".
+
+options python.rootname
+default python.rootname {[regsub ^py- [option name] ""]}
+
 options python.versions python.version python.default_version
 option_proc python.versions python_set_versions
 default python.default_version {[python_get_default_version]}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150620/dd88f1ce/attachment-0001.html>


More information about the macports-changes mailing list