# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 52789 2009-06-23 05:52:10Z devans@macports.org $

PortSystem              1.0

name                    gwget
version                 1.0.2
set branch              [join [lrange [split ${version} .] 0 1] .]
description             Gwget is a Download Manager for Gnome 2. It uses wget as a backend.
long_description        ${description}
maintainers             nomaintainer
categories              gnome net
platforms               darwin
homepage                http://www.gnome.org/projects/gwget/
master_sites            gnome:sources/${name}/${branch}

use_bzip2               yes

checksums               md5     52b518ea58b3bd618db0c58910ee5ccc \
                        sha1    8cf83afad4296b3ab2f6e44fbc10bc4e15210d7d \
                        rmd160  165209da3d51680299b881dd7315c49b950ea682

depends_build           port:pkgconfig \
                        port:intltool \
                        port:p5-xml-parser

depends_lib             port:gconf \
                        port:libgnomeui \
                        port:libglade2 \
                        port:libnotify \
                        port:epiphany

depends_run             path:bin/wget:wget

configure.args          --disable-schemas-install

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

livecheck.check regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
