[112234] trunk/dports/python/py-hgevolve/Portfile

sean at macports.org sean at macports.org
Tue Oct 15 20:53:51 PDT 2013


Revision: 112234
          https://trac.macports.org/changeset/112234
Author:   sean at macports.org
Date:     2013-10-15 20:53:51 -0700 (Tue, 15 Oct 2013)
Log Message:
-----------
py-hgevolve: add a devel version

Modified Paths:
--------------
    trunk/dports/python/py-hgevolve/Portfile

Modified: trunk/dports/python/py-hgevolve/Portfile
===================================================================
--- trunk/dports/python/py-hgevolve/Portfile	2013-10-16 03:53:44 UTC (rev 112233)
+++ trunk/dports/python/py-hgevolve/Portfile	2013-10-16 03:53:51 UTC (rev 112234)
@@ -6,9 +6,8 @@
 PortGroup               bitbucket 1.0
 
 set realname            evolve
-bitbucket.setup         marmoute mutable-history 3.1.0
 name                    py-hg$realname
-revision                1
+
 categories-append       devel
 platforms               darwin
 license                 GPL-2+
@@ -19,20 +18,49 @@
 long_description        This extension provides several commands to mutate history \
                         and deal with issues it may raise.
 
-checksums               rmd160  44a938188a1a190bcc8e81803d5f501a690941f9 \
+# can't set python.versions before adding custom subports
+subport py27-hgevolve-devel {
+}
+
+if {[string match "*-devel" $subport]} {
+    bitbucket.setup     marmoute mutable-history 760d01a549a6
+    name                py-hg$realname-devel
+    version             3.1.99
+
+    checksums           rmd160  780a0167109993354a08656a01288cb07ea6ef85 \
+                        sha256  ec50787c31d6e20fb4c89ff33d8aa2920f972cbc4123f15186a43bd2cd34c4f9
+} else {
+    bitbucket.setup     marmoute mutable-history 3.1.0
+    name                py-hg$realname
+    revision            1
+
+    checksums           rmd160  44a938188a1a190bcc8e81803d5f501a690941f9 \
                         sha256  4dd3dbd788ef65a3549fd3bc6c3faebe3ed27cd781d79aa31c3f59943f10bbc3
+}
 
 python.versions         27
 
 if {$subport != $name} {
     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               "
@@ -43,5 +71,7 @@
 hg${realname} =
 "
 
-    livecheck.type      none
+    if {![string match "*-devel" $subport]} {
+        livecheck.type      none
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131015/eb7b507b/attachment.html>


More information about the macports-changes mailing list