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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F23A8158020 for ; Thu, 10 Nov 2022 19:56:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16EC3E0A10; Thu, 10 Nov 2022 19:56:38 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EBB1EE0A10 for ; Thu, 10 Nov 2022 19:56:37 +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 E88C5340E10 for ; Thu, 10 Nov 2022 19:56:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4419A6E9 for ; Thu, 10 Nov 2022 19:56:35 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1668110189.6ada4eb1e651b4c7f159d7f361580154caa820b3.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgcheck/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/pkgcheck/Manifest dev-util/pkgcheck/pkgcheck-0.10.18.ebuild X-VCS-Directories: dev-util/pkgcheck/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 6ada4eb1e651b4c7f159d7f361580154caa820b3 X-VCS-Branch: master Date: Thu, 10 Nov 2022 19:56:35 +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: 57744540-a94a-4126-a180-0be4e4553bb5 X-Archives-Hash: c7c5ae0f38867660a69e94bf5126dd06 commit: 6ada4eb1e651b4c7f159d7f361580154caa820b3 Author: Arthur Zamarin gentoo org> AuthorDate: Thu Nov 10 19:55:44 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Nov 10 19:56:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ada4eb1 dev-util/pkgcheck: add 0.10.18 Signed-off-by: Arthur Zamarin gentoo.org> dev-util/pkgcheck/Manifest | 1 + dev-util/pkgcheck/pkgcheck-0.10.18.ebuild | 99 +++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) diff --git a/dev-util/pkgcheck/Manifest b/dev-util/pkgcheck/Manifest index 9f9b6883f0e2..15d38004433e 100644 --- a/dev-util/pkgcheck/Manifest +++ b/dev-util/pkgcheck/Manifest @@ -1 +1,2 @@ DIST pkgcheck-0.10.17.tar.gz 497163 BLAKE2B 600b51c5c034356fcfbbbb741681e7e304ccf14b9390207305d35c48dff7675e808101fa76f6a4ce250691b2fd99deae7d59cc91560d609c1a2c3d7421859849 SHA512 3539d877b63e739877f79340ff59c3592f43ac9e00b507ab63d7afc2bb3eaa32f863e7cc8029c5a05bcf7068de70fd3149447054f0d9d304d4e3548a0a25d676 +DIST pkgcheck-0.10.18.tar.gz 509039 BLAKE2B e352e355fbe624d5b90710ec0ad7d0492a5e3dfe8620f3a98a0581f1433f5964b61cbed62833adb2b5427b38ebbc1ece4876203ce43525d0295636112cad98c6 SHA512 2d962cfc42d371a1b1eec722bfc5f83da87d40a3c8bb1e679914fc8157b6ae45b58f07c422a13b42033aeb2530405f923107583b6cc365108c8cb861a31374f0 diff --git a/dev-util/pkgcheck/pkgcheck-0.10.18.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.18.ebuild new file mode 100644 index 000000000000..f3c9d7062d84 --- /dev/null +++ b/dev-util/pkgcheck/pkgcheck-0.10.18.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_IN_SOURCE_BUILD=1 +inherit elisp-common distutils-r1 optfeature + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/pkgcore/pkgcheck.git + https://github.com/pkgcore/pkgcheck.git" + inherit git-r3 +else + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +fi + +DESCRIPTION="pkgcore-based QA utility for ebuild repos" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" + +LICENSE="BSD MIT" +SLOT="0" +IUSE="emacs" + +if [[ ${PV} == *9999 ]]; then + RDEPEND=" + ~dev-python/snakeoil-9999[${PYTHON_USEDEP}] + ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" +else + RDEPEND=" + >=dev-python/snakeoil-0.10.1[${PYTHON_USEDEP}] + >=sys-apps/pkgcore-0.12.15[${PYTHON_USEDEP}]" +fi +RDEPEND+=" + dev-libs/tree-sitter + dev-libs/tree-sitter-bash + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/lazy-object-proxy[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pathspec[${PYTHON_USEDEP}] + >=dev-python/tree-sitter-0.19.0[${PYTHON_USEDEP}] + emacs? ( + >=app-editors/emacs-24.1:* + app-emacs/ebuild-mode + app-emacs/flycheck + ) +" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-vcs/git + ) +" + +SITEFILE="50${PN}-gentoo.el" + +distutils_enable_tests setup.py + +export USE_SYSTEM_TREE_SITTER_BASH=1 + +src_compile() { + distutils-r1_src_compile + + if use emacs ; then + pushd "${S}"/contrib/emacs >/dev/null || die + elisp-compile *.el + popd >/dev/null || die + fi +} + +src_test() { + local -x PYTHONDONTWRITEBYTECODE= + distutils-r1_src_test +} + +python_install_all() { + local DOCS=( NEWS.rst ) + [[ ${PV} == *9999 ]] || doman man/* + distutils-r1_python_install_all + + if use emacs ; then + elisp-install ${PN} "${S}"/contrib/emacs/*.el{,c} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + + optfeature "Network check support" dev-python/requests + optfeature "Perl module version check support" dev-perl/Gentoo-PerlMod-Version +} + +pkg_postrm() { + use emacs && elisp-site-regen +}