From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5DF571581F3 for ; Wed, 27 Nov 2024 14:35:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EAC1BE086A; Wed, 27 Nov 2024 14:35:00 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D33C8E085A for ; Wed, 27 Nov 2024 14:35:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 13A7A343086 for ; Wed, 27 Nov 2024 14:35:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 58D7921C8 for ; Wed, 27 Nov 2024 14:34:56 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1732630486.d13007f37a5de2b08b43586adfe70f817867e9f0.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-util/find-work/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-util/find-work/find-work-0.990.0.ebuild dev-util/find-work/find-work-9999.ebuild X-VCS-Directories: dev-util/find-work/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: d13007f37a5de2b08b43586adfe70f817867e9f0 X-VCS-Branch: master Date: Wed, 27 Nov 2024 14:34:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dde8ce52-472f-4df5-b1b0-af42401f7364 X-Archives-Hash: dc077befce93a18bfe704e7bf553a0d0 commit: d13007f37a5de2b08b43586adfe70f817867e9f0 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Tue Nov 26 14:03:29 2024 +0000 Commit: David Roman gmail com> CommitDate: Tue Nov 26 14:14:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d13007f3 dev-util/find-work: switch to click-app eclass Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> dev-util/find-work/find-work-0.990.0.ebuild | 37 +++-------------------------- dev-util/find-work/find-work-9999.ebuild | 37 +++-------------------------- 2 files changed, 6 insertions(+), 68 deletions(-) diff --git a/dev-util/find-work/find-work-0.990.0.ebuild b/dev-util/find-work/find-work-0.990.0.ebuild index d39534f36..e1cfbced2 100644 --- a/dev-util/find-work/find-work-0.990.0.ebuild +++ b/dev-util/find-work/find-work-0.990.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{11..13} ) DISTUTILS_USE_PEP517=hatchling -inherit distutils-r1 shell-completion +inherit click-app distutils-r1 DESCRIPTION="Personal advice utility for Gentoo package maintainers" HOMEPAGE=" @@ -69,28 +69,7 @@ distutils_enable_sphinx docs \ dev-python/insipid-sphinx-theme \ dev-python/sphinx-prompt -pkg_setup() { - DISTUTILS_ALL_SUBPHASE_IMPLS=() - - # bug #944221 - for impl in "${PYTHON_COMPAT[@]}"; do - use "python_targets_${impl}" && \ - DISTUTILS_ALL_SUBPHASE_IMPLS+=( "${impl}" ) - done -} - -python_compile_all() { - # copy-pasted from distutils_write_namespace - local path="${BUILD_DIR}/install$(python_get_sitedir)/find_work/__init__.py" - cat > "${path}" <<-EOF || die - __path__ = __import__('pkgutil').extend_path(__path__, __name__) - EOF - - emake completions BIN="${BUILD_DIR}/install${EPREFIX}/usr/bin/find-work" - sphinx_compile_all - - rm "${path}" || die -} +click-app_enable_completions find-work python_test() { distutils_write_namespace find_work @@ -99,15 +78,5 @@ python_test() { 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 + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install-man } diff --git a/dev-util/find-work/find-work-9999.ebuild b/dev-util/find-work/find-work-9999.ebuild index d39534f36..e1cfbced2 100644 --- a/dev-util/find-work/find-work-9999.ebuild +++ b/dev-util/find-work/find-work-9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{11..13} ) DISTUTILS_USE_PEP517=hatchling -inherit distutils-r1 shell-completion +inherit click-app distutils-r1 DESCRIPTION="Personal advice utility for Gentoo package maintainers" HOMEPAGE=" @@ -69,28 +69,7 @@ distutils_enable_sphinx docs \ dev-python/insipid-sphinx-theme \ dev-python/sphinx-prompt -pkg_setup() { - DISTUTILS_ALL_SUBPHASE_IMPLS=() - - # bug #944221 - for impl in "${PYTHON_COMPAT[@]}"; do - use "python_targets_${impl}" && \ - DISTUTILS_ALL_SUBPHASE_IMPLS+=( "${impl}" ) - done -} - -python_compile_all() { - # copy-pasted from distutils_write_namespace - local path="${BUILD_DIR}/install$(python_get_sitedir)/find_work/__init__.py" - cat > "${path}" <<-EOF || die - __path__ = __import__('pkgutil').extend_path(__path__, __name__) - EOF - - emake completions BIN="${BUILD_DIR}/install${EPREFIX}/usr/bin/find-work" - sphinx_compile_all - - rm "${path}" || die -} +click-app_enable_completions find-work python_test() { distutils_write_namespace find_work @@ -99,15 +78,5 @@ python_test() { 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 + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install-man }