1 |
commit: 302de7d521d48c4b1682a29a3af965c101f64607 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 5 16:34:55 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 5 16:34:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=302de7d5 |
7 |
|
8 |
net-libs/libnet: modernise ebuild for 1.0.2a-r7 |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-libs/libnet/libnet-1.0.2a-r7.ebuild | 32 ++++++++++++++++++-------------- |
14 |
1 file changed, 18 insertions(+), 14 deletions(-) |
15 |
|
16 |
diff --git a/net-libs/libnet/libnet-1.0.2a-r7.ebuild b/net-libs/libnet/libnet-1.0.2a-r7.ebuild |
17 |
index dfef828f59d..c07ef94b90a 100644 |
18 |
--- a/net-libs/libnet/libnet-1.0.2a-r7.ebuild |
19 |
+++ b/net-libs/libnet/libnet-1.0.2a-r7.ebuild |
20 |
@@ -1,12 +1,14 @@ |
21 |
-# Copyright 1999-2020 Gentoo Authors |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=7 |
26 |
+ |
27 |
inherit autotools toolchain-funcs |
28 |
|
29 |
DESCRIPTION="library providing an API for commonly used low-level network functions" |
30 |
HOMEPAGE="http://www.packetfactory.net/libnet/" |
31 |
SRC_URI="http://www.packetfactory.net/libnet/dist/deprecated/${P}.tar.gz" |
32 |
+S="${WORKDIR}"/Libnet-${PV} |
33 |
|
34 |
LICENSE="BSD BSD-2 HPND" |
35 |
SLOT="1.0" |
36 |
@@ -21,29 +23,27 @@ PATCHES=( |
37 |
"${FILESDIR}"/${PN}-1.0.2a-test.patch |
38 |
|
39 |
) |
40 |
-S=${WORKDIR}/Libnet-${PV} |
41 |
|
42 |
src_prepare() { |
43 |
default |
44 |
|
45 |
- cd "${S}" |
46 |
+ cd "${S}" || die |
47 |
mv libnet-config.in libnet-${SLOT}-config.in || die "moving libnet-config" |
48 |
|
49 |
- cd "${S}"/include |
50 |
- ln -s libnet.h libnet-${SLOT}.h |
51 |
+ cd "${S}"/include || die |
52 |
+ ln -s libnet.h libnet-${SLOT}.h || die |
53 |
|
54 |
- cd libnet |
55 |
+ cd libnet || die |
56 |
for f in *.h ; do |
57 |
ln -s ${f} ${f/-/-${SLOT}-} || die |
58 |
done |
59 |
|
60 |
- cd "${S}"/doc |
61 |
+ cd "${S}"/doc || die |
62 |
ln -s libnet.3 libnet-${SLOT}.3 || die |
63 |
|
64 |
- cd "${S}" |
65 |
- |
66 |
- eautoconf |
67 |
+ cd "${S}" || die |
68 |
|
69 |
+ eautoreconf |
70 |
tc-export AR RANLIB |
71 |
} |
72 |
|
73 |
@@ -53,11 +53,15 @@ src_test() { |
74 |
|
75 |
src_install() { |
76 |
default |
77 |
- doman "${D}"/usr/man/man3/libnet-1.0.3 |
78 |
- rm -r "${D}"/usr/man |
79 |
+ doman "${ED}"/usr/man/man3/libnet-1.0.3 |
80 |
+ rm -r "${ED}"/usr/man || die |
81 |
|
82 |
dodoc VERSION doc/{README,TODO*,CHANGELOG*} |
83 |
newdoc README README.1st |
84 |
- docinto example ; dodoc example/libnet* |
85 |
- docinto Ancillary ; dodoc doc/Ancillary/* |
86 |
+ |
87 |
+ docinto example |
88 |
+ dodoc example/libnet* |
89 |
+ |
90 |
+ docinto Ancillary |
91 |
+ dodoc doc/Ancillary/* |
92 |
} |