source: trunk/dports/python/py-hgevolve/Portfile

Last change on this file was 153881, checked in by sean@…, 12 months ago

py-hgevolve-devel: update to newest commit

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 153881 2016-10-14 21:34:41Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               python 1.0
6PortGroup               bitbucket 1.0
7
8name                    py-hgevolve
9
10categories-append       devel
11platforms               darwin
12license                 GPL-2+
13maintainers             sean openmaintainer
14supported_archs         noarch
15
16description             Mutable history for mercurial
17long_description        This extension provides several commands to mutate history \
18                        and deal with issues it may raise.
19
20# can't set python.versions before adding custom subports
21subport py27-hgevolve-devel {
22}
23
24if {[string match "*-devel" $subport]} {
25    bitbucket.setup     marmoute mutable-history cb5edd4b160c
26    bitbucket.livecheck default
27    name                py-hgevolve-devel
28    version             5.4.99
29    revision            4
30
31    checksums           rmd160  f2a45aa6d9209453406c6b7cad107e1fadd3eb3d \
32                        sha256  aba0d474fa36fbd2777abfb1c1c17621af00f7476a7461153929cff62b2e7384
33} else {
34    bitbucket.setup     marmoute mutable-history 5.4.1
35    name                py-hgevolve
36
37    checksums           rmd160  c94d1473b8d3b1d177de2c45eea3bb0742a68d5c \
38                        sha256  22ecfd6bbb092f43105ef896b298101d6aad2f9672a2344c4836aff34017dd7e
39}
40
41python.versions         27
42
43if {${name} ne ${subport}} {
44    depends_lib         path:bin/hg:mercurial
45
46    conflicts           py${python.version}-hgevolve-devel
47    if {[string match "*-devel" $subport]} {
48        conflicts       py${python.version}-hgevolve
49    }
50
51    post-destroot {
52        file delete ${destroot}${python.pkgd}/hgext/__init__.py
53        file delete ${destroot}${python.pkgd}/hgext/__init__.pyc
54
55        foreach f [glob -nocomplain ${destroot}${python.pkgd}/hgext/*.py] {
56            move $f ${destroot}${python.pkgd}
57        }
58        foreach f [glob -nocomplain ${destroot}${python.pkgd}/hgext/*.pyc] {
59            move $f ${destroot}${python.pkgd}
60        }
61    }
62
63    notes               "
64To enable hgevolve, add the following to your ~/.hgrc:
65
66\[extensions\]
67rebase =
68evolve =
69"
70
71    if {![string match "*-devel" $subport]} {
72        livecheck.type      none
73    }
74}
Note: See TracBrowser for help on using the repository browser.