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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu May 14 06:49:00 2015 UTC (3 years, 11 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)

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.ebuild,v 1.6 2013/12/11 14:40:26 jer Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2:2.5"
7
8 inherit autotools eutils python
9
10 DESCRIPTION="a library with the aim to simplify DNS programming 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 use python && python_set_active_version 2
29 }
30
31 src_prepare() {
32 epatch "${FILESDIR}/1.6.12-cflags.patch"
33
34 eautoreconf
35 }
36
37 src_configure() {
38 econf \
39 $(use_enable gost) \
40 $(use_enable ssl sha2) \
41 $(use_enable static-libs static) \
42 $(use_with ssl) \
43 $(use_with python pyldns) \
44 --disable-rpath || die "econf failed"
45 }
46
47 src_compile() {
48 emake || die "emake failed"
49 if use doc ; then
50 emake doxygen || die "emake doxygen failed"
51 fi
52 }
53
54 src_install() {
55 emake DESTDIR="${D}" install || die "emake install failed"
56 dodoc Changelog README* || die "dodoc failed"
57
58 if use python ; then
59 find "${ED}$(python_get_sitedir)" "(" -name "*.a" -o -name "*.la" ")" -type f -delete || die
60 fi
61
62 if ! use static-libs ; then
63 find "${ED}" -name "*.la" -type f -delete || die
64 fi
65
66 if use doc ; then
67 dohtml doc/html/* || die "dohtml failed"
68 fi
69
70 if use vim-syntax ; then
71 insinto /usr/share/vim/vimfiles/ftdetect
72 doins libdns.vim || die "doins libdns.vim failed"
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20