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

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

py-hgsvn: unify and update to 0.1.9

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 82217 2011-08-10 15:39:43Z 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
14homepage                http://pypi.python.org/pypi/hgsvn
15description             hgsvn is a set of scripts for Subversion and Mercurial
16long_description                This set of scripts allows to work locally on \
17                                                Subversion-managed projects using the Mercurial \
18                                                distributed version control system.
19
20master_sites            http://pypi.python.org/packages/source/h/hgsvn
21distname                hgsvn-${version}
22
23checksums           rmd160  3f6c9b0bbda5c8454478436d0c0589e04d8394e1 \
24                    sha256  de45c04a1b3c3e104fcfc99973609239240c3b22789b6e87e29323c7b86c333f
25
26if {$subport != $name} {
27
28    if {${python.version} == 24} {
29        depends_lib-append  port:py-setuptools
30        depends_run-append  port:py-elementtree
31    }
32
33    if {${python.version} == 27 || ${python.version} == 26 || ${python.version} == 25} {
34        depends_lib-append  port:py${python.version}-distribute \
35                            port:mercurial \
36                            port:subversion
37    }
38
39    post-destroot {
40            xinstall -m 644 -W ${worksrcpath} AUTHORS.txt COPYING.txt README.txt TODO.txt  \
41                    ${destroot}${prefix}/share/doc/py${python.version}-hgsvn
42        if {${python.version} == 25 || ${python.version} == 24} {
43            move ${destroot}${prefix}/bin/hgimportsvn ${destroot}${prefix}/bin/hgimportsvn-${python.version}
44            move ${destroot}${prefix}/bin/hgpullsvn   ${destroot}${prefix}/bin/hgpullsvn-${python.version}
45            move ${destroot}${prefix}/bin/hgpushsvn   ${destroot}${prefix}/bin/hgpushsvn-${python.version}
46        }
47    }
48
49}
50
51livecheck.type      regex
52livecheck.url       ${homepage}
53livecheck.regex     hgsvn (\\d+(\\.\\d+)+)
Note: See TracBrowser for help on using the repository browser.