[153436] trunk/dports/python/py-hgexperimental/Portfile

sean at macports.org sean at macports.org
Fri Sep 30 07:44:22 CEST 2016


Revision: 153436
          https://trac.macports.org/changeset/153436
Author:   sean at macports.org
Date:     2016-09-29 22:44:22 -0700 (Thu, 29 Sep 2016)
Log Message:
-----------
py-hgexperimental: move phases into subport block

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

Modified: trunk/dports/python/py-hgexperimental/Portfile
===================================================================
--- trunk/dports/python/py-hgexperimental/Portfile	2016-09-30 05:30:04 UTC (rev 153435)
+++ trunk/dports/python/py-hgexperimental/Portfile	2016-09-30 05:44:22 UTC (rev 153436)
@@ -24,39 +24,39 @@
 
 python.versions     27
 
-post-patch {
-    # remove -Werror from build args
-    reinplace -W ${worksrcpath} "s|\"-Werror\",||" setup.py
+if {${name} ne ${subport}} {
+    depends_lib-append  path:bin/hg:mercurial \
+                        port:py27-cython \
+                        port:lz4
 
-    # fix relative import
-    reinplace -W ${worksrcpath}/fastannotate "s|from fastannotate|from .|" \
-        __init__.py \
-        context.py \
-        commands.py
-}
+    post-patch {
+        # remove -Werror from build args
+        reinplace -W ${worksrcpath} "s|\"-Werror\",||" setup.py
 
-post-destroot {
-    set sp ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
+        # fix relative import
+        reinplace -W ${worksrcpath}/fastannotate "s|from fastannotate|from .|" \
+            __init__.py \
+            context.py \
+            commands.py
+    }
 
-    # conflicts with hg and is not needed
-    delete {*}[glob ${sp}/hgext3rd/__init__.py*]
+    post-destroot {
+        set sp ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
 
-    copy ${worksrcpath}/treemanifest ${sp}/hgext3rd/
+        # conflicts with hg and is not needed
+        delete {*}[glob ${sp}/hgext3rd/__init__.py*]
 
-    copy ${sp}/fastannotate ${sp}/hgext3rd/
-    move ${sp}/sqldirstate ${sp}/hgext3rd/
-    move ${sp}/fastmanifest ${sp}/hgext3rd/
-    move ${sp}/remotefilelog ${sp}/hgext3rd/
-    move ${sp}/cdatapack.so ${sp}/hgext3rd/
-    move ${sp}/cfastmanifest.so ${sp}/hgext3rd/
-    move ${sp}/ctreemanifest.so ${sp}/hgext3rd/
-    move ${sp}/linelog.so ${sp}/hgext3rd/
-}
+        copy ${worksrcpath}/treemanifest ${sp}/hgext3rd/
 
-if {${name} ne ${subport}} {
-    depends_lib-append  path:bin/hg:mercurial \
-                        port:py27-cython \
-                        port:lz4
+        copy ${sp}/fastannotate ${sp}/hgext3rd/
+        move ${sp}/sqldirstate ${sp}/hgext3rd/
+        move ${sp}/fastmanifest ${sp}/hgext3rd/
+        move ${sp}/remotefilelog ${sp}/hgext3rd/
+        move ${sp}/cdatapack.so ${sp}/hgext3rd/
+        move ${sp}/cfastmanifest.so ${sp}/hgext3rd/
+        move ${sp}/ctreemanifest.so ${sp}/hgext3rd/
+        move ${sp}/linelog.so ${sp}/hgext3rd/
+    }
 
     notes               "
 To enable all of the extensions in hgexperimental, add the following to your ~/.hgrc:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20160929/f1a54596/attachment-0002.html>


More information about the macports-changes mailing list