diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-06-30 05:14:07 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-06-30 05:14:07 +0800 |
commit | 6544b6a85e1e8ae06b0fccd804c6363eb5f42aa3 (patch) | |
tree | c7f5799deb0d51aa4371fb431e989b1d91005cd5 /sysutils/upower | |
parent | ba47f961f8b5ef6ce5a281fa573904e04f5f9dcc (diff) | |
download | marcuscom-ports-6544b6a85e1e8ae06b0fccd804c6363eb5f42aa3.tar marcuscom-ports-6544b6a85e1e8ae06b0fccd804c6363eb5f42aa3.tar.gz marcuscom-ports-6544b6a85e1e8ae06b0fccd804c6363eb5f42aa3.tar.bz2 marcuscom-ports-6544b6a85e1e8ae06b0fccd804c6363eb5f42aa3.tar.lz marcuscom-ports-6544b6a85e1e8ae06b0fccd804c6363eb5f42aa3.tar.xz marcuscom-ports-6544b6a85e1e8ae06b0fccd804c6363eb5f42aa3.tar.zst marcuscom-ports-6544b6a85e1e8ae06b0fccd804c6363eb5f42aa3.zip |
Bump all gir ports. Always nice to find out things break after you update it :)
Error message is:
/usr/local/share/gir-1.0/Pango-1.0.gir: Incompatible version 1.0 (supported: 1.1)
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14282 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/upower')
-rw-r--r-- | sysutils/upower/Makefile | 49 | ||||
-rw-r--r-- | sysutils/upower/distinfo | 3 | ||||
-rw-r--r-- | sysutils/upower/files/patch-src_freebsd_up-backend.c | 19 | ||||
-rw-r--r-- | sysutils/upower/files/patch-src_up-daemon.c | 20 | ||||
-rw-r--r-- | sysutils/upower/files/patch-src_up-polkit.c | 20 | ||||
-rw-r--r-- | sysutils/upower/pkg-descr | 6 | ||||
-rw-r--r-- | sysutils/upower/pkg-plist | 55 |
7 files changed, 172 insertions, 0 deletions
diff --git a/sysutils/upower/Makefile b/sysutils/upower/Makefile new file mode 100644 index 000000000..4b30b0a4e --- /dev/null +++ b/sysutils/upower/Makefile @@ -0,0 +1,49 @@ +# New ports collection makefile for: DeviceKit-power +# Date Created: 30 December 2009 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# $MCom: ports/sysutils/upower/Makefile,v 1.15 2010/05/09 17:43:53 marcus Exp $ +# + +PORTNAME= upower +PORTVERSION= 0.9.4 +PORTREVISION= 2 +CATEGORIES= sysutils +MASTER_SITES= http://upower.freedesktop.org/releases/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= D-Bus daemon for simplifying power management tasks + +BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection +LIB_DEPENDS= polkit-gobject-1.0:${PORTSDIR}/sysutils/polkit \ + dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib +RUN_DEPENDS= ${LOCALBASE}/lib/girepository-1.0/GObject-2.0.typelib:${PORTSDIR}/devel/gobject-introspection + +USE_GETTEXT= yes +USE_BZIP2= yes +USE_GMAKE= yes +USE_GNOME= gnomehack intlhack ltverhack glib20 +USE_AUTOTOOLS= libtool:22 +USE_LDCONFIG= yes +USE_PYTHON= yes +CONFIGURE_ARGS= --disable-gtk-doc \ + --with-backend=freebsd \ + --localstatedir=/var +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + GTKDOC="false" + +.if defined(NO_INSTALL_MANPAGES) +CONFIGURE_ARGS+=--disable-man-pages +.else +BUILD_DEPENDS+= ${LOCALBASE}/share/sgml/docbook/4.1/dtd/catalog:${PORTSDIR}/textproc/docbook-410 \ + ${LOCALBASE}/share/xml/docbook/4.1.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-sk \ + xsltproc:${PORTSDIR}/textproc/libxslt \ + ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl +MAN1= upower.1 +MAN7= UPower.7 +MAN8= upowerd.8 +.endif + +.include <bsd.port.mk> diff --git a/sysutils/upower/distinfo b/sysutils/upower/distinfo new file mode 100644 index 000000000..98dcd0b81 --- /dev/null +++ b/sysutils/upower/distinfo @@ -0,0 +1,3 @@ +MD5 (upower-0.9.4.tar.bz2) = da93329b0938a64ad55a26aa8ee9c807 +SHA256 (upower-0.9.4.tar.bz2) = 39dd138781b2a2d820f1a2bde4ca60dbf99e6def0e0010d4c3d3f4707954a57c +SIZE (upower-0.9.4.tar.bz2) = 468727 diff --git a/sysutils/upower/files/patch-src_freebsd_up-backend.c b/sysutils/upower/files/patch-src_freebsd_up-backend.c new file mode 100644 index 000000000..f6ad11815 --- /dev/null +++ b/sysutils/upower/files/patch-src_freebsd_up-backend.c @@ -0,0 +1,19 @@ +--- src/freebsd/up-backend.c.orig 2010-05-09 13:40:33.000000000 -0400 ++++ src/freebsd/up-backend.c 2010-05-09 13:42:27.000000000 -0400 +@@ -298,16 +298,6 @@ up_backend_coldplug (UpBackend *backend, + } + + /** +- * up_backend_get_powersave_command: +- **/ +-const gchar * +-up_backend_get_powersave_command (UpBackend *backend, gboolean powersave) +-{ +- /* XXX: Do we want to use powerd here? */ +- return NULL; +-} +- +-/** + * up_backend_get_suspend_command: + **/ + const gchar * diff --git a/sysutils/upower/files/patch-src_up-daemon.c b/sysutils/upower/files/patch-src_up-daemon.c new file mode 100644 index 000000000..eea72a87b --- /dev/null +++ b/sysutils/upower/files/patch-src_up-daemon.c @@ -0,0 +1,20 @@ +--- src/up-daemon.c.orig 2010-04-19 11:58:18.000000000 -0400 ++++ src/up-daemon.c 2010-05-09 13:38:28.000000000 -0400 +@@ -488,6 +488,8 @@ up_daemon_suspend_allowed (UpDaemon *dae + goto out; + + ret = up_polkit_is_allowed (priv->polkit, subject, "org.freedesktop.upower.suspend", context); ++ if (!ret) ++ goto out; + dbus_g_method_return (context, ret); + + out: +@@ -575,6 +577,8 @@ up_daemon_hibernate_allowed (UpDaemon *d + goto out; + + ret = up_polkit_is_allowed (priv->polkit, subject, "org.freedesktop.upower.hibernate", context); ++ if (!ret) ++ goto out; + dbus_g_method_return (context, ret); + + out: diff --git a/sysutils/upower/files/patch-src_up-polkit.c b/sysutils/upower/files/patch-src_up-polkit.c new file mode 100644 index 000000000..88a074e99 --- /dev/null +++ b/sysutils/upower/files/patch-src_up-polkit.c @@ -0,0 +1,20 @@ +--- src/up-polkit.c.orig 2010-04-08 21:38:56.000000000 -0400 ++++ src/up-polkit.c 2010-04-09 02:48:12.000000000 -0400 +@@ -69,7 +69,7 @@ up_polkit_check_auth (UpPolkit *polkit, + { + gboolean ret = FALSE; + GError *error; +- GError *error_local; ++ GError *error_local = NULL; + PolkitAuthorizationResult *result; + + /* check auth */ +@@ -104,7 +104,7 @@ up_polkit_is_allowed (UpPolkit *polkit, + { + gboolean ret = FALSE; + GError *error; +- GError *error_local; ++ GError *error_local = NULL; + PolkitAuthorizationResult *result; + + /* check auth */ diff --git a/sysutils/upower/pkg-descr b/sysutils/upower/pkg-descr new file mode 100644 index 000000000..348f53146 --- /dev/null +++ b/sysutils/upower/pkg-descr @@ -0,0 +1,6 @@ +UPower is an abstraction for enumerating power devices, +listening to device events and querying history and statistics. +Any application or service on the system can access the +org.freedesktop.DeviceKit.Power service via the system message bus. + +WWW: http://upower.freedesktop.org/ diff --git a/sysutils/upower/pkg-plist b/sysutils/upower/pkg-plist new file mode 100644 index 000000000..8f96cd1fc --- /dev/null +++ b/sysutils/upower/pkg-plist @@ -0,0 +1,55 @@ +bin/devkit-power +bin/upower +etc/UPower/UPower.conf +etc/dbus-1/system.d/org.freedesktop.UPower.conf +include/DeviceKit-power/devkit-power-gobject/devicekit-power.h +include/DeviceKit-power/devkit-power-gobject/dkp-client.h +include/DeviceKit-power/devkit-power-gobject/dkp-device.h +include/DeviceKit-power/devkit-power-gobject/dkp-enum.h +include/DeviceKit-power/devkit-power-gobject/dkp-history-obj.h +include/DeviceKit-power/devkit-power-gobject/dkp-qos-obj.h +include/DeviceKit-power/devkit-power-gobject/dkp-stats-obj.h +include/DeviceKit-power/devkit-power-gobject/dkp-version.h +include/DeviceKit-power/devkit-power-gobject/dkp-wakeups-obj.h +include/DeviceKit-power/devkit-power-gobject/dkp-wakeups.h +include/libupower-glib/up-client.h +include/libupower-glib/up-device.h +include/libupower-glib/up-history-item.h +include/libupower-glib/up-qos-item.h +include/libupower-glib/up-stats-item.h +include/libupower-glib/up-types.h +include/libupower-glib/up-version.h +include/libupower-glib/up-wakeup-item.h +include/libupower-glib/up-wakeups.h +include/libupower-glib/upower.h +lib/girepository-1.0/UPowerGlib-1.0.typelib +lib/libdevkit-power-gobject.a +lib/libdevkit-power-gobject.la +lib/libdevkit-power-gobject.so +lib/libdevkit-power-gobject.so.1 +lib/libupower-glib.a +lib/libupower-glib.la +lib/libupower-glib.so +lib/libupower-glib.so.1 +libdata/pkgconfig/devkit-power-gobject.pc +libdata/pkgconfig/upower-glib.pc +libexec/devkit-power-daemon +libexec/upowerd +share/dbus-1/interfaces/org.freedesktop.UPower.Device.xml +share/dbus-1/interfaces/org.freedesktop.UPower.QoS.xml +share/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml +share/dbus-1/interfaces/org.freedesktop.UPower.xml +share/dbus-1/system-services/org.freedesktop.UPower.service +share/gir-1.0/UPowerGlib-1.0.gir +share/locale/it/LC_MESSAGES/upower.mo +share/locale/pl/LC_MESSAGES/upower.mo +share/locale/sv/LC_MESSAGES/upower.mo +share/polkit-1/actions/org.freedesktop.upower.policy +share/polkit-1/actions/org.freedesktop.upower.qos.policy +@exec mkdir -p /var/lib/DeviceKit-power +@dirrm include/DeviceKit-power/devkit-power-gobject +@dirrm include/DeviceKit-power +@dirrm include/libupower-glib +@dirrm etc/UPower +@unexec rmdir /var/lib/DeviceKit-power 2>/dev/null || true +@unexec rmdir /var/lib 2>/dev/null || true |