diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-01-26 18:51:19 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-01-26 19:25:23 +0200 |
commit | f39187a2b2b47dcc8b988899161ce9438f8d43d0 (patch) | |
tree | 1aed4b20bafd3ab6f7464eda4cc240f2cfdbe0c0 /dev-util/pkgcheck | |
parent | dev-python/google-api-python-client: Enable py3.12 (diff) | |
download | gentoo-f39187a2b2b47dcc8b988899161ce9438f8d43d0.tar.gz gentoo-f39187a2b2b47dcc8b988899161ce9438f8d43d0.tar.bz2 gentoo-f39187a2b2b47dcc8b988899161ce9438f8d43d0.zip |
dev-util/pkgcheck: add 0.10.27
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-util/pkgcheck')
-rw-r--r-- | dev-util/pkgcheck/Manifest | 1 | ||||
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-0.10.27.ebuild | 94 |
2 files changed, 95 insertions, 0 deletions
diff --git a/dev-util/pkgcheck/Manifest b/dev-util/pkgcheck/Manifest index 0cdda5f00405..39f1d7fbae3c 100644 --- a/dev-util/pkgcheck/Manifest +++ b/dev-util/pkgcheck/Manifest @@ -1,2 +1,3 @@ DIST pkgcheck-0.10.25.tar.gz 580383 BLAKE2B 2f32bf413dcb68a59b82ee04147b7844efd7b69d932b5d57182e1c91be12750fe14fdd42bf40c652c69e8ac009b2346cc644a9407cf11f03eea2e74f4ab8edc6 SHA512 8d90b5629236f468b5553ca288dbd4843d83b09adc9b9b20a6ad6228a8bff74bf1c1e473575f85d1fb00bdd416e07cc77ea098fd6a2b29edf39f51da364c4831 DIST pkgcheck-0.10.26.tar.gz 800332 BLAKE2B 01bfb0168fa7bb27660d4d82dca673834e761913aa4ab12a93a78936da9af3ad9d4330bc276c1c14687d0e0bed1f0748ed72ec871ee1af0c47bbdf724aa02e02 SHA512 8b668db52e1a28a664f06d7d4c590830a3f55c8f400b1dd61f8e721ecc04cd0b8d4e8124d07740d47c40fd9c4f3e9189a2c9a27c371109b76edcdfbad86e52fa +DIST pkgcheck-0.10.27.tar.gz 806381 BLAKE2B f4acf72e85003f4dfa244c843464ab40a93df64a7bec68682cf39413552a51989a3214cab9c340318cebb39a8cf33c497fd72335cd37772f8e4d6e87838e413b SHA512 581109fdc565852d0407d770634864f809c2860ccfa03675afc8273199bc00af1c632c0fca27904c3262b1e851f3b8939cbda466cb3876ac228cddf74016fb32 diff --git a/dev-util/pkgcheck/pkgcheck-0.10.27.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.27.ebuild new file mode 100644 index 000000000000..0bfd64093b98 --- /dev/null +++ b/dev-util/pkgcheck/pkgcheck-0.10.27.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) +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" + inherit pypi +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.4[${PYTHON_USEDEP}] + >=sys-apps/pkgcore-0.12.21[${PYTHON_USEDEP}]" +fi +RDEPEND+=" + dev-libs/tree-sitter + >=dev-libs/tree-sitter-bash-0.20.4 + 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} + dev-python/wheel + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-vcs/git + ) +" + +SITEFILE="50${PN}-gentoo.el" + +distutils_enable_tests pytest + +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 +} + +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 +} |