# -*- 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 65677 2010-03-30 06:42:03Z ryandesign@macports.org $

PortSystem              1.0

name                    gwget
version                 1.0.4
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     b65ebc752cad068e747ae6ef45fafdcc \
                        sha1    d2cc6eafb23488798939f99f6aad4e1a87f1d7c0 \
                        rmd160  461bc7823aaf5043def1dbf15b07fb098216086d

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.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
