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.4 3.*"
11 inherit distutils multilib
13 DESCRIPTION="Set of graphical tools for Mercurial"
14 HOMEPAGE="http://tortoisehg.bitbucket.org"
15 SRC_URI="http://bitbucket.org/${PN}/targz/downloads/${P}.tar.gz"
19 KEYWORDS="~amd64 ~x86"
22 RDEPEND="dev-python/iniparse
25 dev-python/qscintilla-python
26 >=dev-vcs/mercurial-1.8
27 nautilus? ( dev-python/nautilus-python )"
29 doc? ( >=dev-python/sphinx-1.0.3 )"
32 # make the install respect multilib.
33 sed -i -e "s:lib/nautilus:$(get_libdir)/nautilus:" setup.py || die
41 emake -C doc html || die
47 dodoc doc/ReadMe*.txt doc/TODO || die
50 dohtml -r doc/build/html || die
53 if ! use nautilus; then
54 rm -vr "${D}usr/$(get_libdir)/nautilus" || die