# -*- 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.4.0 v
checksums           rmd160  e4320e4f1e129b412832a1911b16551efc7c58dc \
                    sha256  387ba027946d7c64e9aa19cc53b2edcd714f8f9dca9fa8e3aaef17e0e8e3d736 \
                    size    195954

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}
}
