commit:     b766634896d5a6d49c6c068ff54117bf1de4cfa7
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 17 13:02:54 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Jan 17 13:07:18 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7666348

sys-power/acpi_call: update live ebuild

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 sys-power/acpi_call/acpi_call-9999.ebuild | 32 +++++++++++++++++--------------
 1 file changed, 18 insertions(+), 14 deletions(-)

diff --git a/sys-power/acpi_call/acpi_call-9999.ebuild 
b/sys-power/acpi_call/acpi_call-9999.ebuild
index ba87b06a3dc..ba449334ffc 100644
--- a/sys-power/acpi_call/acpi_call-9999.ebuild
+++ b/sys-power/acpi_call/acpi_call-9999.ebuild
@@ -1,24 +1,18 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit linux-info linux-mod
+inherit git-r3 linux-info linux-mod
 
-HOMEPAGE="https://github.com/teleshoes/acpi_call";
-if [ "${PV}" = "9999" ]; then
-       inherit git-r3
-       EGIT_REPO_URI="https://github.com/teleshoes/acpi_call.git";
-       KEYWORDS=""
-else
-       SRC_URI="https://github.com/teleshoes/acpi_call/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-       KEYWORDS="~amd64"
-fi
+DESCRIPTION="A linux kernel module that enables calls to ACPI"
+HOMEPAGE="https://github.com/nix-community/acpi_call";
+EGIT_REPO_URI="https://github.com/teleshoes/acpi_call.git";
 
-DESCRIPTION="A kernel module that enables you to call ACPI methods"
-
-LICENSE="GPL-2"
+LICENSE="GPL-3+"
 SLOT="0"
+KEYWORDS=""
+IUSE="examples"
 
 BUILD_TARGETS="default"
 CONFIG_CHECK="ACPI"
@@ -26,5 +20,15 @@ MODULE_NAMES="acpi_call(misc:${S})"
 
 src_compile() {
        BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}"
+
        linux-mod_src_compile
 }
+
+src_install() {
+       linux-mod_src_install
+
+       if use examples; then
+               insinto /usr/share/acpi_call
+               doins examples/*.sh
+       fi
+}

Reply via email to