# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
bitbucket.setup tortoisehg thg 4.7.2
maintainers {sean @seanfarley} openmaintainer
description A set of graphical tools for Mercurial
long_description A set of graphical tools for the Mercurial distributed \
source control management system.
checksums rmd160 9df80404cefa5567264913ea93ad778a4d971c70 \
sha256 7c6d58b34678f237b0683dcac38707c91e10b46a28f918888fe6bb2c005c762c \
python.default_version 27
# Can use either mercurial or mercurial-devel.
depends_lib path:bin/hg:mercurial \
port:py${python.version}-pyqt4 \
port:py${python.version}-qscintilla-qt4 \
port:py${python.version}-iniparse
depends_build port:py${python.version}-sphinx
copy ${filespath}/config.py ${worksrcpath}/tortoisehg/util/
reinplace -W ${worksrcpath} "s,pyrcc4,pyrcc4-2.7," setup.py
delete file ${worksrcpath}/hgext3rd/__init__.py
reinplace "s|{prefix}|${prefix}|" ${worksrcpath}/tortoisehg/util/config.py
reinplace "s|{python.prefix}|${python.prefix}|" ${worksrcpath}/tortoisehg/util/config.py
foreach f [glob -type f \
${worksrcpath}/contrib/hg \
${worksrcpath}/contrib/*.py \
${worksrcpath}/i18n/*.py] {
reinplace "s,#! */usr/bin/env python,#!${python.bin}," $f
system -W ${worksrcpath}/doc "make SPHINXBUILD=sphinx-build-${python.branch} html"
copy ${worksrcpath}/doc/build/html ${destroot}${prefix}/share/doc/${name}/html
xinstall -m 644 -W ${worksrcpath} COPYING.txt ${destroot}${prefix}/share/doc/${name}
app.executable ${workpath}/${app.name}
app.icon icons/thg_logo_92x50.png