summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-vcs/hgview/hgview-1.2.0.ebuild')
-rw-r--r--dev-vcs/hgview/hgview-1.2.0.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-vcs/hgview/hgview-1.2.0.ebuild b/dev-vcs/hgview/hgview-1.2.0.ebuild
new file mode 100644
index 000000000000..ebcc1ab94b2f
--- /dev/null
+++ b/dev-vcs/hgview/hgview-1.2.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/hgview/hgview-1.2.0.ebuild,v 1.1 2010/06/28 11:48:48 tampakrap Exp $
+
+EAPI="2"
+
+inherit distutils
+
+DESCRIPTION="PyQt4 based Mercurial log navigator"
+HOMEPAGE="http://www.logilab.org/project/name/hgview"
+SRC_URI="http://ftp.logilab.org/pub/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="dev-vcs/mercurial
+ dev-python/egenix-mx-base
+ dev-python/PyQt4[X]
+ dev-python/qscintilla-python
+ dev-python/docutils
+ doc? ( app-text/asciidoc )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ distutils_src_prepare
+
+ # fix mercurial extension install path
+ if ! use doc; then
+ sed -i '/make -C doc/d' "${S}/setup.py" || die "sed failed"
+ sed -i '/share\/man\/man1/,+1 d' "${S}/hgviewlib/__pkginfo__.py" || die "sed failed"
+ fi
+}
+
+src_install() {
+ distutils_src_install
+
+ # install the mercurial extension config
+ insinto /etc/mercurial/hgrc.d || die
+ doins hgext/hgview.rc || die
+}