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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 11 15:25:31 2012 UTC (7 years, 3 months ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumped. Removed CFALGS="-g -O2", bug #385151.

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.10.ebuild,v 1.1 2011/06/01 23:05:47 matsuu Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2:2.4"
7
8 inherit 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 static-libs vim-syntax"
18
19 RESTRICT="test" # 1.6.9 has no test directory
20
21 RDEPEND="ssl? ( >=dev-libs/openssl-0.9.7 )
22 gost? ( >=dev-libs/openssl-1 )"
23 DEPEND="${RDEPEND}
24 python? ( dev-lang/swig )
25 doc? ( app-doc/doxygen )"
26
27 pkg_setup() {
28 python_set_active_version 2
29 }
30
31 src_configure() {
32 econf \
33 $(use_enable gost) \
34 $(use_enable ssl sha2) \
35 $(use_enable static-libs static) \
36 $(use_with ssl) \
37 $(use_with python pyldns) \
38 --disable-rpath || die "econf failed"
39 }
40
41 src_compile() {
42 emake || die "emake failed"
43 if use doc ; then
44 emake doxygen || die "emake doxygen failed"
45 fi
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" install || die "emake install failed"
50 dodoc Changelog README* || die "dodoc failed"
51
52 if use python ; then
53 find "${ED}$(python_get_sitedir)" "(" -name "*.a" -o -name "*.la" ")" -type f -delete || die
54 fi
55
56 if ! use static-libs ; then
57 find "${ED}" -name "*.la" -type f -delete || die
58 fi
59
60 if use doc ; then
61 dohtml doc/html/* || die "dohtml failed"
62 fi
63
64 if use vim-syntax ; then
65 insinto /usr/share/vim/vimfiles/ftdetect
66 doins libdns.vim || die "doins libdns.vim failed"
67 fi
68 }

  ViewVC Help
Powered by ViewVC 1.1.20