Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 417075 | Differences between
and this patch

Collapse All | Expand All

(-)ldns-1.6.12.ebuild (-9 / +11 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
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.4 2012/05/21 09:53:57 phajdan.jr Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/ldns/ldns-1.6.12.ebuild,v 1.4 2012/05/21 09:53:57 phajdan.jr Exp $
4
4
5
EAPI="3"
5
EAPI="4"
6
PYTHON_DEPEND="python? 2:2.5"
6
PYTHON_DEPEND="python? 2:2.5"
7
7
8
inherit autotools eutils python
8
inherit autotools eutils python
Lines 14-20 Link Here
14
LICENSE="BSD"
14
LICENSE="BSD"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="amd64 x86 ~ppc-macos ~x64-macos"
16
KEYWORDS="amd64 x86 ~ppc-macos ~x64-macos"
17
IUSE="doc gost python ssl static-libs vim-syntax"
17
IUSE="doc examples gost python ssl static-libs vim-syntax"
18
18
19
RESTRICT="test" # 1.6.9 has no test directory
19
RESTRICT="test" # 1.6.9 has no test directory
20
20
Lines 36-59 Link Here
36
36
37
src_configure() {
37
src_configure() {
38
	econf \
38
	econf \
39
		$(use_enable examples) \
39
		$(use_enable gost) \
40
		$(use_enable gost) \
40
		$(use_enable ssl sha2) \
41
		$(use_enable ssl sha2) \
41
		$(use_enable static-libs static) \
42
		$(use_enable static-libs static) \
42
		$(use_with ssl) \
43
		$(use_with ssl) \
43
		$(use_with python pyldns) \
44
		$(use_with python pyldns) \
44
		--disable-rpath || die "econf failed"
45
		$(use_with python pyldnsx) \
46
		--disable-rpath
45
}
47
}
46
48
47
src_compile() {
49
src_compile() {
48
	emake || die "emake failed"
50
	emake
49
	if use doc ; then
51
	if use doc ; then
50
		emake doxygen || die "emake doxygen failed"
52
		emake doxygen
51
	fi
53
	fi
52
}
54
}
53
55
54
src_install() {
56
src_install() {
55
	emake DESTDIR="${D}" install || die "emake install failed"
57
	emake DESTDIR="${D}" install
56
	dodoc Changelog README* || die "dodoc failed"
58
	dodoc Changelog README*
57
59
58
	if use python ; then
60
	if use python ; then
59
		find "${ED}$(python_get_sitedir)" "(" -name "*.a" -o -name "*.la" ")" -type f -delete || die
61
		find "${ED}$(python_get_sitedir)" "(" -name "*.a" -o -name "*.la" ")" -type f -delete || die
Lines 64-74 Link Here
64
	fi
66
	fi
65
67
66
	if use doc ; then
68
	if use doc ; then
67
		dohtml doc/html/* || die "dohtml failed"
69
		dohtml doc/html/*
68
	fi
70
	fi
69
71
70
	if use vim-syntax ; then
72
	if use vim-syntax ; then
71
		insinto /usr/share/vim/vimfiles/ftdetect
73
		insinto /usr/share/vim/vimfiles/ftdetect
72
		doins libdns.vim || die "doins libdns.vim failed"
74
		doins libdns.vim
73
	fi
75
	fi
74
}
76
}

Return to bug 417075