Skip to content

Commit

Permalink
dev-util/find-work: update live
Browse files Browse the repository at this point in the history
Signed-off-by: Anna (cybertailor) Vyalkova <[email protected]>
  • Loading branch information
CyberTailor committed Aug 8, 2024
1 parent c0f48d5 commit 70db7d1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 36 deletions.
17 changes: 17 additions & 0 deletions dev-util/find-work-repology/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Anna</name>
</maintainer>
<upstream>
<maintainer>
<name>Anna</name>
<email>[email protected]</email>
</maintainer>
<remote-id type="pypi">find-work-repology</remote-id>
<bugs-to>https://bugs.sysrq.in/enter_bug.cgi?product=Software&amp;component=find-work</bugs-to>
<changelog>https://find-work.sysrq.in/release-notes.html</changelog>
</upstream>
</pkgmetadata>
43 changes: 7 additions & 36 deletions dev-util/find-work/find-work-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ EAPI=8

PYTHON_COMPAT=( python3_{11..12} )
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1 shell-completion
inherit distutils-r1

DESCRIPTION="Personal advice utility for Gentoo package maintainers"
HOMEPAGE="
Expand Down Expand Up @@ -33,49 +33,20 @@ RDEPEND="
dev-python/deepmerge[${PYTHON_USEDEP}]
>=dev-python/platformdirs-4[${PYTHON_USEDEP}]
<dev-python/platformdirs-5[${PYTHON_USEDEP}]
<dev-python/pluggy-2[${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}] )"
BDEPEND="
test? (
dev-python/pytest-import-check[${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
}

0 comments on commit 70db7d1

Please sign in to comment.