net-libs/udns: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Sun, 9 Feb 2020 18:49:24 +0000 (19:49 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 9 Feb 2020 18:49:24 +0000 (19:49 +0100)
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
net-libs/udns/metadata.xml
net-libs/udns/udns-0.4.ebuild

index f0db182dbd4268398d0a9fa2748cf7779eb50340..63f96226167402dd200c19da11f1580821de8f8d 100644 (file)
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<!-- maintainer-needed -->
-<use>
-       <flag name="tools">Build and install dnsget, ex-rdns and rblcheck tools</flag>
-</use>
-<longdescription>
-UDNS is a stub DNS resolver library with ability to perform both syncronous and asyncronous DNS queries.
-</longdescription>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="tools">Build and install dnsget, ex-rdns and rblcheck tools</flag>
+       </use>
+       <longdescription>
+               UDNS is a stub DNS resolver library with ability to perform both syncronous and asyncronous DNS queries.
+       </longdescription>
 </pkgmetadata>
index f19b2595dc0b843b3194d5eb28b3ed999dffbd53..0953628925ed8e1cd1dc04879d81f0cc55310f96 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
+EAPI=7
 
-inherit eutils multilib toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="Async-capable DNS stub resolver library"
 HOMEPAGE="http://www.corpit.ru/mjt/udns.html"
@@ -14,26 +14,18 @@ SLOT="0"
 KEYWORDS="amd64 ~hppa ppc ~ppc64 sparc x86"
 IUSE="ipv6 static +tools"
 
-# Yes, this doesn't depend on any other library beside "system" set
-DEPEND=""
-RDEPEND=""
-
 src_configure() {
        # Uses non-standard configure script, econf doesn't work
        CC=$(tc-getCC) ./configure $(use_enable ipv6) || die "Configure failed"
 }
 
 src_compile() {
-       if use tools; then
-               emake shared
-       else
-               emake sharedlib
-       fi
+       emake $(usex tools shared sharedlib)
 }
 
 src_install() {
        dolib.so libudns.so.0
-       dosym libudns.so.0 "/usr/$(get_libdir)/libudns.so"
+       dosym libudns.so.0 /usr/$(get_libdir)/libudns.so
 
        if use tools; then
                newbin dnsget_s dnsget
@@ -41,12 +33,10 @@ src_install() {
                newbin rblcheck_s rblcheck
        fi
 
-       insinto /usr/include
-       doins udns.h
+       doheader udns.h
 
        doman udns.3
-       if use tools; then
-               doman dnsget.1 rblcheck.1
-       fi
+       use tools && doman dnsget.1 rblcheck.1
+
        dodoc NEWS NOTES TODO
 }