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

net-misc/ipcalc: bump to 0.2.3

This commit is contained in:
2018-06-28 13:29:15 +02:00
parent 94a7a1c61c
commit ebac96c1b6
4 changed files with 2 additions and 103 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils toolchain-funcs
MY_PN=${PN%%-ng}
DESCRIPTION="an IPv4/IPv6 ipcalc tool"
HOMEPAGE="https://github.com/nmav/ipcalc"
SRC_URI="https://github.com/nmav/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+geoip"
S="${WORKDIR}/${MY_PN}-${PV}"
DEPEND="!net-misc/ipcalc
geoip? ( dev-libs/geoip )"
RDEPEND="${DEPEND}"
src_compile() {
emake \
CC="$(tc-getCC)" LIBS="${LDFLAGS}" LIBPATH="${EPREFIX}/usr/$(get_libdir)" \
USE_GEOIP="$(usex geoip yes no)" \
USE_DYN_GEOIP="no"
}
src_install() {
dobin ${MY_PN}
doman ${MY_PN}.1
dodoc NEWS README.md
}