diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2021-12-24 06:34:35 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-24 06:47:02 +0000 |
commit | 93c84c844c18bffebfc7751628cfac0666f4429d (patch) | |
tree | db9d245d5b943dc603278cd03753c8a97151cf36 /net-analyzer/linkchecker/linkchecker-10.1.0.ebuild | |
parent | dev-util/cargo-c: drop versions (diff) | |
download | gentoo-93c84c844c18bffebfc7751628cfac0666f4429d.tar.gz gentoo-93c84c844c18bffebfc7751628cfac0666f4429d.tar.bz2 gentoo-93c84c844c18bffebfc7751628cfac0666f4429d.zip |
net-analyzer/linkchecker: bump to 10.1.0
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/linkchecker/linkchecker-10.1.0.ebuild')
-rw-r--r-- | net-analyzer/linkchecker/linkchecker-10.1.0.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/net-analyzer/linkchecker/linkchecker-10.1.0.ebuild b/net-analyzer/linkchecker/linkchecker-10.1.0.ebuild new file mode 100644 index 000000000000..c839792807fa --- /dev/null +++ b/net-analyzer/linkchecker/linkchecker-10.1.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{7..10} ) +PYTHON_REQ_USE="sqlite?" + +inherit bash-completion-r1 distutils-r1 optfeature + +DESCRIPTION="Check websites for broken links" +HOMEPAGE="https://github.com/linkcheck/linkchecker" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/linkcheck/linkchecker.git" + inherit git-r3 +else + SRC_URI="https://github.com/linkchecker/linkchecker/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="sqlite" +# requires libs not present in portage yet +RESTRICT="test" + +RDEPEND=" + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/dnspython[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/${PN}-9.3-bash-completion.patch" + "${FILESDIR}/${PN}-10.1.0-version.patch" +) + +DOCS=( + doc/changelog.txt + doc/upgrading.txt +) + +python_prepare_all() { + distutils-r1_python_prepare_all + sed -e "s/LINKCHECKER_VERSION/${PV}/g" -i setup.py || die +} + +python_install_all() { + distutils-r1_python_install_all + newbashcomp config/linkchecker-completion ${PN} +} + +pkg_postinst() { + optfeature "bash-completion support" dev-python/argcomplete[${PYTHON_USEDEP}] + optfeature "Virus scanning" app-antivirus/clamav + optfeature "Geo IP support" dev-python/geoip-python[${PYTHON_USEDEP}] + optfeature "GNOME proxy settings support" dev-python/pygobject[${PYTHON_USEDEP}] +} |