# -*- 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: Portfile 113838 2013-11-24 16:34:38Z hum@macports.org $

PortSystem          1.0

name                oniguruma5
version             5.9.5
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  6ed5e1aa6931cc544b2d39384c39d147fb5e2d1b \
                    sha256  9f49ae7819a5f47e25449d0e4b010d479f7868a24a7b9884b47041b49a76438a

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+)*)<"
