1 |
commit: 481e4782929aef758ba3de9d28cc598d88a1fe9c |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 9 18:49:24 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 9 18:49:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=481e4782 |
7 |
|
8 |
net-libs/udns: Port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-2.3.88, Repoman-2.3.20 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
net-libs/udns/metadata.xml | 14 +++++++------- |
14 |
net-libs/udns/udns-0.4.ebuild | 26 ++++++++------------------ |
15 |
2 files changed, 15 insertions(+), 25 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/udns/metadata.xml b/net-libs/udns/metadata.xml |
18 |
index f0db182dbd4..63f96226167 100644 |
19 |
--- a/net-libs/udns/metadata.xml |
20 |
+++ b/net-libs/udns/metadata.xml |
21 |
@@ -1,11 +1,11 @@ |
22 |
<?xml version="1.0" encoding="UTF-8"?> |
23 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
24 |
<pkgmetadata> |
25 |
-<!-- maintainer-needed --> |
26 |
-<use> |
27 |
- <flag name="tools">Build and install dnsget, ex-rdns and rblcheck tools</flag> |
28 |
-</use> |
29 |
-<longdescription> |
30 |
-UDNS is a stub DNS resolver library with ability to perform both syncronous and asyncronous DNS queries. |
31 |
-</longdescription> |
32 |
+ <!-- maintainer-needed --> |
33 |
+ <use> |
34 |
+ <flag name="tools">Build and install dnsget, ex-rdns and rblcheck tools</flag> |
35 |
+ </use> |
36 |
+ <longdescription> |
37 |
+ UDNS is a stub DNS resolver library with ability to perform both syncronous and asyncronous DNS queries. |
38 |
+ </longdescription> |
39 |
</pkgmetadata> |
40 |
|
41 |
diff --git a/net-libs/udns/udns-0.4.ebuild b/net-libs/udns/udns-0.4.ebuild |
42 |
index f19b2595dc0..0953628925e 100644 |
43 |
--- a/net-libs/udns/udns-0.4.ebuild |
44 |
+++ b/net-libs/udns/udns-0.4.ebuild |
45 |
@@ -1,9 +1,9 @@ |
46 |
-# Copyright 1999-2015 Gentoo Foundation |
47 |
+# Copyright 1999-2020 Gentoo Authors |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
|
50 |
-EAPI="4" |
51 |
+EAPI=7 |
52 |
|
53 |
-inherit eutils multilib toolchain-funcs |
54 |
+inherit toolchain-funcs |
55 |
|
56 |
DESCRIPTION="Async-capable DNS stub resolver library" |
57 |
HOMEPAGE="http://www.corpit.ru/mjt/udns.html" |
58 |
@@ -14,26 +14,18 @@ SLOT="0" |
59 |
KEYWORDS="amd64 ~hppa ppc ~ppc64 sparc x86" |
60 |
IUSE="ipv6 static +tools" |
61 |
|
62 |
-# Yes, this doesn't depend on any other library beside "system" set |
63 |
-DEPEND="" |
64 |
-RDEPEND="" |
65 |
- |
66 |
src_configure() { |
67 |
# Uses non-standard configure script, econf doesn't work |
68 |
CC=$(tc-getCC) ./configure $(use_enable ipv6) || die "Configure failed" |
69 |
} |
70 |
|
71 |
src_compile() { |
72 |
- if use tools; then |
73 |
- emake shared |
74 |
- else |
75 |
- emake sharedlib |
76 |
- fi |
77 |
+ emake $(usex tools shared sharedlib) |
78 |
} |
79 |
|
80 |
src_install() { |
81 |
dolib.so libudns.so.0 |
82 |
- dosym libudns.so.0 "/usr/$(get_libdir)/libudns.so" |
83 |
+ dosym libudns.so.0 /usr/$(get_libdir)/libudns.so |
84 |
|
85 |
if use tools; then |
86 |
newbin dnsget_s dnsget |
87 |
@@ -41,12 +33,10 @@ src_install() { |
88 |
newbin rblcheck_s rblcheck |
89 |
fi |
90 |
|
91 |
- insinto /usr/include |
92 |
- doins udns.h |
93 |
+ doheader udns.h |
94 |
|
95 |
doman udns.3 |
96 |
- if use tools; then |
97 |
- doman dnsget.1 rblcheck.1 |
98 |
- fi |
99 |
+ use tools && doman dnsget.1 rblcheck.1 |
100 |
+ |
101 |
dodoc NEWS NOTES TODO |
102 |
} |