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

Contents of /net-libs/ldns/ldns-1.6.7.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.7.ebuild,v 1.1 2010/11/09 00:00:42 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 gost python ssl vim-syntax"
18
19 RDEPEND="ssl? ( >=dev-libs/openssl-0.9.7 )
20 gost? ( >=dev-libs/openssl-1 )"
21 DEPEND="${RDEPEND}
22 python? ( dev-lang/swig )
23 doc? ( app-doc/doxygen )"
24
25 pkg_setup() {
26 python_set_active_version 2
27 }
28
29 src_configure() {
30 econf \
31 $(use_enable gost) \
32 $(use_enable ssl sha2) \
33 $(use_with ssl) \
34 $(use_with python pyldns) \
35 --disable-rpath || die "econf failed"
36 }
37
38 src_compile() {
39 emake || die "emake failed"
40 if use doc ; then
41 emake doxygen || die "emake doxygen failed"
42 fi
43 }
44
45 src_install() {
46 emake DESTDIR="${D}" install || die "emake install failed"
47 dodoc Changelog README* || die "dodoc failed"
48
49 if use python ; then
50 rm "${ED}/usr/$(get_libdir)"/python*/site-packages/_ldns.*a || die
51 fi
52
53 if use doc ; then
54 dohtml doc/html/* || die "dohtml failed"
55 fi
56
57 if use vim-syntax ; then
58 insinto /usr/share/vim/vimfiles/ftdetect
59 doins libdns.vim || die "doins libdns.vim failed"
60 fi
61 }

  ViewVC Help
Powered by ViewVC 1.1.20