Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/whois/
Date: Wed, 30 Mar 2016 07:59:06
Message-Id: 1459324729.cb9e694e1790676fc2e0966734f99fe5cda95f00.polynomial-c@gentoo
1 commit: cb9e694e1790676fc2e0966734f99fe5cda95f00
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 30 07:57:26 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 30 07:58:49 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb9e694e
7
8 net-misc/whois: Bump to version 5.2.12
9
10 Package-Manager: portage-2.2.28
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-misc/whois/Manifest | 1 +
14 net-misc/whois/whois-5.2.12.ebuild | 61 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 62 insertions(+)
16
17 diff --git a/net-misc/whois/Manifest b/net-misc/whois/Manifest
18 index 09bc0b0..cce4286 100644
19 --- a/net-misc/whois/Manifest
20 +++ b/net-misc/whois/Manifest
21 @@ -3,3 +3,4 @@ DIST whois_5.0.26.tar.xz 72508 SHA256 729625ef81425f4771e06492bb4f3e9f24bff75b81
22 DIST whois_5.1.5.tar.xz 77176 SHA256 d4a192d6208f1ed3856b5089e2de5fc986031c96148b97c9ef43af7a21af1a9d SHA512 99fb43494aa7ff809055e31679eecb1d8a2a1276c54e550a9559cbca84c4ed7044953bf86f9f155e28f4a3c9d78f7c87ec28188f971c8f30e07d4ca5ef03c8eb WHIRLPOOL 62e2a2b4dcbcf4bb2b2cf320f0ea6a4286e512c032e9d22ba355d60c5a4dd5fea5a23b7db8ec40fcebea9b7e2699dea923484b7176f7fe48f63f5239f456ee7b
23 DIST whois_5.2.10.tar.xz 78732 SHA256 8acb42bc693f73f3141b413f7df11b5582b9b738d9bf0d60e9017a8af4cb53b9 SHA512 6f7f409c10c20231e91afb113a60ce6642018700521505546ec1a469c43df236578fbab3e0efd95d0723b1c6379bdfcdef9382b6582af1ae9eca342b925695cb WHIRLPOOL edf7cea6548eaa31e1d10bd2e1464c0025f83937c7e990c1a824f2c24dbda60601cf6cca296132e6c574ccfe61c45a880f58199e4c60dc02efde87a656839887
24 DIST whois_5.2.11.tar.xz 79112 SHA256 32f7d6be853aa6a6a8ac6dd672bd60ae4f10bc0bedcaa944363ffbef6e57cef7 SHA512 cb947317c4310766683fad4572f1fb1c111ccbdbf4a05de9faf665e43f3ed2535d6be4dc8bc6ba860ab7b465ff5cbd964c8615404987353b09ddf450fab2dd33 WHIRLPOOL 10d81dc4552e1df99062b9f352ed64f103bd9ea5e8e24d77b5bd559171a45054ea31bba665e3b3262ea1724857fd1a4a2bbb47b56db0f98e8b06b74bd6ccd100
25 +DIST whois_5.2.12.tar.xz 80428 SHA256 b26d4027b8987d9911466aa06ce2c167a50017cd59a622a429bd506222f6cdf1 SHA512 df40e2e7cbd11d00984f865e122ad4ece882a6a45e2f75ad5ea24ce937b7e9452b01fd886f43bae55fd065a6556cfc4577e7126151b5fd43fa806c4b0c886ced WHIRLPOOL a2c5a3e9f01dd0cbb127269632c60e6c71c981df4d4e53fdf37e2c1932252f3ae2b13961a1c8606b542fd9997bf9fcb62a6cef592a01dbd04ff18c75e3f9b3ec
26
27 diff --git a/net-misc/whois/whois-5.2.12.ebuild b/net-misc/whois/whois-5.2.12.ebuild
28 new file mode 100644
29 index 0000000..826db9c
30 --- /dev/null
31 +++ b/net-misc/whois/whois-5.2.12.ebuild
32 @@ -0,0 +1,61 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +inherit eutils toolchain-funcs
39 +
40 +MY_P=${P/-/_}
41 +DESCRIPTION="improved Whois Client"
42 +HOMEPAGE="http://www.linux.it/~md/software/"
43 +SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
48 +IUSE="iconv idn nls"
49 +RESTRICT="test" #59327
50 +
51 +RDEPEND="iconv? ( virtual/libiconv )
52 + idn? ( net-dns/libidn )
53 + nls? ( virtual/libintl )"
54 +DEPEND="${RDEPEND}
55 + app-arch/xz-utils
56 + >=dev-lang/perl-5
57 + nls? ( sys-devel/gettext )"
58 +
59 +src_prepare() {
60 + epatch "${FILESDIR}"/${PN}-4.7.2-config-file.patch
61 +
62 + if use nls ; then
63 + sed -i -e 's:#\(.*pos\):\1:' Makefile || die
64 + else
65 + sed -i -e '/ENABLE_NLS/s:define:undef:' config.h || die
66 +
67 + # don't generate po files when nls is disabled (bug #419889)
68 + sed -i -e '/^all:/s/ pos//' \
69 + -e '/^install:/s/ install-pos//' Makefile || die
70 + fi
71 +}
72 +
73 +src_configure() { :;} # expected no-op
74 +
75 +src_compile() {
76 + unset HAVE_ICONV HAVE_LIBIDN
77 + use iconv && export HAVE_ICONV=1
78 + use idn && export HAVE_LIBIDN=1
79 + tc-export CC
80 + emake CFLAGS="${CFLAGS} ${CPPFLAGS}"
81 +}
82 +
83 +src_install() {
84 + emake BASEDIR="${ED}" prefix=/usr install
85 + insinto /etc
86 + doins whois.conf
87 + dodoc README debian/changelog
88 +
89 + if [[ ${USERLAND} != "GNU" ]]; then
90 + mv "${ED}"/usr/share/man/man1/{whois,mdwhois}.1 || die
91 + mv "${ED}"/usr/bin/{whois,mdwhois} || die
92 + fi
93 +}