# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 PortGroup bitbucket 1.0 name py-hgevolve categories-append devel platforms darwin license GPL-2+ maintainers sean openmaintainer supported_archs noarch description Mutable history for mercurial long_description This extension provides several commands to mutate history \ and deal with issues it may raise. # can't set python.versions before adding custom subports subport py27-hgevolve-devel { } if {[string match "*-devel" $subport]} { bitbucket.setup marmoute mutable-history cb5edd4b160c bitbucket.livecheck default name py-hgevolve-devel version 5.4.99 revision 4 checksums rmd160 f2a45aa6d9209453406c6b7cad107e1fadd3eb3d \ sha256 aba0d474fa36fbd2777abfb1c1c17621af00f7476a7461153929cff62b2e7384 } else { bitbucket.setup marmoute mutable-history 5.4.1 name py-hgevolve checksums rmd160 c94d1473b8d3b1d177de2c45eea3bb0742a68d5c \ sha256 22ecfd6bbb092f43105ef896b298101d6aad2f9672a2344c4836aff34017dd7e } python.versions 27 if {${name} ne ${subport}} { depends_lib path:bin/hg:mercurial conflicts py${python.version}-hgevolve-devel if {[string match "*-devel" $subport]} { conflicts py${python.version}-hgevolve } post-destroot { file delete ${destroot}${python.pkgd}/hgext/__init__.py file delete ${destroot}${python.pkgd}/hgext/__init__.pyc foreach f [glob -nocomplain ${destroot}${python.pkgd}/hgext/*.py] { move $f ${destroot}${python.pkgd} } foreach f [glob -nocomplain ${destroot}${python.pkgd}/hgext/*.pyc] { move $f ${destroot}${python.pkgd} } } notes " To enable hgevolve, add the following to your ~/.hgrc: \[extensions\] rebase = evolve = " if {![string match "*-devel" $subport]} { livecheck.type none } }