# -*- 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 77840 2011-04-14 18:27:05Z devans@macports.org $

PortSystem 1.0

name            upower
version         0.9.5
license         GPL-2+
description     UPower is an abstraction for enumerating power devices, \
                listening to device events and querying history and statistics.

long_description \
                ${description} \
                Any application or service on the system can access the \
                org.freedesktop.UPower service via the system message bus.

maintainers     devans openmaintainer
categories      devel
platforms       darwin
homepage        http://telepathy.freedesktop.org/wiki
master_sites    http://upower.freedesktop.org/releases/

checksums       md5     e5f08ab2acd6cb6d29c70cd69a66e069 \
                sha1    802f8a5609836cb9908a624a137e51265a2ef47d \
                rmd160  b45a2b387060b553c644aa97b74067ea14b761c1

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

depends_lib     port:dbus-glib \
                port:policykit

patchfiles      patch-configure.diff \
                patch-doc-man-Makefile.in.diff

configure.args  --disable-introspection \
                --disable-silent-rules

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
