|
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 26-31
Link Here
|
| 26 |
|
26 |
|
| 27 |
pkg_setup() { |
27 |
pkg_setup() { |
| 28 |
python_set_active_version 2 |
28 |
python_set_active_version 2 |
|
|
29 |
python_pkg_setup |
| 29 |
} |
30 |
} |
| 30 |
|
31 |
|
| 31 |
src_prepare() { |
32 |
src_prepare() { |
|
Lines 36-59
Link Here
|
| 36 |
|
37 |
|
| 37 |
src_configure() { |
38 |
src_configure() { |
| 38 |
econf \ |
39 |
econf \ |
|
|
40 |
$(use_with examples) \ |
| 39 |
$(use_enable gost) \ |
41 |
$(use_enable gost) \ |
| 40 |
$(use_enable ssl sha2) \ |
42 |
$(use_enable ssl sha2) \ |
| 41 |
$(use_enable static-libs static) \ |
43 |
$(use_enable static-libs static) \ |
| 42 |
$(use_with ssl) \ |
44 |
$(use_with ssl) \ |
| 43 |
$(use_with python pyldns) \ |
45 |
$(use_with python pyldns) \ |
| 44 |
--disable-rpath || die "econf failed" |
46 |
$(use_with python pyldnsx) \ |
|
|
47 |
--with-drill \ |
| 48 |
--disable-rpath |
| 45 |
} |
49 |
} |
| 46 |
|
50 |
|
| 47 |
src_compile() { |
51 |
src_compile() { |
| 48 |
emake || die "emake failed" |
52 |
emake |
| 49 |
if use doc ; then |
53 |
if use doc ; then |
| 50 |
emake doxygen || die "emake doxygen failed" |
54 |
emake doxygen |
| 51 |
fi |
55 |
fi |
| 52 |
} |
56 |
} |
| 53 |
|
57 |
|
| 54 |
src_install() { |
58 |
src_install() { |
| 55 |
emake DESTDIR="${D}" install || die "emake install failed" |
59 |
emake DESTDIR="${D}" install |
| 56 |
dodoc Changelog README* || die "dodoc failed" |
60 |
dodoc Changelog README* |
| 57 |
|
61 |
|
| 58 |
if use python ; then |
62 |
if use python ; then |
| 59 |
find "${ED}$(python_get_sitedir)" "(" -name "*.a" -o -name "*.la" ")" -type f -delete || die |
63 |
find "${ED}$(python_get_sitedir)" "(" -name "*.a" -o -name "*.la" ")" -type f -delete || die |
|
Lines 64-74
Link Here
|
| 64 |
fi |
68 |
fi |
| 65 |
|
69 |
|
| 66 |
if use doc ; then |
70 |
if use doc ; then |
| 67 |
dohtml doc/html/* || die "dohtml failed" |
71 |
dohtml doc/html/* |
| 68 |
fi |
72 |
fi |
| 69 |
|
73 |
|
| 70 |
if use vim-syntax ; then |
74 |
if use vim-syntax ; then |
| 71 |
insinto /usr/share/vim/vimfiles/ftdetect |
75 |
insinto /usr/share/vim/vimfiles/ftdetect |
| 72 |
doins libdns.vim || die "doins libdns.vim failed" |
76 |
doins libdns.vim |
| 73 |
fi |
77 |
fi |
| 74 |
} |
78 |
} |