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

Contents of /net-libs/ldns/ldns-1.6.12-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Feb 3 12:34:51 2013 UTC (6 years, 2 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Cleanup due #22900

(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2013 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.12-r2.ebuild,v 1.4 2013/01/22 02:40:43 robbat2 Exp $
4
5 EAPI="4"
6 PYTHON_DEPEND="python? 2:2.5"
7
8 inherit autotools eutils 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 examples 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 use python && python_set_active_version 2
29 use python && python_pkg_setup
30 }
31
32 src_prepare() {
33 epatch "${FILESDIR}/1.6.12-cflags.patch"
34
35 eautoreconf
36 }
37
38 src_configure() {
39 econf \
40 $(use_with examples) \
41 $(use_enable gost) \
42 $(use_enable ssl sha2) \
43 $(use_enable static-libs static) \
44 $(use_with ssl) \
45 $(use_with python pyldns) \
46 $(use_with python pyldnsx) \
47 --without-drill \
48 --disable-rpath
49 }
50
51 src_compile() {
52 emake
53 if use doc ; then
54 emake doxygen
55 fi
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" install
60 dodoc Changelog README*
61
62 if use python ; then
63 find "${ED}$(python_get_sitedir)" "(" -name "*.a" -o -name "*.la" ")" -type f -delete || die
64 fi
65
66 if ! use static-libs ; then
67 find "${ED}" -name "*.la" -type f -delete || die
68 fi
69
70 if use doc ; then
71 dohtml doc/html/*
72 fi
73
74 if use vim-syntax ; then
75 insinto /usr/share/vim/vimfiles/ftdetect
76 doins libdns.vim
77 fi
78
79 einfo
80 elog "Install net-dns/ldns-utils if you want drill"
81 einfo
82 }

  ViewVC Help
Powered by ViewVC 1.1.20