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: Sun, 18 Aug 2019 23:23:36
Message-Id: 1566170558.05eb543305eeb5c115eb90a1f4dddd487e055e36.polynomial-c@gentoo
1 commit: 05eb543305eeb5c115eb90a1f4dddd487e055e36
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 18 23:22:38 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 18 23:22:38 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05eb5433
7
8 net-misc/whois: Bump to version 5.5.1
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-misc/whois/Manifest | 1 +
14 net-misc/whois/whois-5.5.1.ebuild | 72 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 73 insertions(+)
16
17 diff --git a/net-misc/whois/Manifest b/net-misc/whois/Manifest
18 index da52345564e..f25495cdcfd 100644
19 --- a/net-misc/whois/Manifest
20 +++ b/net-misc/whois/Manifest
21 @@ -1,2 +1,3 @@
22 +DIST whois-5.5.1.tar.gz 103269 BLAKE2B c737c922b7ef5a8619e1778521da66b3507e96ed82b2fdde8fe61df22d7c40bd4494fa26b3de83e51cbeaf4811d912cbeff8de230f7bce9c0dbeb021567c2908 SHA512 bc32208e32f632b515792767c6c72a94cb66e7f42aed3dc5dc6ede3f5f28860cc279c5e6b1579db45b0f7dc6d55ec910b81cf1dfadb91354fb3833b1272b93fc
23 DIST whois_5.4.3.tar.xz 83904 BLAKE2B 19b78ca984c86ad711c317ca6090003ae354eee2b39f353081e99f44396e254b3cb75d38c8f6df9fe88283c5036e9e02f38c74401de8245dbd4f5dae3a6e1a0a SHA512 762feec983d29696796bea87fb47c5bd7357ca96d701b2e30cccb186c248225c45b451289ab45936d7e3eed5c0ff4e8fa249255ceb061a4e1ba1f6cd8fcdf084
24 DIST whois_5.5.0.tar.xz 85600 BLAKE2B 37c90324e1b7c773793e1eaff70816f90a6429ab91bafcff36dfa02ea09b4eb5e83b8cd36e1ca0bc5eb3a043f1973f4479037de38cf41a7b7ac646845697636f SHA512 a26730613b8019385e48c7432bcc9871984a7035e53e56188a876e70e255a1adf23d546dfeb1706879af5c4a8f2231976fe89d2571b3d2cb6d615a7834a2d876
25
26 diff --git a/net-misc/whois/whois-5.5.1.ebuild b/net-misc/whois/whois-5.5.1.ebuild
27 new file mode 100644
28 index 00000000000..f4e5388d3fd
29 --- /dev/null
30 +++ b/net-misc/whois/whois-5.5.1.ebuild
31 @@ -0,0 +1,72 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit toolchain-funcs
38 +
39 +MY_P="${P/-/_}"
40 +DESCRIPTION="improved Whois Client"
41 +HOMEPAGE="https://github.com/rfc1036/whois"
42 +if [[ "${PV}" == *9999 ]] ; then
43 + inherit git-r3
44 + EGIT_REPO_URI="https://github.com/rfc1036/whois.git"
45 +else
46 + #SRC_URI="mirror://debian/pool/main/w/whois/${MY_P}.tar.xz"
47 + SRC_URI="https://github.com/rfc1036/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
48 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
49 +fi
50 +LICENSE="GPL-2"
51 +SLOT="0"
52 +IUSE="iconv idn nls"
53 +RESTRICT="test" #59327
54 +
55 +RDEPEND="iconv? ( virtual/libiconv )
56 + idn? ( net-dns/libidn2:= )
57 + nls? ( virtual/libintl )"
58 +DEPEND="${RDEPEND}"
59 +BDEPEND="
60 + app-arch/xz-utils
61 + >=dev-lang/perl-5
62 + virtual/pkgconfig
63 + nls? ( sys-devel/gettext )"
64 +
65 +PATCHES=(
66 + "${FILESDIR}"/${PN}-4.7.2-config-file.patch
67 + "${FILESDIR}"/${PN}-5.3.0-libidn_automagic.patch
68 +)
69 +
70 +src_prepare() {
71 + default
72 + if use nls ; then
73 + sed -i -e 's:#\(.*pos\):\1:' Makefile || die
74 + else
75 + sed -i -e '/ENABLE_NLS/s:define:undef:' config.h || die
76 +
77 + # don't generate po files when nls is disabled (bug #419889)
78 + sed -i -e '/^all:/s/ pos//' \
79 + -e '/^install:/s/ install-pos//' Makefile || die
80 + fi
81 +}
82 +
83 +src_configure() { :; } # expected no-op
84 +
85 +src_compile() {
86 + unset HAVE_ICONV HAVE_LIBIDN
87 + use iconv && export HAVE_ICONV=1
88 + use idn && export HAVE_LIBIDN=1
89 + tc-export CC
90 + emake CFLAGS="${CFLAGS} ${CPPFLAGS}"
91 +}
92 +
93 +src_install() {
94 + emake BASEDIR="${ED}" prefix=/usr install
95 + insinto /etc
96 + doins whois.conf
97 + dodoc README debian/changelog
98 +
99 + if [[ ${USERLAND} != "GNU" ]]; then
100 + mv "${ED}"/usr/share/man/man1/{whois,mdwhois}.1 || die
101 + mv "${ED}"/usr/bin/{whois,mdwhois} || die
102 + fi
103 +}