Ticket #28956: Portfile.3

File Portfile.3, 1.7 KB (added by shiena.jp@…, 14 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5PortGroup           python26 1.0
6
7name                tortoisehg
8version             2.0.2
9categories          devel python
10platforms           darwin
11license             GPL-2
12maintainers         superquadratic.net:guido
13
14description         A set of graphical tools for Mercurial
15
16long_description    A set of graphical tools for the Mercurial distributed \
17                    revision control system.
18
19homepage            http://tortoisehg.bitbucket.org/
20master_sites        http://bitbucket.org/tortoisehg/targz/downloads/
21checksums           md5     a2d577c9700d2c6da3b8e591b5bffa24 \
22                    sha1    f7da7ef7588c733af05848bdacb8f1970d95aeb7 \
23                    rmd160  d6cec1c918281d411bd222ed8051f4aa3056dbc1
24
25depends_run         port:mercurial \
26                    port:py26-pyqt4 \
27                    port:py26-qscintilla \
28                    port:py26-iniparse
29
30depends_build       port:py26-sphinx
31
32patchfiles          patch-setup.py.diff
33
34universal_variant   no
35
36python.link_binaries_suffix
37
38pre-build {
39    file copy ${filespath}/config.py ${worksrcpath}/tortoisehg/util/
40    reinplace "s|{prefix}|${prefix}|" ${worksrcpath}/tortoisehg/util/config.py
41    reinplace "s|{python.prefix}|${python.prefix}|" ${worksrcpath}/tortoisehg/util/config.py
42}
43
44post-destroot {
45    system "cd ${worksrcpath}/doc && make SPHINXBUILD=sphinx-build-2.6 html"
46    file copy ${worksrcpath}/doc/build/html ${destroot}${prefix}/share/doc/${name}/html
47
48    xinstall -m 644 -W ${worksrcpath} COPYING.txt ${destroot}${prefix}/share/doc/${name}
49}