diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-04-07 08:38:52 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-04-07 08:38:52 +0000 |
commit | 696d0f771a5531493a57716d5a5b443c7b843c55 (patch) | |
tree | c2680ea0fab37e0d2fddc32b9f414c3004047137 /sys-power | |
parent | Version bump (diff) | |
download | gentoo-2-696d0f771a5531493a57716d5a5b443c7b843c55.tar.gz gentoo-2-696d0f771a5531493a57716d5a5b443c7b843c55.tar.bz2 gentoo-2-696d0f771a5531493a57716d5a5b443c7b843c55.zip |
Initial commit wrt #303701 by Marc-Antoine Perennou.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/upower/ChangeLog | 9 | ||||
-rw-r--r-- | sys-power/upower/metadata.xml | 8 | ||||
-rw-r--r-- | sys-power/upower/upower-0.9.2.ebuild | 79 |
3 files changed, 96 insertions, 0 deletions
diff --git a/sys-power/upower/ChangeLog b/sys-power/upower/ChangeLog new file mode 100644 index 000000000000..f9301d069de6 --- /dev/null +++ b/sys-power/upower/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sys-power/upower +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/upower/ChangeLog,v 1.1 2010/04/07 08:38:52 ssuominen Exp $ + +*upower-0.9.2 (07 Apr 2010) + + 07 Apr 2010; Samuli Suominen <ssuominen@gentoo.org> +upower-0.9.2.ebuild: + Initial commit wrt #303701 by Marc-Antoine Perennou. + diff --git a/sys-power/upower/metadata.xml b/sys-power/upower/metadata.xml new file mode 100644 index 000000000000..9879e83b822e --- /dev/null +++ b/sys-power/upower/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>freedesktop</herd> + <maintainer> + <email>freedesktop-bugs@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/sys-power/upower/upower-0.9.2.ebuild b/sys-power/upower/upower-0.9.2.ebuild new file mode 100644 index 000000000000..9dfa9bec61f9 --- /dev/null +++ b/sys-power/upower/upower-0.9.2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/upower/upower-0.9.2.ebuild,v 1.1 2010/04/07 08:38:52 ssuominen Exp $ + +EAPI=3 +inherit linux-info + +DESCRIPTION="D-Bus abstraction for enumerating power devices and querying history and statistics" +HOMEPAGE="http://upower.freedesktop.org/" +SRC_URI="http://upower.freedesktop.org/releases/upower-0.9.2.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc nls kernel_FreeBSD kernel_linux test" + +COMMON_DEPEND=">=dev-libs/glib-2.21.5:2 + >=sys-apps/dbus-1 + >=dev-libs/dbus-glib-0.76 + >=sys-auth/polkit-0.91 + kernel_linux? ( >=sys-fs/udev-151[extras] + virtual/libusb:0 ) + !sys-apps/devicekit-power" +RDEPEND="${COMMON_DEPEND} + >=sys-power/pm-utils-1.3.0" +DEPEND="${COMMON_DEPEND} + dev-util/pkgconfig + dev-libs/libxslt + app-text/docbook-xsl-stylesheets + dev-util/gtk-doc-am + doc? ( dev-util/gtk-doc + app-text/docbook-xml-dtd:4.1.2 ) + nls? ( >=dev-util/intltool-0.40.0 )" + +pkg_setup() { + if use kernel_linux; then + if use amd64 || use x86; then + CONFIG_CHECK="~ACPI_SYSFS_POWER" + linux-info_pkg_setup + fi + fi +} + +src_prepare() { + sed -i \ + -e '/DISABLE_DEPRECATED/d' \ + configure || die +} + +src_configure() { + local backend + + if use kernel_linux; then + backend=linux + elif use kernel_FreeBSD; then + backend=freebsd + else + backend=dummy + fi + + econf \ + --localstatedir=/var \ + --disable-dependency-tracking \ + --disable-static \ + $(use_enable debug verbose-mode) \ + --enable-man-pages \ + $(use_enable doc gtk-doc) \ + $(use_enable test tests) \ + $(use_enable nls) \ + --with-html-dir="${EPREFIX}/usr/share/doc/${PF}/html" \ + --with-backend=${backend} +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS HACKING NEWS README + + find "${D}" -name '*.la' -delete +} |