46 lines
1.0 KiB
Bash
46 lines
1.0 KiB
Bash
# Copyright 2022-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{12..15} )
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="nvchecker is for checking if a new version of some software has been released"
|
|
HOMEPAGE="https://pypi.org/project/nvchecker/"
|
|
SRC_URI="https://github.com/lilydjwg/nvchecker/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64"
|
|
IUSE="ini notify"
|
|
RESTRICT="test"
|
|
|
|
RDEPEND="
|
|
dev-python/platformdirs[$PYTHON_USEDEP]
|
|
dev-python/structlog[$PYTHON_USEDEP]
|
|
>=dev-python/tornado-6[${PYTHON_USEDEP}]
|
|
ini? (
|
|
dev-python/iniconfig[$PYTHON_USEDEP]
|
|
)
|
|
notify? (
|
|
dev-python/pygobject[$PYTHON_USEDEP]
|
|
virtual/notification-daemon
|
|
)
|
|
"
|
|
|
|
PATCHES=("${FILESDIR}/${PN}-2.20-license-classifier-warns.patch")
|
|
|
|
python_install_all() {
|
|
distutils-r1_python_install_all
|
|
|
|
if ! use ini; then
|
|
rm "${ED}"/usr/bin/nvchecker-ini2toml || die
|
|
fi
|
|
|
|
if ! use notify; then
|
|
rm "${ED}"/usr/bin/nvchecker-notify || die
|
|
fi
|
|
}
|