# -*- 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           boost 1.0
PortGroup           legacysupport 1.1

name                lader
version             0.1.6
revision            2
categories          textproc
maintainers         nomaintainer

description         Latent Derivation Rerorderer

long_description    lader is a program that is able to train and use \
                    discriminative parsers to improve machine translation \
                    reordering. It is unlike other parsers in that it can be \
                    trained directly from aligned parallel text with no \
                    annotated syntax trees. Using it for translation between \
                    language pairs with very different word order can greatly \
                    improve translation accuracy.

homepage            http://www.phontron.com/lader/
license             EPL-1

master_sites        ${homepage}download/
checksums           rmd160  2bd6188a2ee367c446852fac8984e781ab83607b \
                    sha256  9605ed69530b234345caafe2d94d94627c55d8315c4684e3a5e9713b289abac1

patchfiles          dynamic_lookup-11.patch

configure.args-append  --with-boost=[boost::install_area]

post-destroot {
    set doc_dir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${doc_dir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS COPYING README \
        ${doc_dir}
}

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