/[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.7 - (hide annotations) (download)
Mon Sep 24 18:57:27 2012 UTC (5 years, 8 months ago) by armin76
Branch: MAIN
Changes since 1.6: +2 -2 lines
alpha/sparc stable wrt #434036

(Portage version: 2.1.11.16/cvs/Linux ia64)

1 jer 1.2 # Copyright 1999-2012 Gentoo Foundation
2 hwoarang 1.1 # Distributed under the terms of the GNU General Public License v2
3 armin76 1.7 # $Header: /var/cvsroot/gentoo-x86/net-dns/host/host-20070128-r1.ebuild,v 1.6 2012/09/14 14:27:38 jer Exp $
4 hwoarang 1.1
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 jer 1.2 SRC_URI="ftp://ftp.weird.com/pub/Planix/${P}.tar.gz"
11 hwoarang 1.1
12     LICENSE="as-is"
13     SLOT="0"
14 armin76 1.7 KEYWORDS="alpha amd64 hppa ppc sparc x86"
15 hwoarang 1.1 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