aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ferrazzi <alicef@gentoo.org>2017-06-15 15:49:02 +0900
committerAlice Ferrazzi <alicef@gentoo.org>2017-06-15 15:49:02 +0900
commite9f9ef7e653b0cfc4c6bef620ce7aab90da713a0 (patch)
treefe3d81ce16ebe51aaf08c72622b471aec47c5b85 /sys-kernel
parentadded kpatch revision (diff)
downloadelivepatch-e9f9ef7e653b0cfc4c6bef620ce7aab90da713a0.tar.gz
elivepatch-e9f9ef7e653b0cfc4c6bef620ce7aab90da713a0.tar.bz2
elivepatch-e9f9ef7e653b0cfc4c6bef620ce7aab90da713a0.zip
restored same kpatch-0.4.0.ebuild as the one in the repository
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/kpatch/kpatch-0.4.0.ebuild22
1 files changed, 7 insertions, 15 deletions
diff --git a/sys-kernel/kpatch/kpatch-0.4.0.ebuild b/sys-kernel/kpatch/kpatch-0.4.0.ebuild
index e5a5e11..a43c523 100644
--- a/sys-kernel/kpatch/kpatch-0.4.0.ebuild
+++ b/sys-kernel/kpatch/kpatch-0.4.0.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI="6"
+EAPI=6
inherit linux-info linux-mod flag-o-matic
-if [[ "${PV}" == "9999" ]]; then
+if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/dynup/${PN}.git"
else
@@ -25,14 +25,12 @@ RDEPEND="
dev-libs/openssl:0=
sys-libs/zlib
sys-apps/pciutils
- sys-libs/ncurses:=
-"
-
+ sys-libs/ncurses:0
+ sys-apps/yum"
DEPEND="
${RDEPEND}
dev-libs/elfutils
- sys-devel/bison
-"
+ sys-devel/bison"
pkg_pretend() {
if kernel_is gt 3 9 0; then
@@ -64,14 +62,8 @@ src_prepare() {
default
}
-src_compile() {
- set_arch_to_kernel
- emake all
-}
-
src_install() {
- set_arch_to_kernel
- emake DESTDIR="${D}" PREFIX="/usr" install
-
+ unset ARCH
+ emake DESTDIR="${D}" all install
einstalldocs
}