mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 13:52:40 +01:00
net-misc/ipcalc-ng: Bump to 0.3.0, Port to meson build and EAPI 7
This commit is contained in:
33
net-misc/ipcalc-ng/ipcalc-ng-0.3.0.ebuild
Normal file
33
net-misc/ipcalc-ng/ipcalc-ng-0.3.0.ebuild
Normal file
@@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2019 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit eutils 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}/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_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_feature geoip use_geoip)
|
||||
$(meson_feature geoip2 use_maxminddb)
|
||||
-Duse_runtime_linking=disabled
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user