# -*- 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

name                udunits2
version             2.2.28
distname            udunits-${version}
revision            0
maintainers         {takeshi @tenomoto}
license             Apache-2
#                     The OSI-approved Apache-2.0 license is retroactively approved for
#                     UDUNITS 2.2.28 by the upstream developer.  Please see:
#                     https://github.com/Unidata/UDUNITS-2/issues/105#issuecomment-830422445
#                     Please remove this comment on the next UDUNITS update that changes the
#                     license embedded in the source code to Apache-2.0, as expected.
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            https://www.unidata.ucar.edu/software/udunits/
master_sites        https://artifacts.unidata.ucar.edu/repository/downloads-udunits/

checksums           rmd160  c9f8305134fb8243bd0dc637ea857df5b945ed47 \
                    sha256  590baec83161a3fd62c00efa66f6113cec8a7c461e3f61a5182167e0cc5d579e \
                    size    1224503

depends_lib         port:expat \
                    port:cunit

configure.args-append \
                    --includedir=${prefix}/include/${name}
