summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2009-10-29 23:41:08 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2009-10-29 23:41:08 +0000
commitfd3f9f2f844e48bc798edf56a184f7c7c00dbf17 (patch)
tree252b89048e0ddf00722cb58d60bb39c77afc9f34 /sys-apps/devicekit-power
parentNew version for GNOME 2.28. Clean up old revision. (diff)
downloadgentoo-2-fd3f9f2f844e48bc798edf56a184f7c7c00dbf17.tar.gz
gentoo-2-fd3f9f2f844e48bc798edf56a184f7c7c00dbf17.tar.bz2
gentoo-2-fd3f9f2f844e48bc798edf56a184f7c7c00dbf17.zip
Initial ebuild for GNOME 2.28.
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/devicekit-power')
-rw-r--r--sys-apps/devicekit-power/ChangeLog8
-rw-r--r--sys-apps/devicekit-power/devicekit-power-011.ebuild66
-rw-r--r--sys-apps/devicekit-power/metadata.xml2
3 files changed, 74 insertions, 2 deletions
diff --git a/sys-apps/devicekit-power/ChangeLog b/sys-apps/devicekit-power/ChangeLog
index 2bb370c02fab..1c0923c49087 100644
--- a/sys-apps/devicekit-power/ChangeLog
+++ b/sys-apps/devicekit-power/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/devicekit-power
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/devicekit-power/ChangeLog,v 1.2 2009/09/08 18:37:48 ikelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/devicekit-power/ChangeLog,v 1.3 2009/10/29 23:41:08 eva Exp $
+
+*devicekit-power-011 (29 Oct 2009)
+
+ 29 Oct 2009; Gilles Dartiguelongue <eva@gentoo.org>
+ +devicekit-power-011.ebuild, metadata.xml:
+ Initial ebuild for GNOME 2.28.
08 Sep 2009; Mike Auty <ikelos@gentoo.org> devicekit-power-009.ebuild:
Making CONFIG_CHECK non-fatal for userland ebuilds, see bug 283320.
diff --git a/sys-apps/devicekit-power/devicekit-power-011.ebuild b/sys-apps/devicekit-power/devicekit-power-011.ebuild
new file mode 100644
index 000000000000..10596283eb7b
--- /dev/null
+++ b/sys-apps/devicekit-power/devicekit-power-011.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/devicekit-power/devicekit-power-011.ebuild,v 1.1 2009/10/29 23:41:08 eva Exp $
+
+EAPI="2"
+
+inherit gnome2 linux-info
+
+MY_PN="DeviceKit-power"
+
+DESCRIPTION="D-Bus abstraction for enumerating power devices and querying history and statistics"
+HOMEPAGE="http://www.freedesktop.org/wiki/Software/DeviceKit"
+SRC_URI="http://hal.freedesktop.org/releases/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug doc test"
+
+RDEPEND=">=dev-libs/glib-2.21.5
+ >=dev-libs/dbus-glib-0.76
+ >=sys-fs/udev-145[extras]
+ >=sys-auth/polkit-0.91
+ sys-apps/dbus
+ virtual/libusb
+"
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40
+ dev-util/pkgconfig
+ dev-libs/libxslt
+ dev-util/gtk-doc-am
+ doc? ( >=dev-util/gtk-doc-1.3 )
+"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+function check_battery() {
+ # check sysfs power interface, bug #263959
+ local CONFIG_CHECK="ACPI_SYSFS_POWER"
+ check_extra_config
+}
+
+pkg_setup() {
+ # Pedantic is currently broken
+ G2CONF="${G2CONF}
+ --localstatedir=/var
+ --disable-ansi
+ --enable-man-pages
+ $(use_enable debug verbose-mode)
+ $(use_enable test tests)
+ "
+
+ check_battery
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ # Fix crazy cflags
+ sed 's:-DG.*DISABLE_DEPRECATED::g' -i configure.ac configure \
+ || die "sed 1 failed"
+ # Drop this command line option, because only available since gcc 4.3,
+ # bug 289873.
+ sed 's:WARNINGFLAGS_C=\"$WARNINGFLAGS_C -Wtype-limits\"::g' -i configure.ac configure \
+ || die "sed 2 failed"
+}
diff --git a/sys-apps/devicekit-power/metadata.xml b/sys-apps/devicekit-power/metadata.xml
index da6fd63d0085..941d094fcec5 100644
--- a/sys-apps/devicekit-power/metadata.xml
+++ b/sys-apps/devicekit-power/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>gnome</herd>
+<herd>freedesktop</herd>
</pkgmetadata>