# -*- 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                    mhash
version                 0.9.9.9
revision                1
categories              devel security
maintainers             ryandesign openmaintainer
license                 LGPL-2+
homepage                http://mhash.sourceforge.net/
master_sites            sourceforge:project/${name}/${name}/${version}
use_bzip2               yes
use_parallel_build      yes
platforms               darwin freebsd

description \
    provides easy access strong hashes

long_description \
    Libmhash is a library which implements some hash algorithms like crc32, \
    md5 and sha-1.

checksums \
    md5     f91c74f9ccab2b574a98be5bc31eb280 \
    sha1    d6f324e70a42a8bbf7a5458521257225afcf0caf \
    rmd160  4b3e8f601687e791aed62c90cbf5850ea714129b

patchfiles \
    patch-autotools-namespace-stomping.diff
patch.pre_args-replace  -p0 -p1

configure.args \
    --mandir=${prefix}/share/man

test.run                yes
test.target             check

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        ChangeLog \
        NEWS \
        README \
        THANKS \
        TODO \
        ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath}/doc \
        skid2-authentication \
        ${destroot}${prefix}/share/doc/${name}
}

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