source: trunk/dports/python/py-hgsvn/Portfile @ 87110

Last change on this file since 87110 was 87110, checked in by snc@…, 8 years ago

py-hgsvn: fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 87110 2011-11-10 20:52:22Z snc@macports.org $
3
4PortSystem        1.0
5PortGroup           python 1.0
6
7name                py-hgsvn
8version             0.1.9
9python.versions     24 25 26 27
10python.default_version  27
11categories              python devel
12platforms               darwin
13maintainers         saispo snc openmaintainer
14license                 GPL-3+
15homepage                http://pypi.python.org/pypi/hgsvn
16description             hgsvn is a set of scripts for Subversion and Mercurial
17long_description                This set of scripts allows to work locally on \
18                                                Subversion-managed projects using the Mercurial \
19                                                distributed version control system.
20
21master_sites            http://pypi.python.org/packages/source/h/hgsvn
22distname                hgsvn-${version}
23
24checksums           rmd160  3f6c9b0bbda5c8454478436d0c0589e04d8394e1 \
25                    sha256  de45c04a1b3c3e104fcfc99973609239240c3b22789b6e87e29323c7b86c333f
26
27if {$subport != $name} {
28
29    depends_lib-append  port:py${python.version}-distribute \
30                        port:mercurial \
31                        port:subversion
32
33    if {${python.version} == 24} {
34        depends_run-append  port:py-elementtree
35    }
36
37    post-destroot {
38            xinstall -m 644 -W ${worksrcpath} AUTHORS.txt COPYING.txt README.txt TODO.txt  \
39                    ${destroot}${prefix}/share/doc/py${python.version}-hgsvn
40        if {${python.version} == 25 || ${python.version} == 24} {
41            move ${destroot}${prefix}/bin/hgimportsvn ${destroot}${prefix}/bin/hgimportsvn-${python.version}
42            move ${destroot}${prefix}/bin/hgpullsvn   ${destroot}${prefix}/bin/hgpullsvn-${python.version}
43            move ${destroot}${prefix}/bin/hgpushsvn   ${destroot}${prefix}/bin/hgpushsvn-${python.version}
44        }
45    }
46
47    livecheck.type      none
48} else {
49    livecheck.type      regex
50    livecheck.url       ${homepage}
51    livecheck.regex     hgsvn (\\d+(\\.\\d+)+)
52}
Note: See TracBrowser for help on using the repository browser.