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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name tortoisehg |
---|
8 | version 2.0.2 |
---|
9 | categories devel python |
---|
10 | platforms darwin |
---|
11 | license GPL-2 |
---|
12 | maintainers superquadratic.net:guido |
---|
13 | |
---|
14 | description A set of graphical tools for Mercurial |
---|
15 | |
---|
16 | long_description A set of graphical tools for the Mercurial distributed \ |
---|
17 | revision control system. |
---|
18 | |
---|
19 | homepage http://tortoisehg.bitbucket.org/ |
---|
20 | master_sites http://bitbucket.org/tortoisehg/targz/downloads/ |
---|
21 | checksums md5 a2d577c9700d2c6da3b8e591b5bffa24 \ |
---|
22 | sha1 f7da7ef7588c733af05848bdacb8f1970d95aeb7 \ |
---|
23 | rmd160 d6cec1c918281d411bd222ed8051f4aa3056dbc1 |
---|
24 | |
---|
25 | depends_run port:mercurial \ |
---|
26 | port:py26-pyqt4 \ |
---|
27 | port:py26-qscintilla \ |
---|
28 | port:py26-iniparse |
---|
29 | |
---|
30 | depends_build port:py26-sphinx |
---|
31 | |
---|
32 | patchfiles patch-setup.py.diff \ |
---|
33 | patch-Makefile.diff |
---|
34 | |
---|
35 | universal_variant no |
---|
36 | |
---|
37 | python.link_binaries_suffix |
---|
38 | |
---|
39 | pre-build { |
---|
40 | file copy ${filespath}/config.py ${worksrcpath}/tortoisehg/util/ |
---|
41 | } |
---|
42 | |
---|
43 | post-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 | } |
---|