You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.2 KiB
58 lines
1.2 KiB
# Copyright 1999-2021 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() {
|
|
dosbin acpidump/acpidump
|
|
newbin acpixtract/acpixtract acpixtract-pmtools
|
|
dobin madt/madt
|
|
|
|
dodoc README
|
|
docinto madt
|
|
dodoc madt/README
|
|
use doc && dodoc madt/APIC*
|
|
}
|
|
|
|
pkg_postinst() {
|
|
ewarn "Please note that acpixtract is now named acpixtract-pmtools to avoid"
|
|
ewarn "conflicts with the new tool of the same name from the iasl package."
|
|
}
|