source: trunk/dports/devel/hgview/Portfile

Last change on this file was 142815, checked in by jmr@…, 2 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.3 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 ryandesign@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
40livecheck.type      regex
41livecheck.url       http://pypi.python.org/pypi/hgview
42livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
43
44post-patch {
45    reinplace -W $worksrcpath "s,pyrcc4,pyrcc4-2.7," setup.py
46    reinplace -W $worksrcpath "s,pyrcc4,pyrcc4-2.7," hgviewlib/qt4/__init__.py
47    reinplace -W $worksrcpath "s,pyuic4,pyuic4-2.7," hgviewlib/qt4/mixins.py
48}
49
50post-destroot {
51    move ${destroot}${python.pkgd}/hgext/hgview.py ${destroot}${python.pkgd}/hgview.py
52    move ${destroot}${python.pkgd}/hgext/hgview.pyc ${destroot}${python.pkgd}/hgview.pyc
53}
54
55subport ${name}-devel {
56    version         1.7.99
57    revision        1
58    fetch.type      hg
59    hg.url          http://hg.logilab.org/master/hgview/
60    hg.tag          b115909fe347
61    conflicts       ${name}
62    livecheck.type  none
63}
64
65notes               "
66To enable ${name}, add the following to your ~/.hgrc:
67
68\[extensions\]
69${name} =
70"
Note: See TracBrowser for help on using the repository browser.