# -*- 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 118902 2014-04-14 00:21:55Z devans@macports.org $

PortSystem      1.0

name            libgnome-keyring
version         3.12.0
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     devans openmaintainer
categories      gnome
platforms       darwin
license         GPL-2+ LGPL-2+
description     GNOME compatibility library for accessing secrets

long_description \
    gnome-keyring is a program that stores passwords and other secrets \
    for users. It is run as a daemon in the session. This library \
    provides an interface to the daemon for client applications.

homepage        https://wiki.gnome.org/Projects/GnomeKeyring
master_sites    gnome:sources/${name}/${branch}/

use_xz          yes

checksums       rmd160  d088c86fe3900e58a2dd67ef20bec5b23fd5f8ad \
                sha256  c4c178fbb05f72acc484d22ddb0568f7532c409b0a13e06513ff54b91e947783

depends_build   port:pkgconfig \
                port:intltool

depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:gobject-introspection \
                port:vala \
                port:dbus \
                port:libgcrypt

# update build/m4/intltool.m4 and autoreconf

pre-configure {
    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/build/m4
}

use_autoreconf  yes
autoreconf.args -fvi

configure.args  --enable-introspection=yes \
                --enable-vala=yes \
                --disable-silent-rules

# The rules enabled by gobject-introspection require GNU make 3.81+
platform darwin 8 {
    depends_build-append    port:gmake
    build.cmd               ${prefix}/bin/gmake
}

livecheck.type  gnome
