# -*- 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 113269 2013-11-13 09:02:13Z devans@macports.org $

PortSystem              1.0
PortGroup               github 1.0
PortGroup               cmake 1.0

github.setup            davvil pdfpc 3.1.1 v
revision                1
maintainers             cal openmaintainer

categories              graphics
description             \
    pdfpc is a GTK based presentation viewer application for GNU/Linux which \
    uses Keynote like multi-monitor output to provide meta information to the \
    speaker during the presentation.
long_description    ${description}\
    It is able to show a normal presentation window on one screen, while showing \
    a more sophisticated overview on the other one providing information like \
    a picture of the next slide, as well as the left over time till the end of \
    the presentation. The input files processed by pdfpc are PDF documents, \
    which can be created using nearly any of today's presentation software.

platforms               darwin
license                 GPL-2+

homepage                http://${github.author}.github.com/${name}/

fetch.type              git
post-fetch {
    system -W ${worksrcpath} "git submodule update --init"
}

depends_build-append    port:vala \
                        port:pkgconfig
depends_lib-append      port:gtk2 \
                        port:poppler \
                        port:librsvg \
                        port:libgee06

livecheck.type          regex
livecheck.url           ${homepage}
livecheck.regex         "[quotemeta ${name}] (\\d+(?:\\.\\d+)*) released"
