# -*- 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            conglomerate
version         0.9.1
revision        3
license         GPL-2+
description     Conglomerate aims to be an XML editor that everyone can use.
long_description ${description}
maintainers     nomaintainer
categories      gnome textproc
platforms       darwin
homepage        http://www.conglomerate.org
master_sites    sourceforge:project/conglomerate/Conglomerate%20XML%20Editor/${version}

checksums       md5 49ad67492e947d6c15e5b875d8360890

depends_build   port:pkgconfig \
                port:intltool \
                port:gnome-doc-utils \
                port:gtk-doc \
                port:gnome-common \
                port:autoconf \
                port:automake \
                port:libtool

depends_lib     port:desktop-file-utils \
                port:rarian \
                port:libgnomeui \
                port:libgnomeprintui \
                port:gtksourceview \
                port:gconf \
                port:libglade2 \
                port:libxslt \
                port:enchant

depends_run     port:gnome-settings-daemon \
                port:yelp

patchfiles      patch-src-cong-language.c.diff

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

post-patch {
    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
}

configure.cmd   ./autogen.sh

configure.args  --enable-printing \
                --disable-gtk-doc \
                --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"
}

livecheck.url   http://sourceforge.net/projects/${name}/files/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
