1 |
commit: 26b20e9c127c72c641d83163a8aefe09173ac99a |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 31 05:03:48 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 31 05:03:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26b20e9c |
7 |
|
8 |
sys-apps/hotplug2stdout: update EAPI 5 -> 7 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
.../hotplug2stdout/hotplug2stdout-1.2.1.ebuild | 24 ++++++++++++++++------ |
13 |
1 file changed, 18 insertions(+), 6 deletions(-) |
14 |
|
15 |
diff --git a/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild b/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild |
16 |
index 24d87721c34..c38d1da44a2 100644 |
17 |
--- a/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild |
18 |
+++ b/sys-apps/hotplug2stdout/hotplug2stdout-1.2.1.ebuild |
19 |
@@ -1,7 +1,8 @@ |
20 |
-# Copyright 1999-2013 Gentoo Foundation |
21 |
+# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=5 |
25 |
+EAPI=7 |
26 |
+ |
27 |
inherit toolchain-funcs |
28 |
|
29 |
DESCRIPTION="A tool for reading kernel uevent(s) to stdout" |
30 |
@@ -12,8 +13,19 @@ SRC_URI="mirror://gentoo/${P}.tar.gz" |
31 |
LICENSE="GPL-2" |
32 |
SLOT="0" |
33 |
KEYWORDS="amd64 x86" |
34 |
-IUSE="" |
35 |
|
36 |
-src_prepare() { rm -f ${PN}; } |
37 |
-src_compile() { $(tc-getCC) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${PN}.c -o ${PN} || die; } |
38 |
-src_install() { dobin ${PN}; } |
39 |
+src_prepare() { |
40 |
+ default |
41 |
+ |
42 |
+ # Clean up prebuilt binary |
43 |
+ rm -f ${PN} || die |
44 |
+} |
45 |
+ |
46 |
+src_compile() { |
47 |
+ elog "$(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${PN}.c -o ${PN}" |
48 |
+ $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${PN}.c -o ${PN} || die |
49 |
+} |
50 |
+ |
51 |
+src_install() { |
52 |
+ dobin ${PN} |
53 |
+} |