Lines 2-7
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-analyzer/nsat/nsat-1.5.ebuild,v 1.18 2009/01/15 07:08:09 jer Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nsat/nsat-1.5.ebuild,v 1.18 2009/01/15 07:08:09 jer Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI=2 |
6 |
|
5 |
inherit eutils autotools |
7 |
inherit eutils autotools |
6 |
|
8 |
|
7 |
WANT_AUTOCONF=2.5 |
9 |
WANT_AUTOCONF=2.5 |
Lines 12-18
Link Here
|
12 |
|
14 |
|
13 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
16 |
SLOT="0" |
15 |
KEYWORDS="~ppc sparc x86" |
17 |
KEYWORDS="~ppc sparc x86 amd64" |
16 |
IUSE="X" |
18 |
IUSE="X" |
17 |
|
19 |
|
18 |
RDEPEND="X? ( x11-libs/libX11 |
20 |
RDEPEND="X? ( x11-libs/libX11 |
Lines 26-52
Link Here
|
26 |
src_unpack() { |
28 |
src_unpack() { |
27 |
unpack ${A} |
29 |
unpack ${A} |
28 |
cd "${S}" |
30 |
cd "${S}" |
29 |
cp -va configure.in{,.orig} |
31 |
} |
|
|
32 |
|
33 |
src_prepare(){ |
34 |
eautoreconf |
35 |
} |
36 |
|
37 |
src_configure(){ |
30 |
epatch "${FILESDIR}"/${P}-configure.patch |
38 |
epatch "${FILESDIR}"/${P}-configure.patch |
31 |
# bug 128204 |
39 |
# bug 128204 |
32 |
epatch "${FILESDIR}"/${P}-lvalue-gcc4.patch |
40 |
epatch "${FILESDIR}"/${P}-lvalue-gcc4.patch |
33 |
epatch "${FILESDIR}"/${P}-strip.patch |
41 |
epatch "${FILESDIR}"/${P}-strip.patch |
34 |
|
42 |
sed -i -e "s:^#CGIFile /usr/local/share/nsat/nsat.cgi$:#CGIFile /usr/share/nsat/nsat.cgi:g" \ |
35 |
sed -i "s:^#CGIFile /usr/local/share/nsat/nsat.cgi$:#CGIFile /usr/share/nsat/nsat.cgi:g" \ |
43 |
nsat.conf || die "sed nsat.conf failed" |
36 |
nsat.conf |
44 |
sed -i "s:/usr/local:/usr:g" Makefile.in || die "sed Makefile.in failed" |
37 |
sed -i "s:/usr/local:/usr:g" Makefile.in |
45 |
sed -i configure.in -e "s:LFLAGS=\":LFLAGS=\"${LDFLAGS} :" || die "sed configure.in failed" |
38 |
sed -i "s:/usr/local:/usr:g" tools/xnsat |
46 |
sed -i "s:/usr/local:/usr:g" tools/xnsat ||die "sed xnsat failed" |
39 |
sed -i -e "s:/usr/local/share/nsat/nsat.conf:/etc/nsat/nsat.conf:g" \ |
47 |
sed -i -e "s:/usr/local/share/nsat/nsat.conf:/etc/nsat/nsat.conf:g" \ |
40 |
-e "s:/usr/local/share/nsat/nsat.cgi:/usr/share/nsat/nsat.cgi:g" \ |
48 |
-e "s:/usr/local/share/nsat/nsat.cgi:/usr/share/nsat/nsat.cgi:g" \ |
41 |
src/lang.h |
49 |
src/lang.h || die "sed lang.h failed" |
42 |
|
50 |
|
43 |
eautoreconf |
|
|
44 |
} |
51 |
} |
45 |
|
52 |
|
46 |
src_compile() { |
53 |
src_compile() { |
47 |
econf $( use_with X x ) || die |
54 |
econf $( use_with X x ) || die |
48 |
|
55 |
|
49 |
make|| die "compile problem" |
56 |
emake|| die "compile problem" |
50 |
} |
57 |
} |
51 |
|
58 |
|
52 |
src_install () { |
59 |
src_install () { |