# -*- 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 113954 2013-11-26 18:15:09Z jmr@macports.org $

PortSystem      1.0

name            gnome-photo-print
set gname       gpp
version         0.7.0
license         GPL-2+
description     Gnome Photo Printer is intended for printing photos in an easy way.
long_description \
                ${description}
maintainers     nomaintainer
categories      gnome
platforms       darwin
homepage        http://www.fogman.de/gpp/
distname        ${gname}-${version}
master_sites    http://www.fogman.de/gpp/

checksums       md5     ff8fdd9a8f741b346a8d87045d1d02e3 \
                sha1    e79ee69c7fb3961f1c8fb28e00f88f4d4ecedb97 \
                rmd160  7a96e9b5cd05f2c6ce8017888aa2751934283a80

depends_build   port:intltool \
                port:pkgconfig

depends_lib     port:libgnomeprintui \
                port:libgnomeui \
                port:desktop-file-utils

configure.args  --mandir=${prefix}/share/man
configure.cppflags-append "-L${prefix}/lib"

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
}

livecheck.type  regex
livecheck.regex "${gname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
