# -*- 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 65832 2010-04-01 19:02:29Z raimue@macports.org $

PortSystem      1.0

name            libgweather
version         2.26.2.1
revision        2
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     devans openmaintainer
categories      net gnome
platforms       darwin
description     Library to accessing online weather informations.

long_description \
    libgweather is a library to access weather \
    information from online services for numerous \
    locations.

homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums       md5     cef0447b62235c4662aa9691dd9a6c92 \
                sha1    f6d6ee5bb9eb7b81e9a413cd75e4ac86d1bc4421 \
                rmd160  0639ebe78f9d7f99bc6299e94b013565654ef476

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

depends_lib     port:gconf \
                port:libsoup \
                port:py26-gtk

patchfiles      patch-python-prefix.diff

configure.args  --disable-schemas-install \
                --disable-glibtest \
                --enable-python

configure.python ${prefix}/bin/python2.6
configure.pkg_config_path ${frameworks_dir}/Python.framework/Versions/2.6/lib/pkgconfig

use_parallel_build  yes

post-activate {
    system "\
        GCONF_CONFIG_SOURCE= \
        gconftool-2 --makefile-install-rule \
            ${prefix}/etc/gconf/schemas/gweather.schemas"
}

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