source: trunk/dports/devel/tortoisehg/Portfile @ 142815

Last change on this file since 142815 was 142815, checked in by jmr@…, 3 years ago

various ports: remove redundant clearing of python.link_binaries_suffix, the portgroup now handles this

  • 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 142815 2015-11-24 03:22:35Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           app 1.0
7PortGroup           bitbucket 1.0
8
9bitbucket.setup     tortoisehg thg 3.6
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  5b79047741d338edb93b2205fff7e8da7b3456d3 \
23                    sha256  f7c8241136f26b675a477f0333ed6929147925719614fa56bdae32346595040a
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.