/[gentoo-x86]/net-dns/host/host-20070128-r1.ebuild
Gentoo

Contents of /net-dns/host/host-20070128-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Oct 5 18:06:24 2012 UTC (22 months, 3 weeks ago) by ranger
Branch: MAIN
Changes since 1.9: +2 -2 lines
Marking host-20070128-r1 ppc64 for bug 434036

(Portage version: 2.1.10.65/cvs/Linux ppc64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dns/host/host-20070128-r1.ebuild,v 1.9 2012/10/02 19:07:35 blueness Exp $
4
5 EAPI="2"
6 inherit eutils toolchain-funcs multilib
7
8 DESCRIPTION="A powerful command-line DNS query and test tool implementing many additional protocols"
9 HOMEPAGE="http://www.weird.com/~woods/projects/host.html"
10 SRC_URI="ftp://ftp.weird.com/pub/Planix/${P}.tar.gz"
11
12 LICENSE="as-is"
13 SLOT="0"
14 KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86"
15 IUSE="debug"
16
17 # Bug 91515
18 RESTRICT="test"
19
20 RDEPEND=""
21 DEPEND="${RDEPEND}
22 >=sys-apps/sed-4"
23
24 src_prepare() {
25 epatch "${FILESDIR}/${P}-Makefile.patch"
26 sed -i -e "s:^\(# if defined(__alpha).*\):\1 || defined(__x86_64__):" \
27 port.h || die "sed failed"
28 }
29
30 src_compile() {
31 use debug && export DEBUGDEFS="-DDEBUG"
32 emake CC="$(tc-getCC)" RES_LIB=/usr/$(get_libdir)/libresolv.a || die "emake failed"
33 }
34
35 src_install () {
36 # This tool has slightly different format of output from "standard" host.
37 # Renaming it to host-woods, hopefully this does not conflict with anything.
38
39 newbin host host-woods || die "newbin failed"
40 newman host.1 host-woods.1 || die "newman failed"
41 dodoc RELEASE_NOTES ToDo || die "dodoc failed"
42 }

  ViewVC Help
Powered by ViewVC 1.1.20