diff options
author | 2024-09-14 17:35:03 +0100 | |
---|---|---|
committer | 2024-10-19 10:28:23 +0300 | |
commit | 8cc37fc1a542d87b88eb51bf84b21149c6579d6e (patch) | |
tree | 8431dd3bde37980b043b5c859fb46551923e56ee /net-analyzer | |
parent | net-analyzer/linkchecker: drop 10.2.1 (diff) | |
download | gentoo-8cc37fc1a542d87b88eb51bf84b21149c6579d6e.tar.gz gentoo-8cc37fc1a542d87b88eb51bf84b21149c6579d6e.tar.bz2 gentoo-8cc37fc1a542d87b88eb51bf84b21149c6579d6e.zip |
net-analyzer/linkchecker: add 10.5.0
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38524
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/linkchecker/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/linkchecker/linkchecker-10.5.0.ebuild | 67 | ||||
-rw-r--r-- | net-analyzer/linkchecker/metadata.xml | 1 |
3 files changed, 69 insertions, 0 deletions
diff --git a/net-analyzer/linkchecker/Manifest b/net-analyzer/linkchecker/Manifest index c31ad430659a..b0b02620c8bf 100644 --- a/net-analyzer/linkchecker/Manifest +++ b/net-analyzer/linkchecker/Manifest @@ -1 +1,2 @@ DIST LinkChecker-10.3.0.tar.gz 542403 BLAKE2B 24420c7479909d3d19d8fce45cfb2f5712107705a409f7d407097002ce6c6bb534a62a388b3a8d01760db7ac4200adf1d7250868dbeb41ec8cf8489a1776266b SHA512 fbcc4d10418642d6f0c0146a50294fa3d872eb98b53c49081af5d5ac644f1280694ad1ef8f82f639526ba08f6f0ed754b316567dd12c4e5e98360ccee4634d16 +DIST LinkChecker-10.5.0.tar.gz 546451 BLAKE2B caf2b4ad18b3fdd2efa8f55e5bf8914685cc9c1bc8c0d83673e06f2eb7d5effa5db6bb028dd094bac2ff3b2c39f7b68e2d5a81bccf40b280e1e0e79be9cefa19 SHA512 4bd39965430ce478db803776790ef382064ccda2096a6a3b358673821b941a064a20fb67a0b25a353859d60e3624cde33fe2b6797657c76882d3b84c443e4a84 diff --git a/net-analyzer/linkchecker/linkchecker-10.5.0.ebuild b/net-analyzer/linkchecker/linkchecker-10.5.0.ebuild new file mode 100644 index 000000000000..bd5bcd9d4c85 --- /dev/null +++ b/net-analyzer/linkchecker/linkchecker-10.5.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_REQ_USE="sqlite?" +DISTUTILS_USE_PEP517=hatchling +DISTUTILS_SINGLE_IMPL=1 +PYPI_NO_NORMALIZE=1 +PYPI_PN=LinkChecker + +inherit bash-completion-r1 distutils-r1 multiprocessing optfeature pypi + +DESCRIPTION="Check websites for broken links" +HOMEPAGE="https://github.com/linkchecker/linkchecker" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sqlite" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/dnspython[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + ') +" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + app-text/pdfminer[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/pyftpdlib[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] + ') + sys-devel/gettext + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +PATCHES=( "${FILESDIR}/${PN}-9.3-bash-completion.patch" ) + +DOCS=( + doc/changelog.txt + doc/upgrading.txt +) + +python_test() { + # epytest overrides bs4 ignores from pytest.ini + # and also outputs multiple warnings about unclosed test sockets + pytest -vra -n "$(makeopts_jobs)" || die +} + +python_install_all() { + distutils-r1_python_install_all + newbashcomp config/linkchecker-completion ${PN} +} + +pkg_postinst() { + optfeature "Virus scanning" app-antivirus/clamav + optfeature "Check links in PDF files" app-text/pdfminer + optfeature "bash-completion support" dev-python/argcomplete +} diff --git a/net-analyzer/linkchecker/metadata.xml b/net-analyzer/linkchecker/metadata.xml index 6904bacfa7cb..6306297ad887 100644 --- a/net-analyzer/linkchecker/metadata.xml +++ b/net-analyzer/linkchecker/metadata.xml @@ -14,5 +14,6 @@ </use> <upstream> <remote-id type="github">linkchecker/linkchecker</remote-id> + <remote-id type="pypi">LinkChecker</remote-id> </upstream> </pkgmetadata> |