diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-08 07:37:42 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-08 07:37:42 +0000 |
commit | 9a0b98a98400caa0e83639abe716b95c5865c0f2 (patch) | |
tree | ce77045d143355d8ae08387564d97e7d41356c22 /sys-power/powermgmt-base | |
parent | Removed old. (diff) | |
download | gentoo-2-9a0b98a98400caa0e83639abe716b95c5865c0f2.tar.gz gentoo-2-9a0b98a98400caa0e83639abe716b95c5865c0f2.tar.bz2 gentoo-2-9a0b98a98400caa0e83639abe716b95c5865c0f2.zip |
Version bump. Use on_ac_power from sys-power/pm-utils with USE="pm-utils" wrt #255249.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-power/powermgmt-base')
-rw-r--r-- | sys-power/powermgmt-base/ChangeLog | 11 | ||||
-rw-r--r-- | sys-power/powermgmt-base/metadata.xml | 5 | ||||
-rw-r--r-- | sys-power/powermgmt-base/powermgmt-base-1.22.ebuild | 4 | ||||
-rw-r--r-- | sys-power/powermgmt-base/powermgmt-base-1.31.ebuild | 49 |
4 files changed, 64 insertions, 5 deletions
diff --git a/sys-power/powermgmt-base/ChangeLog b/sys-power/powermgmt-base/ChangeLog index c3b33421156c..35a6c1b3cecd 100644 --- a/sys-power/powermgmt-base/ChangeLog +++ b/sys-power/powermgmt-base/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-power/powermgmt-base -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/powermgmt-base/ChangeLog,v 1.18 2009/10/17 11:40:10 bangert Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powermgmt-base/ChangeLog,v 1.19 2010/07/08 07:37:42 ssuominen Exp $ + +*powermgmt-base-1.31 (08 Jul 2010) + + 08 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> + +powermgmt-base-1.31.ebuild, metadata.xml: + Version bump. Use on_ac_power from sys-power/pm-utils with USE="pm-utils" + wrt #255249. *powermgmt-base-1.30 (17 Oct 2009) diff --git a/sys-power/powermgmt-base/metadata.xml b/sys-power/powermgmt-base/metadata.xml index b27ff8eb4ed6..ab0db952a4d8 100644 --- a/sys-power/powermgmt-base/metadata.xml +++ b/sys-power/powermgmt-base/metadata.xml @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>mobile</herd> + <herd>mobile</herd> + <use> + <flag name="pm-utils">Adds support for on_ac_power through <pkg>sys-power/pm-utils</pkg></flag> + </use> </pkgmetadata> diff --git a/sys-power/powermgmt-base/powermgmt-base-1.22.ebuild b/sys-power/powermgmt-base/powermgmt-base-1.22.ebuild index dcc27d40c455..bae6824119b1 100644 --- a/sys-power/powermgmt-base/powermgmt-base-1.22.ebuild +++ b/sys-power/powermgmt-base/powermgmt-base-1.22.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/powermgmt-base/powermgmt-base-1.22.ebuild,v 1.9 2007/06/24 23:47:55 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/powermgmt-base/powermgmt-base-1.22.ebuild,v 1.10 2010/07/08 07:37:42 ssuominen Exp $ DESCRIPTION="Script to test whether computer is running on AC power" HOMEPAGE="http://packages.debian.org/testing/utils/powermgmt-base" diff --git a/sys-power/powermgmt-base/powermgmt-base-1.31.ebuild b/sys-power/powermgmt-base/powermgmt-base-1.31.ebuild new file mode 100644 index 000000000000..2c97d21e493c --- /dev/null +++ b/sys-power/powermgmt-base/powermgmt-base-1.31.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powermgmt-base/powermgmt-base-1.31.ebuild,v 1.1 2010/07/08 07:37:42 ssuominen Exp $ + +EAPI=2 +inherit toolchain-funcs + +DESCRIPTION="Script to test whether computer is running on AC power" +HOMEPAGE="http://packages.debian.org/testing/utils/powermgmt-base" +SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86" +IUSE="+pm-utils" + +RDEPEND="sys-apps/gawk + sys-apps/grep + sys-apps/module-init-tools + pm-utils? ( >=sys-power/pm-utils-1.4.1 )" + +S=${WORKDIR}/${PN} + +src_prepare() { + sed -i \ + -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' \ + src/Makefile || die +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS} -Wall -Wstrict-prototypes -DLINUX" +} + +src_install() { + dodir /sbin + emake DESTDIR="${D}" install || die + + doman man/{acpi,apm}_available.1 || die + + if ! use pm-utils; then + man/on_ac_power.1 || die + else + rm -f "${D}"/sbin/on_ac_power || die + fi + + newdoc debian/powermgmt-base.README.Debian README + dodoc debian/changelog +} |