1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 DESCRIPTION="ldns is a library with the aim to simplify DNS programing in C"
6 HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
9 IUSE="doc examples sha2 ssl"
10 KEYWORDS="~amd64 ~x86"
12 SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz"
14 RDEPEND="ssl? ( dev-libs/openssl )"
16 doc? ( app-doc/doxygen )"
21 die "For sha2 support, you have to enable ssl USE flag too"
23 ewarn "You enabled sha2 USE flag, this is still experimental"
32 emake || die "emake failed"
34 emake doxygen || die "emake doc failed"
39 emake DESTDIR="${D}" install || die "emake install failed"
40 dodoc Changelog README || die "dodoc failed"
44 dodoc examples/* || die "dodoc for examples failed"
48 dohtml doc/html/* || die "dohtml failed"
53 einfo "The drill binary and the ldns-* utilities were moved into their own"
54 einfo "package. If you need them, install net-dns/ldns-utils."