summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-07-31 06:03:48 +0100
committerSam James <sam@gentoo.org>2021-07-31 06:03:48 +0100
commit26b20e9c127c72c641d83163a8aefe09173ac99a (patch)
treee459f5dc6d062cdc69480f7f7c436edde2f5741a /sys-apps/hotplug2stdout
parentsys-apps/fix-gnustack: update EAPI 5 -> 7 (diff)
downloadgentoo-26b20e9c127c72c641d83163a8aefe09173ac99a.tar.gz
gentoo-26b20e9c127c72c641d83163a8aefe09173ac99a.tar.bz2
gentoo-26b20e9c127c72c641d83163a8aefe09173ac99a.zip
sys-apps/hotplug2stdout: update EAPI 5 -> 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/hotplug2stdout')
-rw-r--r--sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild24
1 files 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 24d87721c34c..c38d1da44a2b 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}
+}