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

PortSystem          1.0

name                oniguruma5
version             5.9.6
maintainers         hum openmaintainer
categories          devel

license             BSD
platforms           darwin
homepage            http://www.geocities.jp/kosako3/oniguruma/

description         A regular expressions library.
long_description    Oniguruma is a regular expressions library in which \
                    different character encoding can be specified for every \
                    expression. Supports Unicode Porperty/Script. N.B. 5.x is \
                    unrelated to Ruby.

dist_subdir         oniguruma
distname            onig-${version}
master_sites        http://www.geocities.jp/kosako3/oniguruma/archive/
checksums           rmd160  9c50abcb5c37ce3f1fbbe7f32345539a3cf87bf0 \
                    sha256  d5642010336a6f68b7f2e34b1f1cb14be333e4d95c2ac02b38c162caf44e47a7

conflicts           oniguruma4

post-destroot {
    set dest_doc ${destroot}${prefix}/share/doc/oniguruma
    xinstall -d ${dest_doc}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS COPYING HISTORY README README.ja \
        index.html index_ja.html \
        ${dest_doc}
    copy ${worksrcpath}/doc ${dest_doc}
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ">Latest release version (\\d+(?:\\.\\d+)*)<"