# -*- 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem      1.0

name            gnome-keyring
version         2.26.3
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     devans openmaintainer
categories      gnome
platforms       darwin
description     GNOME program for storing passwords.

long_description \
    gnome-keyring is a program that keep password and other secrets \
    for users. It is run as a daemon in the session, similar to \
    ssh-agent, andother applications can locate it by an environment \
    variable.

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

checksums       md5     d7639185dce46c26cf2e7d2a75028f78 \
                sha1    c07136f0757937a7fe6989cbdf3bf8103da55364 \
                rmd160  323cf0fe5f11260573e0d20998c879380f4c2122

depends_build   port:pkgconfig \
                port:intltool

depends_lib     port:libgcrypt \
                port:libtasn1 \
                port:gconf

configure.args   --disable-schemas-install

test.run        yes
test.target     check

pre-test {
    if {! [variant_isset test]} {
        return -code 1 "You must enable test variant to test this port."
    }
}

variant test description {Enable build of tests} {
    configure.args-append   --enable-tests
}

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