diff options
author | 2017-06-02 23:11:24 +0200 | |
---|---|---|
committer | 2017-06-02 23:27:19 +0200 | |
commit | 5056af7d35b5f0c359d571f3585a957a4d70768c (patch) | |
tree | 61dc5a277f566ef840bb3c8cc4ebd5468e05a946 /sys-power | |
parent | Update xed to 1.4.2 (diff) | |
download | haarp-5056af7d35b5f0c359d571f3585a957a4d70768c.tar.gz haarp-5056af7d35b5f0c359d571f3585a957a4d70768c.tar.bz2 haarp-5056af7d35b5f0c359d571f3585a957a4d70768c.zip |
Add ec_access ebuild
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/ec_access/Manifest | 1 | ||||
-rw-r--r-- | sys-power/ec_access/ec_access-9999.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/sys-power/ec_access/Manifest b/sys-power/ec_access/Manifest new file mode 100644 index 0000000..98742e9 --- /dev/null +++ b/sys-power/ec_access/Manifest @@ -0,0 +1 @@ +EBUILD ec_access-9999.ebuild 1015 SHA256 67af7ee4a20b6cf6d2dbd0e2ae3be8b8a744b882844158241033beeeb09e18ea SHA512 3e51c1b6975fffea8e0d3f690460339c42d12c83395240b6bdf402e2a597990ca955ccb1079828f8132c6bcf0a3d2ad759adb4841f429abd8e85e17342401e0e WHIRLPOOL dc0d76f04401eb8d18a42660b740182153494c27b023d32bbebc2aa48a283e5dbab9f48ddda77307ec8e78269be33ff0161f80c5f139af1094f6b2a3b96a7c00 diff --git a/sys-power/ec_access/ec_access-9999.ebuild b/sys-power/ec_access/ec_access-9999.ebuild new file mode 100644 index 0000000..49305f9 --- /dev/null +++ b/sys-power/ec_access/ec_access-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info toolchain-funcs + +DESCRIPTION="Tool to acces the Embedded Controller" +HOMEPAGE="https://github.com/torvalds/linux/blob/master/tools/power/acpi/tools/ec/ec_access.c" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="sys-libs/glibc" +DEPEND="${DEPEND} + >=sys-kernel/gentoo-sources-3.16" + +pkg_setup() { + CONFIG_CHECK="~ACPI_EC_DEBUGFS" + + linux-info_pkg_setup + if linux_config_exists; then + check_extra_config + fi +} + +src_unpack() { + mkdir -p "${S}" + cp "${KERNEL_DIR}/tools/power/acpi/tools/ec"/* "${S}/" || die "ec_access not found in kernel sources!" + cd "${S}" +} + +src_prepare() { + ewarn "This ebuild grabs ${PN} from your active kernel's sources!" + default +} + +src_compile() { + echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS} ec_access.c -o ec_access" + $(tc-getCC) ${CFLAGS} ${LDFLAGS} ec_access.c -o ec_access || die "compile failure!" +} + +src_install() { + dobin ec_access +} |