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: Mon, 16 Jul 2018 08:00:36
Message-Id: 1531728016.858eee25c28db7fcf28555dad6cadf8957e5f645.polynomial-c@gentoo
1 commit: 858eee25c28db7fcf28555dad6cadf8957e5f645
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 16 07:28:12 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 16 08:00:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=858eee25
7
8 net-misc/whois: Bump to version 5.3.2
9
10 Package-Manager: Portage-2.3.42, Repoman-2.3.9
11
12 net-misc/whois/Manifest | 1 +
13 net-misc/whois/whois-5.3.2.ebuild | 65 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/net-misc/whois/Manifest b/net-misc/whois/Manifest
17 index 03aefe4b594..845e47265e1 100644
18 --- a/net-misc/whois/Manifest
19 +++ b/net-misc/whois/Manifest
20 @@ -1,3 +1,4 @@
21 DIST whois_5.2.20.tar.xz 82336 BLAKE2B b10d7e22f41bfb68cdd1264016bbfeeb93436a5c46b0ddcfc79834d0446ea8c21cd8ff95bc440bbe4fda0d5b08a16c50fe9504c98c3de3cf4ce18892203518e1 SHA512 3308d9f5562babe007e46b7764718f13c1e7cd8ef7f501161353e4b1b81efacec9742ec25dec3b1cc80940898c785c1920a1aa68af10081f952ebde320075808
22 DIST whois_5.3.0.tar.xz 82728 BLAKE2B ac5e9bdd070c3a79306f79709d6450455ff74fc7c3a8c81380f79b98cdd36d25932032673710a39ec55da2220f1d0a21221e1a2b70c36e8798affe9b7f46f3bb SHA512 a507f38254d826a9112d1f5a7888fbd4b79eeaa372977c02e4e8235509d133540ba647ddece95376f6ac704f9b1042d276051d4a3a36d10906ad11f69561432f
23 DIST whois_5.3.1.tar.xz 82920 BLAKE2B b4e58ae3f58c8e5de8bca5be3c0e753e0de91651bea1aa4789d389bc65e5155cddb1e87a2adc39340f33360533ef2b86eb9b7b13116a2d64e8a68496529e65e5 SHA512 4840ceecaef1d47bda436f8de8b539ff2b1446dd99ec0867d0bb2b478c13fac190a4a265ab31abb30a779f1a221062f298cd01a1b19ce873221b39dbd3a4a3d7
24 +DIST whois_5.3.2.tar.xz 82984 BLAKE2B 2e2d9ebf2e93831a1fa3e98a2f8922e531592b95175c9280358a37160a9033ee805baa6519304350399c112e619e293a2746df527ef5c580afbdde1542cbef06 SHA512 27d9576ee7b701778cac0dd7d4df2c4ae2d152fa5dfb3f84d7d5d592314e45872b2f3d6eca0754923ec3a0741e5365bf2238b2c0b366403c35e8a5b046e59434
25
26 diff --git a/net-misc/whois/whois-5.3.2.ebuild b/net-misc/whois/whois-5.3.2.ebuild
27 new file mode 100644
28 index 00000000000..27fc4102f0c
29 --- /dev/null
30 +++ b/net-misc/whois/whois-5.3.2.ebuild
31 @@ -0,0 +1,65 @@
32 +# Copyright 1999-2018 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/libidn2:= )
51 + nls? ( virtual/libintl )"
52 +DEPEND="${RDEPEND}
53 + app-arch/xz-utils
54 + >=dev-lang/perl-5
55 + virtual/pkgconfig
56 + nls? ( sys-devel/gettext )"
57 +
58 +PATCHES=(
59 + "${FILESDIR}"/${PN}-4.7.2-config-file.patch
60 + "${FILESDIR}"/${PN}-5.3.0-libidn_automagic.patch
61 +)
62 +
63 +src_prepare() {
64 + default
65 + if use nls ; then
66 + sed -i -e 's:#\(.*pos\):\1:' Makefile || die
67 + else
68 + sed -i -e '/ENABLE_NLS/s:define:undef:' config.h || die
69 +
70 + # don't generate po files when nls is disabled (bug #419889)
71 + sed -i -e '/^all:/s/ pos//' \
72 + -e '/^install:/s/ install-pos//' Makefile || die
73 + fi
74 +}
75 +
76 +src_configure() { :; } # expected no-op
77 +
78 +src_compile() {
79 + unset HAVE_ICONV HAVE_LIBIDN
80 + use iconv && export HAVE_ICONV=1
81 + use idn && export HAVE_LIBIDN=1
82 + tc-export CC
83 + emake CFLAGS="${CFLAGS} ${CPPFLAGS}"
84 +}
85 +
86 +src_install() {
87 + emake BASEDIR="${ED}" prefix=/usr install
88 + insinto /etc
89 + doins whois.conf
90 + dodoc README debian/changelog
91 +
92 + if [[ ${USERLAND} != "GNU" ]]; then
93 + mv "${ED%/}"/usr/share/man/man1/{whois,mdwhois}.1 || die
94 + mv "${ED%/}"/usr/bin/{whois,mdwhois} || die
95 + fi
96 +}