Line
Link Here
|
0 |
-- a/linkchecker-9999.ebuild |
0 |
++ b/linkchecker-9999.ebuild |
Lines 1-9
Link Here
|
1 |
# Copyright 1999-2019 Gentoo Authors |
1 |
# Copyright 1999-2020 Gentoo Authors |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
EAPI=7 |
4 |
EAPI=7 |
5 |
|
5 |
|
6 |
PYTHON_COMPAT=( python2_7 ) |
6 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
7 |
PYTHON_REQ_USE="sqlite?" |
7 |
PYTHON_REQ_USE="sqlite?" |
8 |
|
8 |
|
9 |
EGIT_REPO_URI="https://github.com/linkcheck/linkchecker.git" |
9 |
EGIT_REPO_URI="https://github.com/linkcheck/linkchecker.git" |
Lines 19-50
Link Here
|
19 |
IUSE="sqlite" |
19 |
IUSE="sqlite" |
20 |
|
20 |
|
21 |
RDEPEND=" |
21 |
RDEPEND=" |
|
|
22 |
dev-python/beautifulsoup[${PYTHON_USEDEP}] |
22 |
dev-python/dnspython[${PYTHON_USEDEP}] |
23 |
dev-python/dnspython[${PYTHON_USEDEP}] |
23 |
dev-python/pyxdg[${PYTHON_USEDEP}] |
24 |
dev-python/pyxdg[${PYTHON_USEDEP}] |
24 |
>=dev-python/requests-2.4[${PYTHON_USEDEP}] |
25 |
dev-python/requests[${PYTHON_USEDEP}] |
25 |
" |
26 |
" |
26 |
DEPEND="" |
27 |
DEPEND="" |
|
|
28 |
BDEPEND="test? ( ${RDEPEND} |
29 |
app-text/pdfminer[${PYTHON_USEDEP}] |
30 |
dev-python/parameterized[${PYTHON_USEDEP}] |
31 |
dev-python/pyftpdlib[${PYTHON_USEDEP}] |
32 |
dev-python/pytest-xdist[${PYTHON_USEDEP}] |
33 |
dev-python/pyxdg[${PYTHON_USEDEP}] |
34 |
)" |
27 |
|
35 |
|
28 |
RESTRICT="test" |
36 |
distutils_enable_tests pytest |
29 |
|
37 |
|
30 |
python_prepare_all() { |
38 |
python_prepare_all() { |
31 |
local PATCHES=( |
39 |
local PATCHES=( |
32 |
"${FILESDIR}/${PN}-9.3-bash-completion.patch" |
40 |
"${FILESDIR}/${PN}-9.3-bash-completion.patch" |
33 |
) |
41 |
) |
34 |
|
42 |
|
|
|
43 |
# Telnet test uses miniboa which is not available in Gentoo |
44 |
rm tests/checker/test_telnet.py || die |
45 |
|
35 |
distutils-r1_python_prepare_all |
46 |
distutils-r1_python_prepare_all |
|
|
47 |
} |
48 |
|
49 |
python_test() { |
50 |
pytest -n $(makeopts_jobs) -ra tests || die |
36 |
} |
51 |
} |
37 |
|
52 |
|
38 |
python_install_all() { |
53 |
python_install_all() { |
39 |
DOCS=( |
54 |
DOCS=( |
40 |
doc/changelog.txt |
55 |
doc/changelog.txt |
41 |
doc/development.mdwn |
|
|
42 |
doc/python3.txt |
43 |
doc/upgrading.txt |
56 |
doc/upgrading.txt |
44 |
) |
57 |
) |
45 |
distutils-r1_python_install_all |
58 |
distutils-r1_python_install_all |
46 |
|
|
|
47 |
rm "${ED}"/usr/share/applications/linkchecker.desktop || die |
48 |
|
59 |
|
49 |
newbashcomp config/linkchecker-completion ${PN} |
60 |
newbashcomp config/linkchecker-completion ${PN} |
50 |
} |
61 |
} |
Lines 53-56
Link Here
|
53 |
optfeature "bash-completion support" dev-python/argcomplete[${PYTHON_USEDEP}] |
64 |
optfeature "bash-completion support" dev-python/argcomplete[${PYTHON_USEDEP}] |
54 |
optfeature "Virus scanning" app-antivirus/clamav |
65 |
optfeature "Virus scanning" app-antivirus/clamav |
55 |
optfeature "Geo IP support" dev-python/geoip-python[${PYTHON_USEDEP}] |
66 |
optfeature "Geo IP support" dev-python/geoip-python[${PYTHON_USEDEP}] |
|
|
67 |
optfeature "GNOME proxy settings support" dev-python/pygobject[${PYTHON_USEDEP}] |
56 |
} |
68 |
} |