1 |
commit: 1241beb6e5725096b6a27987b23bc1a4fc45cb40 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 11 00:17:41 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 11 00:29:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1241beb6 |
7 |
|
8 |
sys-apps/grepcidr: port to EAPI 7 |
9 |
|
10 |
* Fix VariableScope (EROOT) |
11 |
* Respect CPPFLAGS, LDFLAGS |
12 |
|
13 |
Closes: https://bugs.gentoo.org/725602 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
sys-apps/grepcidr/files/grepcidr-2.0-Makefile.patch | 12 ++++++++++++ |
17 |
sys-apps/grepcidr/grepcidr-2.0.ebuild | 18 +++++++++++------- |
18 |
2 files changed, 23 insertions(+), 7 deletions(-) |
19 |
|
20 |
diff --git a/sys-apps/grepcidr/files/grepcidr-2.0-Makefile.patch b/sys-apps/grepcidr/files/grepcidr-2.0-Makefile.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..e9eb0a39113 |
23 |
--- /dev/null |
24 |
+++ b/sys-apps/grepcidr/files/grepcidr-2.0-Makefile.patch |
25 |
@@ -0,0 +1,12 @@ |
26 |
+Respect CPPFLAGS, LDFLAGS> |
27 |
+--- a/Makefile |
28 |
++++ b/Makefile |
29 |
+@@ -15,7 +15,7 @@ LDFLAGS= |
30 |
+ all: grepcidr |
31 |
+ |
32 |
+ grepcidr: grepcidr.o |
33 |
+- $(CC) $(CFLAGS) grepcidr.o -o grepcidr |
34 |
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) grepcidr.o -o grepcidr |
35 |
+ |
36 |
+ doc: grepcidr.1 |
37 |
+ |
38 |
|
39 |
diff --git a/sys-apps/grepcidr/grepcidr-2.0.ebuild b/sys-apps/grepcidr/grepcidr-2.0.ebuild |
40 |
index 77b3863961f..4b99fd34edb 100644 |
41 |
--- a/sys-apps/grepcidr/grepcidr-2.0.ebuild |
42 |
+++ b/sys-apps/grepcidr/grepcidr-2.0.ebuild |
43 |
@@ -1,7 +1,7 @@ |
44 |
-# Copyright 1999-2015 Gentoo Foundation |
45 |
+# Copyright 1999-2021 Gentoo Authors |
46 |
# Distributed under the terms of the GNU General Public License v2 |
47 |
|
48 |
-EAPI=5 |
49 |
+EAPI=7 |
50 |
|
51 |
inherit toolchain-funcs |
52 |
|
53 |
@@ -12,17 +12,21 @@ SRC_URI="http://www.pc-tools.net/files/unix/${P}.tar.gz" |
54 |
LICENSE="GPL-3" |
55 |
SLOT="0" |
56 |
KEYWORDS="~amd64 ~x86" |
57 |
-IUSE="" |
58 |
|
59 |
-DEPEND="" |
60 |
-RDEPEND="${DEPEND}" |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}"/${PN}-2.0-Makefile.patch |
63 |
+) |
64 |
|
65 |
src_compile() { |
66 |
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
67 |
+ emake \ |
68 |
+ CC="$(tc-getCC)" \ |
69 |
+ CFLAGS="${CFLAGS}" \ |
70 |
+ CPPFLAGS="${CPPFLAGS}" \ |
71 |
+ LDFLAGS="${LDFLAGS}" |
72 |
} |
73 |
|
74 |
src_install() { |
75 |
- emake DESTDIR="${D}" PREFIX="${EROOT}/usr" install |
76 |
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install |
77 |
|
78 |
dodoc README ChangeLog |
79 |
} |