# -*- 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 set realname evolve name py-hg$realname 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 671c8bcdcd20 name py-hg$realname-devel version 3.2.99 checksums rmd160 37e5aa47f7926ce40618f1df0413b96f0b0dd6b7 \ sha256 4b1d38e9e335acf0e246f9c884c668d94e93c4abdc56a1f35113b3f5599ab422 } else { bitbucket.setup marmoute mutable-history 3.2.0 name py-hg$realname checksums rmd160 6e0a6690ebcf07cf7e6561cc921dccd391993150 \ sha256 b9db3299f9b7dcb7b40c7f2de2d0fb622e5c0bdeeb5ba064009e168b0e5927d0 } python.versions 27 if {${name} ne ${subport}} { depends_lib path:bin/hg:mercurial conflicts py${python.version}-hg$realname-devel if {[string match "*-devel" $subport]} { conflicts py${python.version}-hg$realname } post-destroot { file delete ${destroot}${python.pkgd}/hgext/__init__.py file delete ${destroot}${python.pkgd}/hgext/__init__.pyc move ${destroot}${python.pkgd}/hgext/${realname}.py ${destroot}${python.pkgd}/hg${realname}.py move ${destroot}${python.pkgd}/hgext/${realname}.pyc ${destroot}${python.pkgd}/hg${realname}.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 hg${realname}, add the following to your ~/.hgrc: \[extensions\] rebase = hg${realname} = " if {![string match "*-devel" $subport]} { livecheck.type none } }