# -*- 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 102052 2013-01-26 12:51:28Z hum@macports.org $

PortSystem          1.0

name                lader
version             0.1.4
categories          textproc
maintainers         hum openmaintainer

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/
platforms           darwin
license             EPL-1

master_sites        ${homepage}download/
checksums           rmd160  759b896d738a8ab0284a9b6c0f3c1d46a4d83b70 \
                    sha256  f683c99583703356495c8dfeb85020f608c44e50408908ffa78fb4c103405a1e

depends_lib         port:boost

patchfiles          patch-src-Makefile.diff

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.\]+)\\.
