source: trunk/dports/python/py-unum/Portfile

Last change on this file was 130857, checked in by larryv@…, 3 years ago

py24-unum: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 130857 2015-01-02 22:34:08Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-unum
7version                 4.0
8platforms               darwin
9supported_archs noarch
10license                 GPL-2+
11maintainers             nomaintainer
12description             python module for using numbers with units, like volts, meters
13long_description        Unum stands for unit-numbers. It is a Python module \
14                                that allows defining and manipulating true quantities, \
15                                i.e. numbers with units like volts, hours, \
16                                meter-per-second. Consistency between units is checked \
17                                at each expression evaluation\; unit conversion and \
18                                unit output formatting are performed automatically \
19                                when needed.
20
21homepage                http://home.scarlet.be/be052320/Unum.html
22master_sites    http://home.scarlet.be/be052320/unum0400/
23distname                Unum-${version}
24checksums               md5 45fc2f8fdec624fbd7cb88b20b744778
25use_zip                 yes
26
27python.versions 27
28
29if {${name} ne ${subport}} {
30    test.run            yes
31    test.env            PYTHONPATH=${worksrcpath}/build/lib
32    test.cmd            ${python.bin} unum/tools/test.py
33    test.target
34   
35    post-destroot       {
36        xinstall -m 644 ${worksrcpath}/README.txt \
37            ${destroot}${prefix}/share/doc/${subport}
38    }
39}
Note: See TracBrowser for help on using the repository browser.