Ticket #28956: Portfile.2

File Portfile.2, 2.2 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                    patch-Makefile.diff
34
35universal_variant   no
36
37python.link_binaries_suffix
38
39pre-build {
40    file copy ${filespath}/config.py ${worksrcpath}/tortoisehg/util/
41}
42
43post-destroot {
44    system "cd ${worksrcpath}/doc && make html"
45    file copy ${worksrcpath}/doc/build/html ${destroot}${prefix}/share/doc/${name}/html
46
47    file copy ${worksrcpath}/doc/Makefile ${worksrcpath}/doc/Makefile.ja
48    reinplace "s|source|source-ja|" ${worksrcpath}/doc/Makefile.ja
49    system "cd ${worksrcpath}/doc && make clean && make -f Makefile.ja html"
50    file copy ${worksrcpath}/doc/build/html ${destroot}${prefix}/share/doc/${name}/html-ja
51
52    file copy ${worksrcpath}/doc/Makefile ${worksrcpath}/doc/Makefile.cs
53    reinplace "s|source|source-cs|" ${worksrcpath}/doc/Makefile.cs
54    system "cd ${worksrcpath}/doc && make clean && make -f Makefile.cs html"
55    file copy ${worksrcpath}/doc/build/html ${destroot}${prefix}/share/doc/${name}/html-cs
56
57    xinstall -m 644 -W ${worksrcpath} COPYING.txt ${destroot}${prefix}/share/doc/${name}
58    ln -s ${python.prefix}/bin/thg ${destroot}${prefix}/bin/
59}