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-dns/host/host-20070128.ebuild,v 1.7 2009/09/23 18:29:05 patrick Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-dns/host/host-20070128.ebuild,v 1.7 2009/09/23 18:29:05 patrick Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI="2" |
5 |
inherit eutils toolchain-funcs multilib |
6 |
inherit eutils toolchain-funcs multilib |
6 |
|
7 |
|
7 |
DESCRIPTION="A powerful command-line DNS query and test tool implementing many additional protocols" |
8 |
DESCRIPTION="A powerful command-line DNS query and test tool implementing many additional protocols" |
Lines 13-47
Link Here
|
13 |
KEYWORDS="~alpha ~amd64 hppa ~ppc ~sparc ~x86" |
14 |
KEYWORDS="~alpha ~amd64 hppa ~ppc ~sparc ~x86" |
14 |
IUSE="debug" |
15 |
IUSE="debug" |
15 |
|
16 |
|
|
|
17 |
# Bug 91515 |
16 |
RESTRICT="test" |
18 |
RESTRICT="test" |
17 |
|
19 |
|
18 |
RDEPEND="" |
20 |
RDEPEND="" |
19 |
DEPEND="${RDEPEND} |
21 |
DEPEND="${RDEPEND} |
20 |
>=sys-apps/sed-4" |
22 |
>=sys-apps/sed-4" |
21 |
|
23 |
|
22 |
src_unpack() { |
24 |
src_prepare() { |
23 |
unpack ${A} |
25 |
epatch "${FILESDIR}/${P}-Makefile.patch" |
24 |
cd "${S}" |
|
|
25 |
|
26 |
if ! use debug; then |
27 |
sed -i -e "/^CDEBUG/d" \ |
28 |
-e "/^DEBUGDEFS/d" \ |
29 |
Makefile || die "src_unpack failed" |
30 |
fi |
31 |
|
32 |
sed -i -e "/id-clash-30/d" \ |
33 |
-e "/^COPT/d" \ |
34 |
-e "s:^\(LDFLAGS = \)\(-static \)\(.*\):\1\3:" \ |
35 |
-e "s:^#\(RES_LIB = \)-lresolv:\1/usr/$(get_libdir)/libresolv.a:" \ |
36 |
-e "s:staff:root:" \ |
37 |
Makefile || die "src_unpack failed" |
38 |
|
39 |
sed -i -e "s:^\(# if defined(__alpha).*\):\1 || defined(__x86_64__):" \ |
26 |
sed -i -e "s:^\(# if defined(__alpha).*\):\1 || defined(__x86_64__):" \ |
40 |
port.h || die "src_unpack failed" |
27 |
port.h || die "sed failed" |
41 |
} |
28 |
} |
42 |
|
29 |
|
43 |
src_compile() { |
30 |
src_compile() { |
44 |
emake CC="$(tc-getCC)" COPTS="${CFLAGS}" || die "emake failed" |
31 |
use debug && export DEBUGDEFS="-DDEBUG" |
|
|
32 |
emake CC="$(tc-getCC)" RES_LIB=/usr/$(get_libdir)/libresolv.a || die "emake failed" |
45 |
} |
33 |
} |
46 |
|
34 |
|
47 |
src_install () { |
35 |
src_install () { |