# -*- 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 115586 2014-01-06 15:25:41Z jmr@macports.org $

PortSystem      1.0

name            ggv
version         2.12.0
revision        8
license         GPL-2+
set branch      [join [lrange [split ${version} .] 0 1] .]
description     GGV, Gnome GhostView, is a Gnome PostScript document previewer.
long_description \
                GGV, the Gnome GhostView, is a Gnome PostScript document \
                previewer.  It can also preview PDFs, but as it is not a \
                native PDF viewer, it does not take advantage of all the \
                features of the PDF format. Users are strongly \
                discouraged from using it as their PDF viewer \
                - use GPdf instead!
maintainers     nomaintainer
categories      gnome print
platforms       darwin
homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes
checksums       md5 418f0ef3f8b82bb0c423a2a1cf6769f7 \
                sha1 571704d11e9ffce8413ee53936b314de06147c56
depends_build   port:intltool \
                port:pkgconfig
depends_lib     port:rarian \
                port:desktop-file-utils \
                port:gconf \
                port:ghostscript \
                port:libgnomeprintui \
                port:libgnomeui
depends_run     port:yelp

configure.cppflags-append "-L${prefix}/lib"
configure.args  --disable-schemas-install

post-activate {
    system "${prefix}/bin/scrollkeeper-update"
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

universal_variant no

livecheck.type  gnome
