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: Thu, 28 Dec 2017 15:51:40
Message-Id: 1514475904.6bdc57e2adf26458e1ae3fda88319046254c8d5f.polynomial-c@gentoo
1 commit: 6bdc57e2adf26458e1ae3fda88319046254c8d5f
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 28 15:45:04 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 28 15:45:04 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bdc57e2
7
8 net-misc/whois: Bump to version 5.2.20
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 net-misc/whois/Manifest | 1 +
13 net-misc/whois/whois-5.2.20.ebuild | 63 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/net-misc/whois/Manifest b/net-misc/whois/Manifest
17 index 03bfaf597aa..71d70bbc29f 100644
18 --- a/net-misc/whois/Manifest
19 +++ b/net-misc/whois/Manifest
20 @@ -1,3 +1,4 @@
21 DIST whois_5.2.12.tar.xz 80428 BLAKE2B 53aa08d4e45ab417585aaaff03beb588a01e88c35d508f96e0738e6934659df6ab78c21d5794d86ce90c775fe5a32242710e8cf93b9f46c52dc32597ad113f40 SHA512 df40e2e7cbd11d00984f865e122ad4ece882a6a45e2f75ad5ea24ce937b7e9452b01fd886f43bae55fd065a6556cfc4577e7126151b5fd43fa806c4b0c886ced
22 DIST whois_5.2.18.tar.xz 82368 BLAKE2B 41596c6100436cb766af3cd84ceb817a958b8f6b9aa58f4174a758c9d90e9813443135998c04b418c68912aba9c0758ecedcd940533989279c4f2c39c767c66c SHA512 dcbfbab0da3b9b5876c7c51bc411ac371a5c33012bf1286a3e6ccfb59fb4fba89eab1c4b812766d2f101a93ca3424ef636214c05add59549b9809621dfb03d73
23 DIST whois_5.2.19.tar.xz 82476 BLAKE2B 20fb18c0d7244293f5ead1bb11431227f5897f8db57ce4347790e4f9e4689c1dd8a43a9be95533df2496f4da515163053e3f9110f5470eb3faa1cf9a6f21bd4c SHA512 93e6df6bda18fe1dd9b8ca017271a46c6e2b721820260b11c5427258f6c0010cb573cc619def5af44a56b5740423b46ad7b383da7743cc35517f4526a720389f
24 +DIST whois_5.2.20.tar.xz 82336 BLAKE2B b10d7e22f41bfb68cdd1264016bbfeeb93436a5c46b0ddcfc79834d0446ea8c21cd8ff95bc440bbe4fda0d5b08a16c50fe9504c98c3de3cf4ce18892203518e1 SHA512 3308d9f5562babe007e46b7764718f13c1e7cd8ef7f501161353e4b1b81efacec9742ec25dec3b1cc80940898c785c1920a1aa68af10081f952ebde320075808
25
26 diff --git a/net-misc/whois/whois-5.2.20.ebuild b/net-misc/whois/whois-5.2.20.ebuild
27 new file mode 100644
28 index 00000000000..b9d8673f4dc
29 --- /dev/null
30 +++ b/net-misc/whois/whois-5.2.20.ebuild
31 @@ -0,0 +1,63 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +inherit toolchain-funcs
37 +
38 +MY_P=${P/-/_}
39 +DESCRIPTION="improved Whois Client"
40 +HOMEPAGE="https://www.linux.it/~md/software/"
41 +SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
46 +IUSE="iconv idn nls"
47 +RESTRICT="test" #59327
48 +
49 +RDEPEND="iconv? ( virtual/libiconv )
50 + idn? ( net-dns/libidn )
51 + nls? ( virtual/libintl )"
52 +DEPEND="${RDEPEND}
53 + app-arch/xz-utils
54 + >=dev-lang/perl-5
55 + nls? ( sys-devel/gettext )"
56 +
57 +PATCHES=(
58 + "${FILESDIR}"/${PN}-4.7.2-config-file.patch
59 +)
60 +
61 +src_prepare() {
62 + default
63 + if use nls ; then
64 + sed -i -e 's:#\(.*pos\):\1:' Makefile || die
65 + else
66 + sed -i -e '/ENABLE_NLS/s:define:undef:' config.h || die
67 +
68 + # don't generate po files when nls is disabled (bug #419889)
69 + sed -i -e '/^all:/s/ pos//' \
70 + -e '/^install:/s/ install-pos//' Makefile || die
71 + fi
72 +}
73 +
74 +src_configure() { :;} # expected no-op
75 +
76 +src_compile() {
77 + unset HAVE_ICONV HAVE_LIBIDN
78 + use iconv && export HAVE_ICONV=1
79 + use idn && export HAVE_LIBIDN=1
80 + tc-export CC
81 + emake CFLAGS="${CFLAGS} ${CPPFLAGS}"
82 +}
83 +
84 +src_install() {
85 + emake BASEDIR="${ED}" prefix=/usr install
86 + insinto /etc
87 + doins whois.conf
88 + dodoc README debian/changelog
89 +
90 + if [[ ${USERLAND} != "GNU" ]]; then
91 + mv "${ED}"/usr/share/man/man1/{whois,mdwhois}.1 || die
92 + mv "${ED}"/usr/bin/{whois,mdwhois} || die
93 + fi
94 +}