1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
8 PYTHON_REQ_USE="sqlite?"
10 inherit bash-completion-r1 distutils-r1 eutils git-r3 multilib
12 MY_P="${P/linkchecker/LinkChecker}"
14 DESCRIPTION="Check websites for broken links"
15 HOMEPAGE="https://wummel.github.com/linkchecker/ https://pypi.python.org/pypi/linkchecker/"
17 EGIT_REPO_URI="https://github.com/wummel/linkchecker.git"
25 dev-python/dnspython[${PYTHON_USEDEP}]
26 gnome? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
28 dev-python/PyQt4[X,help,${PYTHON_USEDEP}]
29 dev-python/qscintilla-python[${PYTHON_USEDEP}]
34 dev-python/markdown2[${PYTHON_USEDEP}]
39 python_prepare_all() {
41 "${FILESDIR}"/${PN}-9.2-unbundle.patch
42 "${FILESDIR}"/${PN}-9.3-bash-completion.patch
43 "${FILESDIR}"/${PN}-9.3-desktop.patch
48 distutils-r1_python_prepare_all
51 python_install_all() {
58 distutils-r1_python_install_all
62 "${ED}"/usr/bin/linkchecker-gui* \
63 "${ED}"/$(python_get_sitedir)/linkcheck/gui* || die
65 python_foreach_impl delete_gui
66 rm -f "${ED}"/usr/share/applications/linkchecker*.desktop || die
69 rm -f "${ED}"/usr/share/applications/linkchecker.desktop || die
71 newicon doc/html/logo64x64.png ${PN}.png
75 newbashcomp config/linkchecker-completion ${PN}
76 optfeature "bash-completion support" dev-python/argcomplete[${PYTHON_USEDEP}]
77 optfeature "Virus scanning" app-antivirus/clamav
78 optfeature "Geo IP support" dev-python/geoip-python[${PYTHON_USEDEP}]