Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libdnet/libdnet-1.11-r1.ebuild,v 1.11 2010/07/19 21:35:59 maekke Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libdnet/libdnet-1.11-r1.ebuild,v 1.11 2010/07/19 21:35:59 maekke Exp $ |
4 |
|
4 |
|
5 |
#WANT_AUTOMAKE=1.6 |
5 |
#WANT_AUTOMAKE=1.6 |
6 |
inherit eutils autotools |
6 |
EAPI=3 |
|
|
7 |
PYTHON_DEPEND="python? 2" |
8 |
inherit eutils autotools python |
7 |
|
9 |
|
8 |
DESCRIPTION="simplified, portable interface to several low-level networking routines" |
10 |
DESCRIPTION="simplified, portable interface to several low-level networking routines" |
9 |
HOMEPAGE="http://libdnet.sourceforge.net/" |
11 |
HOMEPAGE="http://libdnet.sourceforge.net/" |
Lines 14-30
Link Here
|
14 |
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86" |
16 |
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86" |
15 |
IUSE="python" |
17 |
IUSE="python" |
16 |
|
18 |
|
17 |
src_unpack() { |
19 |
DEPEND="" |
18 |
unpack ${A} |
20 |
RDEPEND="${DEPEND}" |
19 |
cd "${S}" |
21 |
|
|
|
22 |
pkg_setup() { |
23 |
if use python; then |
24 |
python_set_active_version 2 |
25 |
fi |
26 |
} |
27 |
|
28 |
src_prepare() { |
20 |
sed -i 's/suite_free(s);//' test/check/*.c || die "sed failed" |
29 |
sed -i 's/suite_free(s);//' test/check/*.c || die "sed failed" |
21 |
epatch "${FILESDIR}"/${PN}-1.10-gcc4.diff |
30 |
epatch "${FILESDIR}"/${PN}-1.10-gcc4.diff |
|
|
31 |
epatch "${FILESDIR}"/congig-h.patch |
22 |
AT_M4DIR="config" |
32 |
AT_M4DIR="config" |
|
|
33 |
|
23 |
eautoreconf |
34 |
eautoreconf |
24 |
} |
35 |
} |
25 |
|
36 |
|
26 |
src_compile () { |
37 |
src_configure() { |
27 |
econf $(use_with python) || die "econf failed" |
38 |
econf $(use_with python) || die "econf failed" |
|
|
39 |
} |
40 |
|
41 |
src_compile() { |
28 |
emake || die "emake failed" |
42 |
emake || die "emake failed" |
29 |
} |
43 |
} |
30 |
|
44 |
|
Lines 33-38
Link Here
|
33 |
} |
47 |
} |
34 |
|
48 |
|
35 |
src_install () { |
49 |
src_install () { |
36 |
emake DESTDIR="${D}" install || die "make install failed" |
50 |
emake DESTDIR="${ED}" install || die "make install failed" |
37 |
dodoc README THANKS TODO |
51 |
dodoc README THANKS TODO |
38 |
} |
52 |
} |
|
|
53 |
if use python; then |
54 |
python_set_active_version 2 |
55 |
fi |
56 |
} |