/[gentoo-x86]/net-libs/ldns/ldns-1.6.6.ebuild
Gentoo

Contents of /net-libs/ldns/ldns-1.6.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jun 1 23:05:47 2011 UTC (7 years, 10 months ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumped.

(Portage version: 2.1.9.50/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/ldns/ldns-1.6.6.ebuild,v 1.1 2010/08/11 00:15:33 matsuu Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2:2.4"
7
8 inherit multilib python
9
10 DESCRIPTION="ldns is a library with the aim to simplify DNS programing in C"
11 HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
12 SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos"
17 IUSE="doc python ssl vim-syntax"
18
19 RDEPEND="ssl? ( >=dev-libs/openssl-0.9.7 )"
20 DEPEND="${RDEPEND}
21 python? ( dev-lang/swig )
22 doc? ( app-doc/doxygen )"
23
24 pkg_setup() {
25 python_set_active_version 2
26 }
27
28 src_configure() {
29 econf \
30 $(use_enable ssl sha2) \
31 $(use_with ssl) \
32 $(use_with python pyldns) \
33 --disable-rpath || die "econf failed"
34 }
35
36 src_compile() {
37 emake || die "emake failed"
38 if use doc ; then
39 emake doxygen || die "emake doxygen failed"
40 fi
41 }
42
43 src_install() {
44 emake DESTDIR="${D}" install || die "emake install failed"
45 dodoc Changelog README* || die "dodoc failed"
46
47 if use python ; then
48 rm "${ED}/usr/$(get_libdir)"/python*/site-packages/_ldns.*a || die
49 fi
50
51 if use doc ; then
52 dohtml doc/html/* || die "dohtml failed"
53 fi
54
55 if use vim-syntax ; then
56 insinto /usr/share/vim/vimfiles/ftdetect
57 doins libdns.vim || die "doins libdns.vim failed"
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.20