dev-libs/libcgroup: epatch->PATCHES=()

Also dropped unneeded eutils eclass.

Package-Manager: Portage-2.3.31, Repoman-2.3.9
This commit is contained in:
Marty E. Plummer
2018-04-20 11:34:22 -05:00
committed by Anthony G. Basile
parent 2cfe92ed72
commit 5ac232c7f6

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
EAPI=6
inherit autotools eutils flag-o-matic linux-info pam
inherit autotools flag-o-matic linux-info pam
DESCRIPTION="Tools and libraries to configure and manage kernel control groups"
HOMEPAGE="http://libcg.sourceforge.net/"
@@ -33,11 +33,14 @@ pkg_setup() {
linux-info_pkg_setup
}
src_prepare() {
epatch "${FILESDIR}"/${P}-replace_DECLS.patch
epatch "${FILESDIR}"/${P}-replace_INLCUDES.patch
epatch "${FILESDIR}"/${P}-reorder-headers.patch
PATCHES=(
"${FILESDIR}"/${P}-replace_DECLS.patch
"${FILESDIR}"/${P}-replace_INLCUDES.patch
"${FILESDIR}"/${P}-reorder-headers.patch
)
src_prepare() {
default
# Change rules file location
sed -e 's:/etc/cgrules.conf:/etc/cgroup/cgrules.conf:' \
-i src/libcgroup-internal.h || die "sed failed"
@@ -47,7 +50,6 @@ src_prepare() {
-i src/pam/Makefile.am || die "sed failed"
sed -e 's#/var/run#/run#g' -i configure.in || die "sed failed"
eapply_user
eautoreconf
}