# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit libtool eutils DESCRIPTION="ldns is a library with the aim to simplify DNS programing in C" HOMEPAGE="http://www.nlnetlabs.nl/ldns/" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" IUSE="" SRC_URI="http://www.nlnetlabs.nl/downloads/${P}.tar.gz" DEPEND="dev-lang/perl" src_unpack() { unpack ${P}.tar.gz } src_compile() { local myconf="--prefix=/usr" elibtoolize econf $myconf || die "Libldns configuration failed" emake copy-headers cd drill econf $myconf || die "Drill configuration failed" cd .. emake || die "Libldns compilation failed" cd drill emake || die "Drill compilation failed" cd .. } src_install() { make DESTDIR="${D}" install || die "Installation failed" cd drill make DESTDIR="${D}" install || die "Installation failed" cd .. dodoc Changelog README* }