# -*- 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 # $Id: Portfile 82217 2011-08-10 15:39:43Z snc@macports.org $ PortSystem 1.0 PortGroup python 1.0 name py-hgsvn version 0.1.9 python.versions 24 25 26 27 python.default_version 27 categories python devel platforms darwin maintainers saispo snc openmaintainer homepage http://pypi.python.org/pypi/hgsvn description hgsvn is a set of scripts for Subversion and Mercurial long_description This set of scripts allows to work locally on \ Subversion-managed projects using the Mercurial \ distributed version control system. master_sites http://pypi.python.org/packages/source/h/hgsvn distname hgsvn-${version} checksums rmd160 3f6c9b0bbda5c8454478436d0c0589e04d8394e1 \ sha256 de45c04a1b3c3e104fcfc99973609239240c3b22789b6e87e29323c7b86c333f if {$subport != $name} { if {${python.version} == 24} { depends_lib-append port:py-setuptools depends_run-append port:py-elementtree } if {${python.version} == 27 || ${python.version} == 26 || ${python.version} == 25} { depends_lib-append port:py${python.version}-distribute \ port:mercurial \ port:subversion } post-destroot { xinstall -m 644 -W ${worksrcpath} AUTHORS.txt COPYING.txt README.txt TODO.txt \ ${destroot}${prefix}/share/doc/py${python.version}-hgsvn if {${python.version} == 25 || ${python.version} == 24} { move ${destroot}${prefix}/bin/hgimportsvn ${destroot}${prefix}/bin/hgimportsvn-${python.version} move ${destroot}${prefix}/bin/hgpullsvn ${destroot}${prefix}/bin/hgpullsvn-${python.version} move ${destroot}${prefix}/bin/hgpushsvn ${destroot}${prefix}/bin/hgpushsvn-${python.version} } } } livecheck.type regex livecheck.url ${homepage} livecheck.regex hgsvn (\\d+(\\.\\d+)+)