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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue May 1 14:24:34 2012 UTC (8 years, 5 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20