# $Id: Portfile 92428 2012-04-28 08:48:48Z mww@macports.org $

PortSystem 1.0

name                uthash
version             1.9.6
categories          devel
platforms           darwin
maintainers         mww
license             BSD
description         easy-to-use hash implementation for C programmers.
long_description    ${description}

homepage            http://uthash.sourceforge.net/
master_sites        sourceforge
checksums           md5     c808baa0a5686e97eb9e625b9211cf90 \
                    sha1    7b1178ffbd2b4d4be10543f6fe34e8e0dd1000a7 \
                    rmd160  4fcb09e23c48875896c290d0a6f0eec3ac7258ec
use_bzip2           yes

use_configure       no

supported_archs     noarch

build               {}

destroot {
    xinstall -d ${destroot}${prefix}/include/uthash/
    xinstall -m 0444 -W ${worksrcpath}/src uthash.h utlist.h utarray.h utstring.h \
        ${destroot}${prefix}/include/uthash/
    xinstall -d ${destroot}${prefix}/share/doc/
    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
    delete ${destroot}${prefix}/share/doc/${name}/Makefile
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${name}-(\[0-9\\.\]+)\\${extract.suffix}

