diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-10-04 18:51:45 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-10-04 18:54:16 +0300 |
commit | e8da962b6e09723cfba18f34cc10df6b97fb5cb8 (patch) | |
tree | 5536a7e97c99cca44cea3fd7da1205eb6fa38c52 | |
parent | sys-kernel/gentoo-sources: drop 5.19.12 (diff) | |
download | gentoo-e8da962b6e09723cfba18f34cc10df6b97fb5cb8.tar.gz gentoo-e8da962b6e09723cfba18f34cc10df6b97fb5cb8.tar.bz2 gentoo-e8da962b6e09723cfba18f34cc10df6b97fb5cb8.zip |
dev-util/pkgcheck: add 0.10.16
Closes: https://bugs.gentoo.org/799314
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | dev-util/pkgcheck/Manifest | 1 | ||||
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-0.10.16.ebuild | 98 |
2 files changed, 99 insertions, 0 deletions
diff --git a/dev-util/pkgcheck/Manifest b/dev-util/pkgcheck/Manifest index aeb93e6a26fb..8aae2f8e7ee6 100644 --- a/dev-util/pkgcheck/Manifest +++ b/dev-util/pkgcheck/Manifest @@ -1,2 +1,3 @@ DIST pkgcheck-0.10.14.tar.gz 490827 BLAKE2B cf45c66e8cbe11f65840eb98de7e4c8359396f6271dc7d728daeb54704e53c1480198bc1451b4d50510d00029243a0d6dd91201f4bd7b3b5860df27b66792ee7 SHA512 c792a7dfe4f49e6c2008a44f6afb10a2db2067e8e6b9fc6bfe27010e62a6341328f62f3f2e87c4025997392f3883431d4a66c97beb3eeb690cef63e697754ec3 DIST pkgcheck-0.10.15.tar.gz 493266 BLAKE2B 1dfff3ded8f76c807e79415c6eab1786aeb103975ca639f509e4d97448bed3c7e7969b30ad699528d1a655a6be39fa89f20bf91ee774ab40ca1c99ed23c6f970 SHA512 9bcee0428f6276dc1a5a92dfb528402bc51dd38a79fc2bfeba391297e6e6c058ebf5579e086de881a3331c669dd4700f4b2d5baa74f66172953a329d7e815433 +DIST pkgcheck-0.10.16.tar.gz 495095 BLAKE2B 361d0619454cd25a9b50d837e39501ad7065a0f4f04a7abfa0a24788800247d417d0dfdf0f94d45be1a224564c09b849c4fd111ce38646dfc7e7a6c41fee9470 SHA512 976acd7c8cc4dae9fb486d8ab9d3903286fa0050db43a402dc70e6287daa8613fdf107cd4aa51bb74820aab1e4d9585e9d574ce1c335a118340d7148c793667c diff --git a/dev-util/pkgcheck/pkgcheck-0.10.16.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.16.ebuild new file mode 100644 index 000000000000..a6ad1058a878 --- /dev/null +++ b/dev-util/pkgcheck/pkgcheck-0.10.16.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +DISTUTILS_IN_SOURCE_BUILD=1 +inherit elisp-common distutils-r1 optfeature + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="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 +} |