net-analyzer/linkchecker: Sync w/ 9.3.1 ebuild, drop USE=X
authorAndreas Sturmlechner <asturm@gentoo.org>
Tue, 30 Jan 2018 22:50:44 +0000 (23:50 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Tue, 30 Jan 2018 23:21:04 +0000 (00:21 +0100)
Package-Manager: Portage-2.3.21, Repoman-2.3.6

net-analyzer/linkchecker/linkchecker-9999.ebuild

index 82cfea75b987de0dd4bd2dae2eb94f0d573a3277..bf89b20f35c29592170dc1533ef81edb86ab480d 100644 (file)
@@ -1,48 +1,33 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
 PYTHON_COMPAT=( python2_7 )
 PYTHON_REQ_USE="sqlite?"
 
+EGIT_REPO_URI="https://github.com/linkcheck/linkchecker.git"
 inherit bash-completion-r1 distutils-r1 eutils git-r3 multilib
 
-MY_P="${P/linkchecker/LinkChecker}"
-
 DESCRIPTION="Check websites for broken links"
-HOMEPAGE="https://wummel.github.com/linkchecker/ https://pypi.python.org/pypi/linkchecker/"
+HOMEPAGE="https://github.com/linkcheck/linkchecker"
 SRC_URI=""
-EGIT_REPO_URI="https://github.com/wummel/linkchecker.git"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="gnome sqlite X"
+IUSE="gnome sqlite"
 
 RDEPEND="
        virtual/python-dnspython[${PYTHON_USEDEP}]
        gnome? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
-       X? (
-               dev-python/PyQt4[X,help,${PYTHON_USEDEP}]
-               dev-python/qscintilla-python[qt4(+),${PYTHON_USEDEP}]
-               )"
-DEPEND="
-       X? (
-               dev-qt/qthelp:4
-               dev-python/markdown2[${PYTHON_USEDEP}]
-               )"
+"
+DEPEND=""
 
 RESTRICT="test"
 
 python_prepare_all() {
-       local PATCHES=(
-               "${FILESDIR}"/${PN}-9.2-unbundle.patch
-               "${FILESDIR}"/${PN}-9.3-bash-completion.patch
-               "${FILESDIR}"/${PN}-9.3-desktop.patch
-               )
-
-       emake -C doc/html
+       local PATCHES=( "${FILESDIR}"/${PN}-9.3-bash-completion.patch )
 
        distutils-r1_python_prepare_all
 }
@@ -52,26 +37,16 @@ python_install_all() {
                doc/upgrading.txt
                doc/python3.txt
                doc/changelog.txt
-               doc/development.txt
+               doc/development.mdwn
        )
        distutils-r1_python_install_all
-       if ! use X; then
-               delete_gui() {
-                               rm -rf \
-                                       "${ED}"/usr/bin/linkchecker-gui* \
-                                       "${ED}"/$(python_get_sitedir)/linkcheck/gui* || die
-               }
-               python_foreach_impl delete_gui
-               rm -f "${ED}"/usr/share/applications/linkchecker*.desktop || die
-       fi
-
-       rm -f "${ED}"/usr/share/applications/linkchecker.desktop || die
 
-       newicon doc/html/logo64x64.png ${PN}.png
+       rm "${ED}"/usr/share/applications/linkchecker.desktop || die
 
-       docinto html
-       dodoc doc/html/*
        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}]