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

(-)libdnet.orig/libdnet-1.11-r1.ebuild (-6 / +13 lines)
Lines 3-8 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
EAPI=4
7
PYTHON_DEPEND="python? 2"
6
inherit eutils autotools python
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"
Lines 14-31 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
pkg_setup() {
18
	unpack ${A}
20
	python_set_active_version 2
19
	cd "${S}"
21
}
22
23
src_prepare() {
20
	sed -i 's/suite_free(s);//' test/check/*.c || die "sed failed"
24
	sed -i 's/suite_free(s);//' test/check/*.c || die "sed failed"
21
	epatch "${FILESDIR}"/${PN}-1.10-gcc4.diff
25
	epatch "${FILESDIR}"/${PN}-1.10-gcc4.diff
22
	AT_M4DIR="config"
26
	AT_M4DIR="config"
23
	eautoreconf
27
	eautoreconf
24
}
28
}
25
29
30
src_configure() {
31
econf $(use_with python)
32
}
33
26
src_compile () {
34
src_compile () {
27
	econf $(use_with python) || die "econf failed"
35
	emake
28
	emake || die "emake failed"
29
}
36
}
30
37
31
src_test() {
38
src_test() {
Lines 33-38 Link Here
33
}
40
}
34
41
35
src_install () {
42
src_install () {
36
	emake DESTDIR="${D}" install || die "make install failed"
43
	emake DESTDIR="${D}" install
37
	dodoc README THANKS TODO
44
	dodoc README THANKS TODO
38
}
45
}

Return to bug 363601