1 |
commit: a2bffd02321901c7237635515a4f486333544b30 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 2 00:43:47 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 3 16:10:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2bffd02 |
7 |
|
8 |
net-analyzer/tleds: port to EAPI 7, eutils-- |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-analyzer/tleds/files/tleds.conf.d | 2 +- |
13 |
net-analyzer/tleds/tleds-1.05_beta11-r2.ebuild | 21 ++++++++++++--------- |
14 |
2 files changed, 13 insertions(+), 10 deletions(-) |
15 |
|
16 |
diff --git a/net-analyzer/tleds/files/tleds.conf.d b/net-analyzer/tleds/files/tleds.conf.d |
17 |
index 477408d30ed..cfca606342c 100644 |
18 |
--- a/net-analyzer/tleds/files/tleds.conf.d |
19 |
+++ b/net-analyzer/tleds/files/tleds.conf.d |
20 |
@@ -1,4 +1,4 @@ |
21 |
-# Copyright 2003-2004 Gentoo Foundation |
22 |
+# Copyright 2003-2021 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
IFACE="eth0" |
26 |
|
27 |
diff --git a/net-analyzer/tleds/tleds-1.05_beta11-r2.ebuild b/net-analyzer/tleds/tleds-1.05_beta11-r2.ebuild |
28 |
index 56abdfd1f3c..34d41cc96fc 100644 |
29 |
--- a/net-analyzer/tleds/tleds-1.05_beta11-r2.ebuild |
30 |
+++ b/net-analyzer/tleds/tleds-1.05_beta11-r2.ebuild |
31 |
@@ -1,17 +1,18 @@ |
32 |
-# Copyright 1999-2014 Gentoo Foundation |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
# Distributed under the terms of the GNU General Public License v2 |
35 |
|
36 |
-EAPI=5 |
37 |
-inherit eutils toolchain-funcs |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit toolchain-funcs |
41 |
|
42 |
MY_P="${P/_/}" |
43 |
-S="${WORKDIR}/${MY_P/eta11/}" |
44 |
DESCRIPTION="Blinks keyboard LEDs indicating outgoing and incoming network packets on selected network interface" |
45 |
HOMEPAGE="http://www.hut.fi/~jlohikos/tleds_orig.html" |
46 |
SRC_URI=" |
47 |
http://www.hut.fi/~jlohikos/tleds/public/${MY_P/11/10}.tgz |
48 |
http://www.hut.fi/~jlohikos/tleds/public/${MY_P}.patch.bz2 |
49 |
" |
50 |
+S="${WORKDIR}/${MY_P/eta11/}" |
51 |
|
52 |
LICENSE="GPL-2" |
53 |
SLOT="0" |
54 |
@@ -22,14 +23,16 @@ DEPEND="X? ( x11-libs/libX11 )" |
55 |
RDEPEND="${DEPEND}" |
56 |
|
57 |
src_prepare() { |
58 |
- # code patches |
59 |
- epatch \ |
60 |
- "${WORKDIR}"/${MY_P}.patch \ |
61 |
- "${FILESDIR}"/${P}-gentoo.patch |
62 |
+ default |
63 |
+ |
64 |
+ eapply "${WORKDIR}"/${MY_P}.patch |
65 |
+ eapply "${FILESDIR}"/${P}-gentoo.patch |
66 |
} |
67 |
|
68 |
src_compile() { |
69 |
- emake CC=$(tc-getCC) $(usex X all tleds) |
70 |
+ emake \ |
71 |
+ CC="$(tc-getCC)" \ |
72 |
+ $(usex X all tleds) |
73 |
} |
74 |
|
75 |
src_install() { |