commit:     e89c17ddbbaec277c9bdc1cb80b45d07f975cf61
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 21 20:24:08 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Oct 21 20:24:08 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e89c17dd

dev-vcs/hgview: Drop USE=qt4, bug #634974

Package-Manager: Portage-2.3.12, Repoman-2.3.3

 dev-vcs/hgview/hgview-1.9.0-r1.ebuild | 52 +++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/dev-vcs/hgview/hgview-1.9.0-r1.ebuild 
b/dev-vcs/hgview/hgview-1.9.0-r1.ebuild
new file mode 100644
index 00000000000..9a51e54f07c
--- /dev/null
+++ b/dev-vcs/hgview/hgview-1.9.0-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit distutils-r1
+
+DESCRIPTION="A Mercurial interactive history viewer"
+HOMEPAGE="https://www.logilab.org/project/hgview/ 
https://pypi.python.org/pypi/hgview/";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND="
+       dev-python/pyinotify[${PYTHON_USEDEP}]
+       dev-python/pygments[${PYTHON_USEDEP}]
+       >=dev-python/urwid-1.0.0[${PYTHON_USEDEP}]
+       dev-vcs/mercurial[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+       doc? (
+               app-text/asciidoc
+               app-text/xmlto
+       )"
+
+python_configure_all() {
+       mydistutilsargs=(
+               build $(use doc || echo --no-doc)
+               build --no-qt
+       )
+}
+
+src_prepare() {
+       # https://www.logilab.org/ticket/103668
+       sed -i \
+               -e 's:MANDIR=$(PREFIX)/man:MANDIR=$(PREFIX)/share/man:' \
+               -e 's:$(INSTALL) $$i:$(INSTALL) -m 644 $$i:' \
+               doc/Makefile || die
+
+       distutils-r1_src_prepare
+}
+
+src_install() {
+       distutils-r1_src_install
+
+       # Install Mercurial extension config file
+       insinto /etc/mercurial/hgrc.d
+       doins hgext/hgview.rc
+}

Reply via email to