# -*- 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

PortSystem              1.0

name                    gwget
license                 GPL-2+
version                 1.0.4
revision                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                https://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

depends_lib             port:desktop-file-utils \
                        port:gconf \
                        port:libgnomeui \
                        port:libglade2

depends_run             path:bin/wget:wget

patchfiles              patch-gwget-application.h.diff

configure.args          --disable-epiphany-extension \
                        --disable-libnotify \
                        --disable-schemas-install

post-activate {
    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.type  gnome
