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:
36
net-misc/ipcalc-ng/ipcalc-ng-0.2.3.ebuild
Normal file
36
net-misc/ipcalc-ng/ipcalc-ng-0.2.3.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user