mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 11:04:10 -04:00
dev-util/find-work: add 9999
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
81
dev-util/find-work/find-work-9999.ebuild
Normal file
81
dev-util/find-work/find-work-9999.ebuild
Normal file
@@ -0,0 +1,81 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
inherit distutils-r1 shell-completion
|
||||
|
||||
DESCRIPTION="Personal advice utility for Gentoo package maintainers"
|
||||
HOMEPAGE="
|
||||
https://find-work.sysrq.in/
|
||||
https://pypi.org/project/find-work/
|
||||
"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.sysrq.in/${PN}"
|
||||
else
|
||||
inherit pypi
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="WTFPL-2"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
<app-portage/gentoopm-2[${PYTHON_USEDEP}]
|
||||
>=dev-python/aiohttp-3[${PYTHON_USEDEP}]
|
||||
<dev-python/aiohttp-4[${PYTHON_USEDEP}]
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/click-aliases[${PYTHON_USEDEP}]
|
||||
dev-python/deepmerge[${PYTHON_USEDEP}]
|
||||
>=dev-python/platformdirs-4[${PYTHON_USEDEP}]
|
||||
<dev-python/platformdirs-5[${PYTHON_USEDEP}]
|
||||
>=dev-python/pydantic-2[${PYTHON_USEDEP}]
|
||||
<dev-python/pydantic-3[${PYTHON_USEDEP}]
|
||||
dev-python/python-bugzilla[${PYTHON_USEDEP}]
|
||||
>=dev-python/repology-client-0.0.2[${PYTHON_USEDEP}]
|
||||
<dev-python/repology-client-2[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2[${PYTHON_USEDEP}]
|
||||
<dev-python/requests-3[${PYTHON_USEDEP}]
|
||||
dev-python/sortedcontainers[${PYTHON_USEDEP}]
|
||||
dev-python/tabulate[${PYTHON_USEDEP}]
|
||||
dev-util/pkgcheck[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="test? ( dev-python/pytest-recording[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
distutils_enable_sphinx docs \
|
||||
dev-python/insipid-sphinx-theme \
|
||||
dev-python/sphinx-prompt
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
mkdir completions || die
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
|
||||
local -x PATH="${BUILD_DIR}/install${EPREFIX}/usr/bin:${PATH}"
|
||||
local -x PYTHONPATH="${BUILD_DIR}/lib:${PYTHONPATH}"
|
||||
emake completions/find-work.{bash,zsh,fish}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
local mymakeargs=(
|
||||
DESTDIR="${D}"
|
||||
PREFIX="${EPREFIX}"/usr
|
||||
|
||||
BASHCOMPDIR="$(get_bashcompdir)"
|
||||
ZSHCOMPDIR="$(get_zshcompdir)"
|
||||
FISHCOMPDIR="$(get_fishcompdir)"
|
||||
)
|
||||
|
||||
emake "${mymakeargs[@]}" install-data
|
||||
}
|
||||
Reference in New Issue
Block a user