diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-13 12:48:53 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-13 12:48:53 +0000 |
commit | 7c1ac01728d0156998ee45be74f80b378d96c31d (patch) | |
tree | 6634bea5058fa5133bb0227fd6f1da9aea4ca8f7 /sys-power/pmtools/pmtools-20110323-r2.ebuild | |
parent | b2d06fcf55b2f88efa183831072c7bca3f8e418b (diff) |
gentoo auto-resync : 13:11:2022 - 12:48:53
Diffstat (limited to 'sys-power/pmtools/pmtools-20110323-r2.ebuild')
-rw-r--r-- | sys-power/pmtools/pmtools-20110323-r2.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sys-power/pmtools/pmtools-20110323-r2.ebuild b/sys-power/pmtools/pmtools-20110323-r2.ebuild new file mode 100644 index 000000000000..adb4c42c4c64 --- /dev/null +++ b/sys-power/pmtools/pmtools-20110323-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Collection of tools for ACPI and power management" +HOMEPAGE="https://github.com/anyc/pmtools/" +SRC_URI="https://github.com/anyc/pmtools/tarball/${PV} -> ${P}.tar.gz" +S="${WORKDIR}/pmtools" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="doc" + +RDEPEND=" + dev-lang/perl + >=sys-power/iasl-20090521" + +PATCHES=( + "${FILESDIR}"/${PN}-20100123-acpixtract-pmtools.patch + "${FILESDIR}"/${PN}-20100123-madt.patch + "${FILESDIR}"/${PN}-20071116-64bit.patch + "${FILESDIR}"/${PN}-20101124-cflags-ldflags.patch +) + +src_prepare() { + default + + # update version info + sed -i -e "s|20060324|20110323|" acpixtract/acpixtract.c || die + + strip-unsupported-flags +} + +src_compile() { + # respect user's LDFLAGS + emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" +} + +src_install() { + newbin acpidump/acpidump acpidump-pmtools + newbin acpixtract/acpixtract acpixtract-pmtools + dobin madt/madt + + dodoc README + docinto madt + dodoc madt/README + use doc && dodoc madt/APIC* +} |