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

github.setup        moses-smt mgiza 0.7.3.1
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            1
name                mgizapp
categories          textproc
maintainers         nomaintainer
license             GPL-2+

description         a multi-threaded word alignment tool based on GIZA++

long_description    MGIZA++ is a multi-threaded word alignment tool based on GIZA++. \
                    It extends GIZA++ in multiple ways.

homepage            https://web.archive.org/web/20160306045236/http://www.kyloo.net/software/doku.php/mgiza:overview

master_sites        sourceforge:project/mgizapp
distname            ${name}-${version}
extract.suffix      .tgz

checksums           rmd160  2f76f32c94c46cc8fe6d6f6b8f9da0101d29190c \
                    sha256  3b88fefefb599379c964d12945fe5b5e7064c25d6c8967b4cae294e26dc73596 \
                    size    535712

conflicts           giza-pp

worksrcdir          ${name}

patchfiles          CMakeLists.txt.patch \
                    scripts-CMakeLists.txt.patch

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
        COPYING \
        RELEASE_NOTE.txt \
        ${destroot}${docdir}
}

livecheck.type      none
