# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ DESCRIPTION="ldns is a library with the aim to simplify DNS programing in C" HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/" SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="ssl vim-syntax" DEPEND="ssl? ( >=dev-libs/openssl-0.9.7 )" RDEPEND="${DEPEND}" src_compile() { econf \ $(use_with ssl) \ $(use_enable ssl sha2) \ --disable-rpath || die emake || die } src_install() { emake DESTDIR="${D}" install || die "emake install failed" if use vim-syntax ; then insinto /usr/share/vim/vimfiles/ftdetect doins libdns.vim fi dodoc Changelog README* || die "dodoc failed" }