1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 09:32:37 +01:00

net-misc/ipcalc-ng: bump to 1.0.2, remove old

This commit is contained in:
2023-01-15 21:52:02 +01:00
parent 19e5854e3f
commit 12acfab029
5 changed files with 269 additions and 44 deletions

View File

@@ -0,0 +1,43 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson vcs-snapshot
MY_PN=${PN%%-ng}
DESCRIPTION="an IPv4/IPv6 ipcalc tool"
HOMEPAGE="https://gitlab.com/ipcalc/ipcalc"
SRC_URI="https://gitlab.com/${MY_PN}/${MY_PN}/-/archive/${PV}/${MY_PN}-${PV}.tar.bz2 -> ${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="geoip +geoip2"
DEPEND="
geoip? ( dev-libs/geoip )
geoip2? ( dev-libs/libmaxminddb:= )"
RDEPEND="!!net-misc/ipcalc"
REQUIRED_USE="?? ( geoip geoip2 )"
PATCHES=(
"${FILESDIR}"/${P}-remove-man-generation.patch
)
src_configure() {
local emesonargs=(
$(meson_feature geoip use_geoip)
$(meson_feature geoip2 use_maxminddb)
-Duse_runtime_linking=disabled
)
meson_src_configure
}
src_install() {
meson_src_install
doman "${FILESDIR}"/${MY_PN}.1
}