From c0cdec47c79d092dd9863e19817fd64433833593 Mon Sep 17 00:00:00 2001 From: Jakov Smolic Date: Sun, 21 Feb 2021 11:56:19 +0100 Subject: sys-power/powermgmt-base: Port to EAPI 7, drop pm-utils USE flag Signed-off-by: Jakov Smolic Signed-off-by: David Seifert --- sys-power/powermgmt-base/metadata.xml | 5 +-- .../powermgmt-base/powermgmt-base-1.31-r1.ebuild | 48 ---------------------- .../powermgmt-base/powermgmt-base-1.31-r2.ebuild | 46 +++++++++++++++++++++ 3 files changed, 47 insertions(+), 52 deletions(-) delete mode 100644 sys-power/powermgmt-base/powermgmt-base-1.31-r1.ebuild create mode 100644 sys-power/powermgmt-base/powermgmt-base-1.31-r2.ebuild (limited to 'sys-power') diff --git a/sys-power/powermgmt-base/metadata.xml b/sys-power/powermgmt-base/metadata.xml index 7e5225dfb557..7a38bb900964 100644 --- a/sys-power/powermgmt-base/metadata.xml +++ b/sys-power/powermgmt-base/metadata.xml @@ -1,8 +1,5 @@ - - - Adds support for on_ac_power through sys-power/pm-utils - + diff --git a/sys-power/powermgmt-base/powermgmt-base-1.31-r1.ebuild b/sys-power/powermgmt-base/powermgmt-base-1.31-r1.ebuild deleted file mode 100644 index 974b61639253..000000000000 --- a/sys-power/powermgmt-base/powermgmt-base-1.31-r1.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -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="!pm-utils? ( virtual/awk ) - sys-apps/grep - sys-apps/kmod[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 - - doman man/{acpi,apm}_available.1 - - if ! use pm-utils; then - doman man/on_ac_power.1 - else - rm -f "${D}"/sbin/on_ac_power - fi - - newdoc debian/powermgmt-base.README.Debian README - dodoc debian/changelog -} diff --git a/sys-power/powermgmt-base/powermgmt-base-1.31-r2.ebuild b/sys-power/powermgmt-base/powermgmt-base-1.31-r2.ebuild new file mode 100644 index 000000000000..cac5e37fe874 --- /dev/null +++ b/sys-power/powermgmt-base/powermgmt-base-1.31-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +RDEPEND=" + virtual/awk + sys-apps/grep + sys-apps/kmod[tools]" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" + +src_prepare() { + default + 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 + + doman man/{acpi,apm}_available.1 + + doman man/on_ac_power.1 + + newdoc debian/powermgmt-base.README.Debian README + dodoc debian/changelog +} -- cgit v1.2.3-65-gdbad