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

Contents of /net-libs/ldns/ldns-1.6.16-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (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.3: +1 -1 lines
FILE REMOVED
old

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

1 # Copyright 1999-2014 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.16-r1.ebuild,v 1.3 2014/07/09 17:03:04 mgorny Exp $
4
5 EAPI="5"
6 PYTHON_COMPAT=( python2_7 )
7
8 inherit eutils multilib-minimal python-single-r1
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="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x64-solaris"
17 IUSE="doc gost +ecdsa python +ssl static-libs vim-syntax"
18
19 RESTRICT="test" # 1.6.9 has no test directory
20
21 RDEPEND="ssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
22 ecdsa? ( >=dev-libs/openssl-1.0.1h-r2:0[-bindist,${MULTILIB_USEDEP}] )
23 gost? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
24 python? ( ${PYTHON_DEPS} )"
25 DEPEND="${RDEPEND}
26 python? ( dev-lang/swig )
27 doc? ( app-doc/doxygen )"
28
29 # configure will die if ecdsa is enabled and ssl is not
30 REQUIRED_USE="ecdsa? ( ssl )
31 python? ( ${PYTHON_REQUIRED_USE} )"
32
33 MULTILIB_CHOST_TOOLS=(
34 /usr/bin/ldns-config
35 )
36
37 pkg_setup() {
38 use python && python-single-r1_pkg_setup
39 }
40
41 multilib_src_configure() {
42 ECONF_SOURCE=${S} \
43 econf \
44 $(use_enable ecdsa) \
45 $(use_enable gost) \
46 $(use_enable ssl sha2) \
47 $(use_enable static-libs static) \
48 $(use_with ssl ssl "${EPREFIX}"/usr) \
49 $(multilib_native_use_with python pyldns) \
50 $(multilib_native_use_with python pyldnsx) \
51 --without-drill \
52 --without-examples \
53 --disable-rpath
54 }
55
56 multilib_src_compile() {
57 default
58
59 if multilib_is_native_abi && use doc ; then
60 emake doxygen
61 fi
62 }
63
64 multilib_src_install() {
65 default
66
67 if multilib_is_native_abi && use doc ; then
68 dohtml -r doc/html/.
69 fi
70 }
71
72 multilib_src_install_all() {
73 dodoc Changelog README*
74
75 prune_libtool_files --modules
76 use python && python_optimize
77
78 if use vim-syntax ; then
79 insinto /usr/share/vim/vimfiles/ftdetect
80 doins libdns.vim
81 fi
82
83 einfo
84 elog "Install net-dns/ldns-utils if you want drill and examples"
85 einfo
86 }

  ViewVC Help
Powered by ViewVC 1.1.20