commit: b60423c2b342a6f797bdd1a8d090704f0295b48e Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Thu Oct 21 11:28:02 2021 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Thu Oct 21 11:28:08 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b60423c2
sys-process/top-apple: port to EAPI=8, bug #819180 Closes: https://bugs.gentoo.org/819180 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> sys-process/top-apple/top-apple-73.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys-process/top-apple/top-apple-73.ebuild b/sys-process/top-apple/top-apple-73.ebuild index ddaa676b5d8..be0e8c1b0ce 100644 --- a/sys-process/top-apple/top-apple-73.ebuild +++ b/sys-process/top-apple/top-apple-73.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=8 -inherit toolchain-funcs epatch +inherit toolchain-funcs DESCRIPTION="Apple's top from Mac OS X Lion 10.7" HOMEPAGE="http://www.opensource.apple.com/" @@ -21,9 +21,11 @@ S=${WORKDIR}/top-${PV} src_prepare() { # libutil.h header is missing at least on Leopard (10.5), the dylib just # exists - [[ ! -e ${ROOT}/usr/include/libutil.h ]] && \ + [[ ! -e ${ESYSROOT}/usr/include/libutil.h ]] && \ cp "${DISTDIR}"/libutil-11-top-${PV}.h "${S}"/libutil.h || die - epatch "${FILESDIR}"/${P}-darwin9.patch + eapply -p0 "${FILESDIR}"/${P}-darwin9.patch + + eapply_user } src_compile() {