1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 11:42:40 +01:00

net-misc/ipcalc-ng: bump to 0.2.4

This commit is contained in:
2018-09-12 15:57:26 +02:00
parent 84f88c3746
commit c2e740934c
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils vcs-snapshot toolchain-funcs
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}/repository/archive.tar.bz2?ref=${PV} -> ${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="geoip +geoip2"
DEPEND="!net-misc/ipcalc
geoip? ( dev-libs/geoip )
geoip2? ( dev-libs/libmaxminddb:= )"
RDEPEND="${DEPEND}"
REQUIRED_USE="?? ( geoip geoip2 )"
src_compile() {
emake \
CC="$(tc-getCC)" LIBS="${LDFLAGS}" LIBPATH="${EPREFIX}/usr/$(get_libdir)" \
USE_GEOIP="$(usex geoip yes no)" \
USE_MAXMIND="$(usex geoip2 yes no)" \
USE_RUNTIME_LINKING="no"
}
src_install() {
dobin ${MY_PN}
doman ${MY_PN}.1
dodoc NEWS README.md
}