[100771] trunk/dports/python/py-unum/Portfile
jmr at macports.org
jmr at macports.org
Sun Dec 23 15:39:43 PST 2012
Revision: 100771
https://trac.macports.org/changeset/100771
Author: jmr at macports.org
Date: 2012-12-23 15:39:43 -0800 (Sun, 23 Dec 2012)
Log Message:
-----------
py-unum: use unified portgroup, license, noarch
Modified Paths:
--------------
trunk/dports/python/py-unum/Portfile
Modified: trunk/dports/python/py-unum/Portfile
===================================================================
--- trunk/dports/python/py-unum/Portfile 2012-12-23 22:52:25 UTC (rev 100770)
+++ trunk/dports/python/py-unum/Portfile 2012-12-23 23:39:43 UTC (rev 100771)
@@ -1,12 +1,13 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-unum
version 4.0
-categories python
platforms darwin
+supported_archs noarch
+license GPL-2+
maintainers nomaintainer
description python module for using numbers with units, like volts, meters
long_description Unum stands for unit-numbers. It is a Python module \
@@ -23,12 +24,16 @@
checksums md5 45fc2f8fdec624fbd7cb88b20b744778
use_zip yes
-test.run yes
-test.env PYTHONPATH=${worksrcpath}/build/lib
-test.cmd ${python.bin} unum/tools/test.py
-test.target
+python.versions 24
-post-destroot {
- xinstall -m 644 ${worksrcpath}/README.txt \
- ${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+ test.run yes
+ test.env PYTHONPATH=${worksrcpath}/build/lib
+ test.cmd ${python.bin} unum/tools/test.py
+ test.target
+
+ post-destroot {
+ xinstall -m 644 ${worksrcpath}/README.txt \
+ ${destroot}${prefix}/share/doc/${subport}
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121223/67aff305/attachment-0001.html>
More information about the macports-changes
mailing list