# -*- 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 89889 2012-02-14 05:03:02Z rmstonecipher@macports.org $

PortSystem      1.0

name            libgnome
version         2.30.0
revision        2
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
categories      gnome
platforms       darwin
license         LGPL-2+
description     This is the non-gui part of the library formerly known as gnome-libs.

long_description \
    ${description}

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

checksums       md5     1f85adc40b242b953c0e96ad017c2616 \
                sha1    202c58f1aec5240439af032a88ad087a1805d1cf \
                rmd160  b3b6cad9593feed7b4dc91e48e1559a3954d8e40

depends_build   port:pkgconfig \
                port:intltool \
                port:gtk-doc

depends_lib \
    port:audiofile \
    port:libbonobo \
    port:esound \
    port:gnome-vfs \
    port:libiconv \
    port:gettext

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+)*)}
