# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit perl-module

if [[ "${PV}" = "9999" ]]
then
	inherit git-r3
	EGIT_REPO_URI="https://hacktivis.me/git/cve-client.git"
else
	SRC_URI="https://hacktivis.me/releases/${PN}/${P}.tar.gz"
	KEYWORDS="~amd64"
fi

DESCRIPTION="CLI-based client / toolbox for CVE.org"
HOMEPAGE="https://hacktivis.me/git/cve-client/"
LICENSE="AGPL-3"
SLOT="0"

RDEPEND="
	dev-perl/JSON-MaybeXS
	dev-perl/LWP-Protocol-https
"
DEPEND="
	${RDEPEND}
	test? ( dev-perl/Test-Output )
"