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

github.setup        troydhanson uthash 2.3.0 v
revision            0
checksums           rmd160  7bcaa8bee2b1de72d299c69b3d6a73d97939c873 \
                    sha256  e10382ab75518bad8319eb922ad04f907cb20cccb451a3aa980c9d005e661acc \
                    size    191291

categories          devel
platforms           any
maintainers         nomaintainer
license             BSD
description         easy-to-use hash implementation for C programmers.
long_description    {*}${description}

homepage            http://troydhanson.github.io/uthash/
github.tarball_from archive

use_configure       no

supported_archs     noarch

build               {}

destroot {
    xinstall -d ${destroot}${prefix}/include/uthash/
    xinstall -m 0444 {*}[glob ${worksrcpath}/src/*.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 \
        {*}[glob ${destroot}${prefix}/share/doc/${name}/google*.html]
    xinstall -m 0644 -W ${worksrcpath} README.md LICENSE \
        ${destroot}${prefix}/share/doc/${name}
}
