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