source: trunk/dports/devel/hgview/Portfile @ 142807

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

various ports: correct usage of python portgroup

  • 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 142807 2015-11-24 02:23:10Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                hgview
8version             1.9.0
9categories          devel python
10license             GPL-2
11platforms           darwin
12supported_archs     noarch
13maintainers         sean openmaintainer
14
15homepage            http://www.logilab.org/project/${name}
16master_sites        http://download.logilab.org/pub/${name}
17description         A fast Mercurial log navigator
18long_description    hgview is a simple tool aiming at visually navigate \
19                    in a Mercurial repository history. It is written in \
20                    Python with quick and efficient key-based navigation \
21                    in mind, trying to be fast enough to be usable for \
22                    big repositories.
23
24python.default_version     27
25
26depends_build-append port:asciidoc \
27                    port:xmlto
28
29depends_lib-append  path:bin/hg:mercurial \
30                    port:py${python.version}-qscintilla \
31                    port:py${python.version}-pygments \
32                    port:py${python.version}-docutils \
33                    port:py${python.version}-urwid
34
35checksums           rmd160  31ada351796ecd636c7a454f4fc0492e9c00d6d7 \
36                    sha256  8b2e5e10544deaa79ba9ef3f6339e103af357edbeb4b2594be079fddf7b8e6ed
37
38conflicts           ${name}-devel
39
40python.link_binaries_suffix
41
42livecheck.type      regex
43livecheck.url       http://pypi.python.org/pypi/hgview
44livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
45
46post-patch {
47    reinplace -W $worksrcpath "s,pyrcc4,pyrcc4-2.7," setup.py
48    reinplace -W $worksrcpath "s,pyrcc4,pyrcc4-2.7," hgviewlib/qt4/__init__.py
49    reinplace -W $worksrcpath "s,pyuic4,pyuic4-2.7," hgviewlib/qt4/mixins.py
50}
51
52post-destroot {
53    move ${destroot}${python.pkgd}/hgext/hgview.py ${destroot}${python.pkgd}/hgview.py
54    move ${destroot}${python.pkgd}/hgext/hgview.pyc ${destroot}${python.pkgd}/hgview.pyc
55}
56
57subport ${name}-devel {
58    version         1.7.99
59    revision        1
60    fetch.type      hg
61    hg.url          http://hg.logilab.org/master/hgview/
62    hg.tag          b115909fe347
63    conflicts       ${name}
64    livecheck.type  none
65}
66
67notes               "
68To enable ${name}, add the following to your ~/.hgrc:
69
70\[extensions\]
71${name} =
72"
Note: See TracBrowser for help on using the repository browser.