# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup cmake 1.0
github.setup Unidata UDUNITS-2 2.2.27.6 v
name udunits2
maintainers {takeshi @tenomoto}
license UCAR-Unidata
platforms darwin
categories science
description Improved Unidata unit conversion libraray
long_description \
The UDUNITS package supports units of physical quantities \
(e.g., meters, seconds). Specifically, it supports conversion \
between string and binary representations of units, \
arithmetic manipulation of units, and conversion of numeric values \
between compatible units. The UDUNIT-2 package differs from \
the original UDUNITS package in the following ways: \
support for non-ASCII characters, support for logarithmic units, \
persistent value converters, improved API, XML unit database, \
and no Fortran or Perl API.
homepage http://www.unidata.ucar.edu/software/udunits/
checksums rmd160 04062adf1c45a996fe6a17d093381a03eb5720be \
sha256 482d1614f03c081f25546420c18357fc93e5968a81c7682b6cdd6194efb3921f \
size 231773
depends_lib port:expat \
port:cunit
cmake.out_of_source yes
worksrcdir UDUNITS-2-${version}
post-destroot {
xinstall -d ${destroot}${prefix}/include/${name}
foreach f [glob ${destroot}${prefix}/include/*.h] {
file rename ${f} ${destroot}${prefix}/include/${name}
}
ln -s ${prefix}/include/${name}/${name}.h ${destroot}${prefix}/include/${name}/udunits.h
}