|
|
@@ -4,12 +4,13 @@ PortSystem 1.0 |
|
|
PortGroup python 1.0 |
|
|
|
|
|
name py-unum |
|
|
version 4.0 |
|
|
version 4.1.4 |
|
|
revision 0 |
|
|
platforms darwin |
|
|
supported_archs noarch |
|
|
license GPL-2+ |
|
|
license LGPL-2+ |
|
|
maintainers nomaintainer |
|
|
description python module for using numbers with units, like volts, meters |
|
|
description Units in Python |
|
|
long_description Unum stands for unit-numbers. It is a Python module \ |
|
|
that allows defining and manipulating true quantities, \ |
|
|
i.e. numbers with units like volts, hours, \ |
|
|
@@ -18,22 +19,25 @@ long_description Unum stands for unit-numbers. It is a Python module \ |
|
|
unit output formatting are performed automatically \ |
|
|
when needed. |
|
|
|
|
|
homepage http://home.scarlet.be/be052320/Unum.html |
|
|
master_sites http://home.scarlet.be/be052320/unum0400/ |
|
|
homepage https://bitbucket.org/kiv/unum/ |
|
|
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname} |
|
|
distname Unum-${version} |
|
|
checksums md5 45fc2f8fdec624fbd7cb88b20b744778 |
|
|
use_zip yes |
|
|
checksums rmd160 62143b8d1c57011adc03b8724a6c7d0d56bae535 \ |
|
|
sha256 91e66cd971e5203a06b5145d561585f5e46b3bdf3c080041f32244c8bf916f49 \ |
|
|
size 11637 |
|
|
|
|
|
python.versions 27 |
|
|
python.versions 27 37 |
|
|
|
|
|
if {${name} ne ${subport}} { |
|
|
test.run yes |
|
|
test.env PYTHONPATH=${worksrcpath}/build/lib |
|
|
test.cmd ${python.bin} unum/tools/test.py |
|
|
test.target |
|
|
depends_build-append \ |
|
|
port:py${python.version}-setuptools |
|
|
|
|
|
post-destroot { |
|
|
xinstall -m 644 ${worksrcpath}/README.txt \ |
|
|
${destroot}${prefix}/share/doc/${subport} |
|
|
set docdir ${prefix}/share/doc/${subport} |
|
|
xinstall -d ${destroot}${docdir} |
|
|
xinstall -m 0644 -W ${worksrcpath} README.txt \ |
|
|
${destroot}${docdir} |
|
|
} |
|
|
|
|
|
livecheck.type none |
|
|
} |