/[gentoo-x86]/net-misc/whois/whois-4.7.30.ebuild
Gentoo

Contents of /net-misc/whois/whois-4.7.30.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon Apr 26 20:25:38 2010 UTC (10 years, 5 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-4.7.30.ebuild,v 1.8 2009/05/30 18:24:06 nixnut Exp $
4
5 inherit eutils toolchain-funcs
6
7 MY_P=${P/-/_}
8 DESCRIPTION="improved Whois Client"
9 HOMEPAGE="http://www.linux.it/~md/software/"
10 SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
15 IUSE="nls"
16 RESTRICT="test" #59327
17
18 RDEPEND="net-dns/libidn"
19 DEPEND="${RDEPEND}
20 >=dev-lang/perl-5"
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}"
25 epatch "${FILESDIR}"/${PN}-4.7.26-gentoo-security.patch
26 epatch "${FILESDIR}"/${PN}-4.7.2-config-file.patch
27
28 if use nls ; then
29 cd po
30 sed -i -e "s:/usr/bin/install:install:" Makefile
31 echo 'install-pos: install' >> Makefile
32 else
33 sed -i -e '/ENABLE_NLS/s:define:undef:' config.h
34 sed -i -e "s:cd po.*::" Makefile
35 fi
36 }
37
38 src_compile() {
39 tc-export CC
40 emake CFLAGS="${CFLAGS} ${CPPFLAGS}" HAVE_LIBIDN=1 || die
41 }
42
43 src_install() {
44 emake BASEDIR="${D}" prefix=/usr install || die
45 insinto /etc
46 doins whois.conf
47 dodoc README
48
49 if [[ ${USERLAND} != "GNU" ]]; then
50 mv "${D}"/usr/share/man/man1/{whois,mdwhois}.1
51 mv "${D}"/usr/bin/{whois,mdwhois}
52 fi
53 }

  ViewVC Help
Powered by ViewVC 1.1.20