You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/linkchecker/linkchecker-10.0.0_pre20200...

61 lines
1.5 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
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
GIT_COMMIT="a977e4d7129450ba9fda8389724c80c1bde66883"
SRC_URI="https://github.com/linkchecker/linkchecker/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${GIT_COMMIT}"
KEYWORDS="amd64 x86"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="sqlite"
# requires py2 only libs
RESTRICT="test"
RDEPEND="
dev-python/beautifulsoup[${PYTHON_USEDEP}]
dev-python/dnspython[${PYTHON_USEDEP}]
dev-python/pyxdg[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
"
python_prepare_all() {
local PATCHES=(
"${FILESDIR}/${PN}-9.3-bash-completion.patch"
)
distutils-r1_python_prepare_all
}
python_install_all() {
local DOCS=(
doc/changelog.txt
doc/upgrading.txt
)
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}]
}