diff options
Diffstat (limited to 'sys-power/powermgmt-base')
-rw-r--r-- | sys-power/powermgmt-base/metadata.xml | 5 | ||||
-rw-r--r-- | sys-power/powermgmt-base/powermgmt-base-1.31-r2.ebuild (renamed from sys-power/powermgmt-base/powermgmt-base-1.31-r1.ebuild) | 22 |
2 files changed, 11 insertions, 16 deletions
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 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<!-- maintainer-needed --> -<use> - <flag name="pm-utils">Adds support for on_ac_power through <pkg>sys-power/pm-utils</pkg></flag> - </use> + <!-- maintainer-needed --> </pkgmetadata> diff --git a/sys-power/powermgmt-base/powermgmt-base-1.31-r1.ebuild b/sys-power/powermgmt-base/powermgmt-base-1.31-r2.ebuild index 974b61639253..cac5e37fe874 100644 --- a/sys-power/powermgmt-base/powermgmt-base-1.31-r1.ebuild +++ b/sys-power/powermgmt-base/powermgmt-base-1.31-r2.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 + inherit toolchain-funcs DESCRIPTION="Script to test whether computer is running on AC power" @@ -11,16 +12,17 @@ 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 ) +RDEPEND=" + virtual/awk sys-apps/grep - sys-apps/kmod[tools] - pm-utils? ( >=sys-power/pm-utils-1.4.1 )" + sys-apps/kmod[tools]" +DEPEND="${RDEPEND}" -S=${WORKDIR}/${PN} +S="${WORKDIR}/${PN}" src_prepare() { + default sed -i \ -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' \ src/Makefile || die @@ -37,11 +39,7 @@ src_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 + doman man/on_ac_power.1 newdoc debian/powermgmt-base.README.Debian README dodoc debian/changelog |