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

name                lifelines
version             3.0.62
categories          genealogy
platforms           darwin
maintainers         nordist.net:brent
license             MIT

description         Genealogy software

long_description    LifeLines is second generation, open source genealogy \
                    software. It provides GEDCOM interoperability and \
                    powerful scripting, with a curses-based UI.

homepage            http://${name}.sourceforge.net/

master_sites        sourceforge:project/lifelines/lifelines/${version}

checksums           md5     ff617e64205763c239b0805d8bbe19fe \
                    rmd160  55de24a87380867fae50f458465d748882567bd3 \
                    sha256  2f00441ac0ed64aab8f76834c055e2b95600ed4c6f5845b9f6e5284ac58a9a52

depends_lib         port:gettext

configure.args      --with-libintl-prefix=${prefix} \
                    --with-libiconv-prefix=${prefix} \
                    --without-included-gettext

post-destroot {
    xinstall -d ${destroot}${prefix}/share/${name}/st
    system "mv ${destroot}${prefix}/share/${name}/st_*.ll \
        ${destroot}${prefix}/share/${name}/st"
    xinstall -W ${worksrcpath}/reports -m 644 CREDIT README tree.tex \
        ${destroot}${prefix}/share/${name}/
    system "cd ${destroot}${prefix}/share/${name}/ && \
        rm ll-*.html ll-*.pdf ll-*.txt"
}