Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/linkchecker/
Date: Tue, 30 Jan 2018 23:21:35
Message-Id: 1517354464.7fdb1976e5254305f2663a280b5508889fa0ff93.asturm@gentoo
1 commit: 7fdb1976e5254305f2663a280b5508889fa0ff93
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 30 22:50:44 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 30 23:21:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fdb1976
7
8 net-analyzer/linkchecker: Sync w/ 9.3.1 ebuild, drop USE=X
9
10 Package-Manager: Portage-2.3.21, Repoman-2.3.6
11
12 net-analyzer/linkchecker/linkchecker-9999.ebuild | 51 ++++++------------------
13 1 file changed, 13 insertions(+), 38 deletions(-)
14
15 diff --git a/net-analyzer/linkchecker/linkchecker-9999.ebuild b/net-analyzer/linkchecker/linkchecker-9999.ebuild
16 index 82cfea75b98..bf89b20f35c 100644
17 --- a/net-analyzer/linkchecker/linkchecker-9999.ebuild
18 +++ b/net-analyzer/linkchecker/linkchecker-9999.ebuild
19 @@ -1,48 +1,33 @@
20 -# Copyright 1999-2017 Gentoo Foundation
21 +# Copyright 1999-2018 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=5
25 +EAPI=6
26
27 PYTHON_COMPAT=( python2_7 )
28 PYTHON_REQ_USE="sqlite?"
29
30 +EGIT_REPO_URI="https://github.com/linkcheck/linkchecker.git"
31 inherit bash-completion-r1 distutils-r1 eutils git-r3 multilib
32
33 -MY_P="${P/linkchecker/LinkChecker}"
34 -
35 DESCRIPTION="Check websites for broken links"
36 -HOMEPAGE="https://wummel.github.com/linkchecker/ https://pypi.python.org/pypi/linkchecker/"
37 +HOMEPAGE="https://github.com/linkcheck/linkchecker"
38 SRC_URI=""
39 -EGIT_REPO_URI="https://github.com/wummel/linkchecker.git"
40
41 LICENSE="GPL-2"
42 SLOT="0"
43 KEYWORDS=""
44 -IUSE="gnome sqlite X"
45 +IUSE="gnome sqlite"
46
47 RDEPEND="
48 virtual/python-dnspython[${PYTHON_USEDEP}]
49 gnome? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
50 - X? (
51 - dev-python/PyQt4[X,help,${PYTHON_USEDEP}]
52 - dev-python/qscintilla-python[qt4(+),${PYTHON_USEDEP}]
53 - )"
54 -DEPEND="
55 - X? (
56 - dev-qt/qthelp:4
57 - dev-python/markdown2[${PYTHON_USEDEP}]
58 - )"
59 +"
60 +DEPEND=""
61
62 RESTRICT="test"
63
64 python_prepare_all() {
65 - local PATCHES=(
66 - "${FILESDIR}"/${PN}-9.2-unbundle.patch
67 - "${FILESDIR}"/${PN}-9.3-bash-completion.patch
68 - "${FILESDIR}"/${PN}-9.3-desktop.patch
69 - )
70 -
71 - emake -C doc/html
72 + local PATCHES=( "${FILESDIR}"/${PN}-9.3-bash-completion.patch )
73
74 distutils-r1_python_prepare_all
75 }
76 @@ -52,26 +37,16 @@ python_install_all() {
77 doc/upgrading.txt
78 doc/python3.txt
79 doc/changelog.txt
80 - doc/development.txt
81 + doc/development.mdwn
82 )
83 distutils-r1_python_install_all
84 - if ! use X; then
85 - delete_gui() {
86 - rm -rf \
87 - "${ED}"/usr/bin/linkchecker-gui* \
88 - "${ED}"/$(python_get_sitedir)/linkcheck/gui* || die
89 - }
90 - python_foreach_impl delete_gui
91 - rm -f "${ED}"/usr/share/applications/linkchecker*.desktop || die
92 - fi
93 -
94 - rm -f "${ED}"/usr/share/applications/linkchecker.desktop || die
95
96 - newicon doc/html/logo64x64.png ${PN}.png
97 + rm "${ED}"/usr/share/applications/linkchecker.desktop || die
98
99 - docinto html
100 - dodoc doc/html/*
101 newbashcomp config/linkchecker-completion ${PN}
102 +}
103 +
104 +pkg_postinst() {
105 optfeature "bash-completion support" dev-python/argcomplete[${PYTHON_USEDEP}]
106 optfeature "Virus scanning" app-antivirus/clamav
107 optfeature "Geo IP support" dev-python/geoip-python[${PYTHON_USEDEP}]