summaryrefslogtreecommitdiff
blob: 2361c19c70eb2567f712689f01e3954ed82f8a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit autotools flag-o-matic

DESCRIPTION="FreeBSD Whois Client"
HOMEPAGE="https://www.freebsd.org/"
SRC_URI="http://utenti.gufi.org/~drizzt/codes/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"

PATCHES=(
	"${FILESDIR}/${PN}-1.43.2.1-musl-cdefs.patch"
	"${FILESDIR}/${PN}-1.43.2.1-clang16-build.patch"
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	# bug #875029
	append-cppflags -D_GNU_SOURCE
	default
}

src_install() {
	default

	mv "${ED}"/usr/share/man/man1/{whois,bsdwhois}.1 || die
	mv "${ED}"/usr/bin/{whois,bsdwhois} || die
}