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