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

Contents of /net-misc/whois/whois-4.7.19-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Oct 28 22:24:34 2006 UTC (13 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
punt eselect
(Portage version: 2.1.2_pre3-r9)
 (Signed Manifest commit)

1 # Copyright 1999-2006 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.19-r1.ebuild,v 1.3 2006/10/27 17:23:33 flameeyes 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="~amd64 ~x86 ~x86-fbsd"
15 IUSE="nls"
16 RESTRICT="test" #59327
17
18 RDEPEND="net-dns/libidn
19 app-admin/eselect-whois"
20 DEPEND="net-dns/libidn
21 >=dev-lang/perl-5"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 epatch "${FILESDIR}"/${PN}-4.7.19-gentoo-security.patch
27 epatch "${FILESDIR}"/${PN}-4.7.2-config-file.patch
28
29 if use nls ; then
30 cd po
31 sed -i -e "s:/usr/bin/install: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 OPTS="${CFLAGS}" HAVE_LIBIDN=1 || die
41 }
42
43 src_install() {
44 dodir /usr/bin /usr/share/man/man1
45 make BASEDIR="${D}" prefix=/usr install || die
46 insinto /etc
47 doins whois.conf
48 dodoc README
49
50 mv ${D}/usr/share/man/man1/{whois,mdwhois}.1
51 mv ${D}/usr/bin/{whois,mdwhois}
52 }
53
54 pkg_postinst() {
55 einfo "Setting /usr/bin/whois symlink"
56 eselect whois update --if-unset
57 }
58
59 pkg_postrm() {
60 einfo "Updating /usr/bin/whois symlink"
61 eselect whois update
62 }
63

  ViewVC Help
Powered by ViewVC 1.1.20