summaryrefslogtreecommitdiff
path: root/net-misc/ipcalc/ipcalc-1.0.3.ebuild
blob: c204130f3d8dd2338f63601c86ac1f32eb16498a (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
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

DESCRIPTION="A modern IPv4/IPv6 ipcalc tool"
HOMEPAGE="https://gitlab.com/ipcalc/ipcalc"
SRC_URI="https://gitlab.com/ipcalc/ipcalc/-/archive/${PV}/ipcalc-${PV}.tar.bz2"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+man geoip geoip2"

RDEPEND="
	geoip? ( dev-libs/geoip )
	geoip2? ( dev-libs/libmaxminddb )
"
DEPEND="${RDEPEND}"
BDEPEND="
	man? ( app-text/ronn-ng )
"

src_configure() {
	local emesonargs=(
		$(meson_feature geoip use_geoip)
		$(meson_feature geoip2 use_maxminddb)
		-Duse_runtime_linking=disabled
	)
	meson_src_configure
}