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

Collapse All | Expand All

(-)libdnet.orig/libdnet-1.11-r1.ebuild (-6 / +24 lines)
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
}
(-)libdnet-1.11.orig/python/dnet.c (-1 / +1 lines)
Lines 6-12 Link Here
6
  #define PY_LONG_LONG LONG_LONG
6
  #define PY_LONG_LONG LONG_LONG
7
#endif
7
#endif
8
#include "dnet.h"
8
#include "dnet.h"
9
9
#include "config.h"
10
typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/
10
typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/
11
typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/
11
typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/
(-)libdnet-1.11.orig/test/dnet/dnet.c (-1 / +1 lines)
Lines 15-21 Link Here
15
#include <stdlib.h>
15
#include <stdlib.h>
16
#include <string.h>
16
#include <string.h>
17
#include <unistd.h>
17
#include <unistd.h>
18
18
#include "config.h">
19
#include "dnet.h"
19
#include "dnet.h"
20
#include "mod.h"
20
#include "mod.h"

Return to bug 326389