diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/udns/udns-0.4.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/udns/udns-0.4.ebuild')
-rw-r--r-- | net-libs/udns/udns-0.4.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net-libs/udns/udns-0.4.ebuild b/net-libs/udns/udns-0.4.ebuild new file mode 100644 index 000000000000..4702098a5cba --- /dev/null +++ b/net-libs/udns/udns-0.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Async-capable DNS stub resolver library" +HOMEPAGE="http://www.corpit.ru/mjt/udns.html" +SRC_URI="http://www.corpit.ru/mjt/udns/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ~hppa ppc ~ppc64 sparc x86 ~x86-fbsd" +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 +} + +src_install() { + dolib.so libudns.so.0 + dosym libudns.so.0 "/usr/$(get_libdir)/libudns.so" + + if use tools; then + newbin dnsget_s dnsget + newbin ex-rdns_s ex-rdns + newbin rblcheck_s rblcheck + fi + + insinto /usr/include + doins udns.h + + doman udns.3 + if use tools; then + doman dnsget.1 rblcheck.1 + fi + dodoc NEWS NOTES TODO +} |