1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
7 PYTHON_REQ_USE="sqlite?"
9 EGIT_REPO_URI="https://github.com/linkcheck/linkchecker.git"
10 inherit bash-completion-r1 distutils-r1 eutils git-r3
12 DESCRIPTION="Check websites for broken links"
13 HOMEPAGE="https://github.com/linkcheck/linkchecker"
22 dev-python/dnspython[${PYTHON_USEDEP}]
23 dev-python/pyxdg[${PYTHON_USEDEP}]
24 >=dev-python/requests-2.4[${PYTHON_USEDEP}]
30 python_prepare_all() {
32 "${FILESDIR}/${PN}-9.3-bash-completion.patch"
35 distutils-r1_python_prepare_all
38 python_install_all() {
45 distutils-r1_python_install_all
47 rm "${ED}"/usr/share/applications/linkchecker.desktop || die
49 newbashcomp config/linkchecker-completion ${PN}
53 optfeature "bash-completion support" dev-python/argcomplete[${PYTHON_USEDEP}]
54 optfeature "Virus scanning" app-antivirus/clamav
55 optfeature "Geo IP support" dev-python/geoip-python[${PYTHON_USEDEP}]