commit: 26b20e9c127c72c641d83163a8aefe09173ac99a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Jul 31 05:03:48 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jul 31 05:03:48 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26b20e9c
sys-apps/hotplug2stdout: update EAPI 5 -> 7 Signed-off-by: Sam James <sam <AT> gentoo.org> .../hotplug2stdout/hotplug2stdout-1.2.1.ebuild | 24 ++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild b/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild index 24d87721c34..c38d1da44a2 100644 --- a/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild +++ b/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 + inherit toolchain-funcs DESCRIPTION="A tool for reading kernel uevent(s) to stdout" @@ -12,8 +13,19 @@ SRC_URI="mirror://gentoo/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" -IUSE="" -src_prepare() { rm -f ${PN}; } -src_compile() { $(tc-getCC) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${PN}.c -o ${PN} || die; } -src_install() { dobin ${PN}; } +src_prepare() { + default + + # Clean up prebuilt binary + rm -f ${PN} || die +} + +src_compile() { + elog "$(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${PN}.c -o ${PN}" + $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${PN}.c -o ${PN} || die +} + +src_install() { + dobin ${PN} +}