# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )

inherit distutils-r1

DESCRIPTION="Software to identify the different types of hashes"
HOMEPAGE="http://psypanda.github.io/hashID"

if [[ ${PV} == *9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/psypanda/hashID"
else
	MY_P="hashID-${PV}"
	SRC_URI="https://github.com/psypanda/hashID/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~arm ~x86"
	S="${WORKDIR}/${MY_P}"
fi

LICENSE="GPL-3"
SLOT="0"

DEPEND="${PYTHON_DEPS}"

src_install() {
	doman doc/man/*
	dodoc doc/hashinfo.xlsx

	distutils-r1_src_install
}
