Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/whois: ChangeLog whois-5.1.0.ebuild
Date: Fri, 03 Jan 2014 03:52:50
Message-Id: 20140103035245.7E5122004B@flycatcher.gentoo.org
1 radhermit 14/01/03 03:52:45
2
3 Modified: ChangeLog
4 Added: whois-5.1.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
9
10 Revision Changes Path
11 1.198 net-misc/whois/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/whois/ChangeLog?rev=1.198&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/whois/ChangeLog?rev=1.198&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/whois/ChangeLog?r1=1.197&r2=1.198
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/whois/ChangeLog,v
20 retrieving revision 1.197
21 retrieving revision 1.198
22 diff -u -r1.197 -r1.198
23 --- ChangeLog 10 Aug 2013 12:50:58 -0000 1.197
24 +++ ChangeLog 3 Jan 2014 03:52:45 -0000 1.198
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-misc/whois
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/ChangeLog,v 1.197 2013/08/10 12:50:58 ago Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/ChangeLog,v 1.198 2014/01/03 03:52:45 radhermit Exp $
31 +
32 +*whois-5.1.0 (03 Jan 2014)
33 +
34 + 03 Jan 2014; Tim Harder <radhermit@g.o> +whois-5.1.0.ebuild:
35 + Version bump.
36
37 10 Aug 2013; Agostino Sarubbo <ago@g.o> whois-5.0.25.ebuild:
38 Stable for ppc, wrt bug #478528
39
40
41
42 1.1 net-misc/whois/whois-5.1.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/whois/whois-5.1.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/whois/whois-5.1.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: whois-5.1.0.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-5.1.0.ebuild,v 1.1 2014/01/03 03:52:45 radhermit Exp $
52
53 EAPI=4
54 inherit eutils toolchain-funcs
55
56 MY_P=${P/-/_}
57 DESCRIPTION="improved Whois Client"
58 HOMEPAGE="http://www.linux.it/~md/software/"
59 SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
64 IUSE="iconv idn nls"
65 RESTRICT="test" #59327
66
67 RDEPEND="iconv? ( virtual/libiconv )
68 idn? ( net-dns/libidn )
69 nls? ( virtual/libintl )"
70 DEPEND="${RDEPEND}
71 app-arch/xz-utils
72 >=dev-lang/perl-5
73 nls? ( sys-devel/gettext )"
74
75 src_prepare() {
76 epatch "${FILESDIR}"/${PN}-4.7.2-config-file.patch
77
78 if use nls ; then
79 sed -i -e 's:#\(.*pos\):\1:' Makefile || die
80 else
81 sed -i -e '/ENABLE_NLS/s:define:undef:' config.h || die
82
83 # don't generate po files when nls is disabled (bug #419889)
84 sed -i -e '/^all:/s/ pos//' \
85 -e '/^install:/s/ install-pos//' Makefile || die
86 fi
87 }
88
89 src_configure() { :;} # expected no-op
90
91 src_compile() {
92 unset HAVE_ICONV HAVE_LIBIDN
93 use iconv && export HAVE_ICONV=1
94 use idn && export HAVE_LIBIDN=1
95 tc-export CC
96 emake CFLAGS="${CFLAGS} ${CPPFLAGS}"
97 }
98
99 src_install() {
100 emake BASEDIR="${ED}" prefix=/usr install
101 insinto /etc
102 doins whois.conf
103 dodoc README debian/changelog
104
105 if [[ ${USERLAND} != "GNU" ]]; then
106 mv "${ED}"/usr/share/man/man1/{whois,mdwhois}.1 || die
107 mv "${ED}"/usr/bin/{whois,mdwhois} || die
108 fi
109 }