1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="2.[45] 3.*"
13 DESCRIPTION="Mercurial GUI command line tool hgtk"
14 HOMEPAGE="http://tortoisehg.bitbucket.org"
15 SRC_URI="http://bitbucket.org/${PN}/targz/downloads/${P}.tar.gz"
19 KEYWORDS="~amd64 ~x86"
22 DEPEND="doc? ( >=dev-python/sphinx-1.0.3 )"
23 RDEPEND="dev-python/pygtk
24 >=dev-vcs/mercurial-1.6.3
25 >=dev-python/iniparse-0.4
26 nautilus? ( dev-python/nautilus-python )"
32 emake -C doc html || die
37 # make the install respect multilib.
38 sed -i -e "s:lib/nautilus/extensions-2.0/python:$(get_libdir)/nautilus/extensions-2.0/python:" setup.py || die
41 dodoc doc/ReadMe*.txt doc/TODO || die
44 dohtml -r doc/build/html || die
47 if ! use nautilus; then
48 einfo "Excluding Nautilus extension."
49 rm -fR "${D}"/usr/$(get_libdir)/nautilus || die