Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 499384
Collapse All | Expand All

(-)/usr/portage/net-libs/ldns/ldns-1.6.16.ebuild (-14 / +27 lines)
Lines 5-11 Link Here
5
EAPI="4"
5
EAPI="4"
6
PYTHON_DEPEND="python? 2:2.5"
6
PYTHON_DEPEND="python? 2:2.5"
7
7
8
inherit eutils python
8
inherit eutils python multilib-minimal
9
9
10
DESCRIPTION="a library with the aim to simplify DNS programming in C"
10
DESCRIPTION="a library with the aim to simplify DNS programming in C"
11
HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
11
HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
Lines 18-26 Link Here
18
18
19
RESTRICT="test" # 1.6.9 has no test directory
19
RESTRICT="test" # 1.6.9 has no test directory
20
20
21
RDEPEND="ssl? ( >=dev-libs/openssl-0.9.7 )
21
RDEPEND="ssl? ( >=dev-libs/openssl-0.9.7[${MULTILIB_USEDEP}] )
22
	ecdsa? ( >=dev-libs/openssl-1.0.1c[-bindist] )
22
	ecdsa? ( >=dev-libs/openssl-1.0.1c[-bindist,${MULTILIB_USEDEP}] )
23
	gost? ( >=dev-libs/openssl-1 )"
23
	gost? ( >=dev-libs/openssl-1[${MULTILIB_USEDEP}] )"
24
DEPEND="${RDEPEND}
24
DEPEND="${RDEPEND}
25
	python? ( dev-lang/swig )
25
	python? ( dev-lang/swig )
26
	doc? ( app-doc/doxygen )"
26
	doc? ( app-doc/doxygen )"
Lines 33-63 Link Here
33
	use python && python_pkg_setup
33
	use python && python_pkg_setup
34
}
34
}
35
35
36
src_configure() {
36
multilib_src_configure() {
37
	econf \
37
	myconf=(
38
		$(use_enable ecdsa) \
38
		$(use_enable ecdsa) \
39
		$(use_enable gost) \
39
		$(use_enable gost) \
40
		$(use_enable ssl sha2) \
40
		$(use_enable ssl sha2) \
41
		$(use_enable static-libs static) \
41
		$(use_enable static-libs static) \
42
		$(use_with ssl) \
42
		$(use_with ssl) \
43
		$(use_with python pyldns) \
44
		$(use_with python pyldnsx) \
45
		--without-drill \
43
		--without-drill \
46
		--without-examples \
44
		--without-examples \
47
		--disable-rpath
45
		--disable-rpath
46
	)
47
48
	if multilib_build_binaries; then
49
		myconf+=(
50
			$(use_with python pyldns) \
51
			$(use_with python pyldnsx)
52
		)
53
	else
54
		myconf+=(
55
			--without-pyldns
56
			--without-pyldnsx
57
		)
58
	fi
59
	
60
	ECONF_SOURCE="${S}" \
61
	econf \
62
		${myconf[@]}
48
}
63
}
49
64
50
src_compile() {
65
multilib_src_compile() {
51
	default
66
	default
52
67
53
	if use doc ; then
68
	if multilib_build_binaries && use doc ; then
54
		emake doxygen
69
		emake doxygen
55
	fi
70
	fi
56
}
71
}
57
72
58
src_install() {
73
multilib_src_install_all() {
59
	default
60
61
	dodoc Changelog README*
74
	dodoc Changelog README*
62
75
63
	if use python ; then
76
	if use python ; then
Lines 65-71 Link Here
65
	fi
78
	fi
66
79
67
	if ! use static-libs ; then
80
	if ! use static-libs ; then
68
		find "${ED}" -name "*.la" -type f -delete || die
81
		prune_libtool_files --all
69
	fi
82
	fi
70
83
71
	if use doc ; then
84
	if use doc ; then

Return to bug 499384