# $Id: Portfile 66535 2010-04-16 10:42:20Z ryandesign@macports.org $

PortSystem              1.0

name                    xournal
version                 0.4.5
revision                1
categories              x11
platforms               darwin
maintainers             ryandesign
license                 GPLv2
homepage                http://xournal.sourceforge.net/
master_sites            sourceforge

description             notetaking, sketching and journal app for use with a \
                        stylus

long_description        ${name} is an application for notetaking, sketching, \
                        and keeping a journal using a stylus. It's similar to \
                        other applications such as Jarnal, Gournal, and NoteLab.

checksums               md5     795e4396ded2b67766eb2926be1fb4a9 \
                        sha1    390cb275774469ed1b04b7268dd625bd456c895e \
                        rmd160  a4228e6874482bd381c59cd8e3db1100361c1d40

depends_lib             port:poppler

patch.pre_args          -p1
patchfiles              xournal-0.4.5-xoprint-len.patch

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

livecheck.type          regex
livecheck.url           http://sourceforge.net/projects/${name}/files/
livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
