Ticket #28956: Portfile.4

File Portfile.4, 1.7 KB (added by guidolorenz@…, 13 years ago)

Updated Portfile for 2.0.3

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.3
9categories          devel python
10platforms           darwin
11license             GPL-2
12maintainers         superquadratic.net:guido openmaintainer
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     9fa5cea72faa4113bbff9de319e38193 \
22                    sha1    9275a8f9a58648047107023a5adfbf56f42afa22 \
23                    rmd160  a69f7344b27bbc317f0169e9ba7f2b49d4271842
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}