blob: e9bc88a2cf8eb27b152b06ecc20229e2fad866c4 (
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
37
38
39
40
41
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="Modern IPv4/IPv6 ipcalc tool"
HOMEPAGE="https://gitlab.com/ipcalc/ipcalc"
MY_P="ipcalc-${PV}"
SRC_URI="
https://gitlab.com/ipcalc/ipcalc/-/archive/${PV}/${MY_P}.tar.bz2
https://dev.gentoo.org/~floppym/dist/ipcalc.1-1.0.2.bz2
"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="geoip"
DEPEND="
geoip? ( dev-libs/libmaxminddb )
"
RDEPEND="${DEPEND}
!net-misc/ipcalc
"
src_configure() {
local emesonargs=(
$(meson_feature geoip use_maxminddb)
-Duse_geoip=disabled
-Duse_runtime_linking=disabled
)
meson_src_configure
}
src_install() {
meson_src_install
newman "${WORKDIR}/ipcalc.1-1.0.2" ipcalc.1
}
|