source: trunk/dports/devel/tortoisehg/Portfile

Last change on this file was 153878, checked in by sean@…, 11 months ago

tortoisehg: update to 3.9.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- 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
2# $Id: Portfile 153878 2016-10-14 21:34:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           app 1.0
7PortGroup           bitbucket 1.0
8
9bitbucket.setup     tortoisehg thg 3.9.2
10name                tortoisehg
11categories          devel python
12platforms           darwin
13license             GPL-2+
14maintainers         sean openmaintainer
15supported_archs     noarch
16
17description         A set of graphical tools for Mercurial
18
19long_description    A set of graphical tools for the Mercurial distributed \
20                    source control management system.
21
22checksums           rmd160  223d8fb251d6bf47bdfed17e038a4d26893297c0 \
23                    sha256  67d42ef865519bd6675a34aa3750e5df3a48611da907108508bdbb8fd94dfbff
24
25python.default_version 27
26
27# Can use either py*-pyqt4 or py*-pyqt4-devel. Also mercurial or
28# mercurial-devel.
29depends_lib         path:bin/hg:mercurial \
30                    path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4 \
31                    port:py${python.version}-qscintilla \
32                    port:py${python.version}-iniparse
33
34depends_build       port:py${python.version}-sphinx
35
36post-extract {
37    copy ${filespath}/config.py ${worksrcpath}/tortoisehg/util/
38    reinplace -W ${worksrcpath} "s,pyrcc4,pyrcc4-2.7," setup.py
39}
40
41post-patch {
42    reinplace "s|{prefix}|${prefix}|" ${worksrcpath}/tortoisehg/util/config.py
43    reinplace "s|{python.prefix}|${python.prefix}|" ${worksrcpath}/tortoisehg/util/config.py
44
45    foreach f [glob -type f \
46                   ${worksrcpath}/thg \
47                   ${worksrcpath}/contrib/hg \
48                   ${worksrcpath}/contrib/*.py \
49                   ${worksrcpath}/i18n/*.py] {
50        reinplace "s,#! */usr/bin/env python,#!${python.bin}," $f
51    }
52}
53
54post-destroot {
55    system -W ${worksrcpath}/doc "make SPHINXBUILD=sphinx-build-${python.branch} html"
56    copy ${worksrcpath}/doc/build/html ${destroot}${prefix}/share/doc/${name}/html
57
58    xinstall -m 644 -W ${worksrcpath} COPYING.txt ${destroot}${prefix}/share/doc/${name}
59}
60
61app.name            TortoiseHg
62app.executable      ${workpath}/${app.name}
63app.icon            icons/thg_logo_92x50.png
64
65platform macosx {
66    post-extract {
67        copy ${filespath}/${app.name}.in ${workpath}/${app.name}
68    }
69    post-patch {
70        reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${app.name}
71    }
72}
Note: See TracBrowser for help on using the repository browser.