[92578] trunk/dports/python/py-pynds/Portfile

aronnax at macports.org aronnax at macports.org
Tue May 1 11:24:53 PDT 2012


Revision: 92578
          https://trac.macports.org/changeset/92578
Author:   aronnax at macports.org
Date:     2012-05-01 11:24:53 -0700 (Tue, 01 May 2012)
Log Message:
-----------
py-pynds: fix whitespace, replace 2-space indentation with 4-space indentation

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

Modified: trunk/dports/python/py-pynds/Portfile
===================================================================
--- trunk/dports/python/py-pynds/Portfile	2012-05-01 18:00:53 UTC (rev 92577)
+++ trunk/dports/python/py-pynds/Portfile	2012-05-01 18:24:53 UTC (rev 92578)
@@ -11,8 +11,8 @@
 maintainers             aronnax ram
 description             Network Data Server Client Python Wrapper
 long_description \
-  Python wrapper for accessing streamed LIGO data using the Network \
-  Data Server version 2.
+    Python wrapper for accessing streamed LIGO data using the Network \
+    Data Server version 2.
 
 homepage                http://www.lsc-group.phys.uwm.edu/daswg/
 master_sites            ${homepage}download/software/source/
@@ -26,18 +26,18 @@
 
 if {${subport} != ${name}} {
 
-depends_lib-append      port:nds2-client \
+    depends_lib-append  port:nds2-client \
                         port:boost \
                         port:py${python.version}-numpy
 
-if { ![file exists ${prefix}/lib/libboost_python-mt.dylib] } {
-  depends_lib-delete port:boost
-}
+    if { ![file exists ${prefix}/lib/libboost_python-mt.dylib] } {
+        depends_lib-delete port:boost
+    }
 
-pre-fetch {
-  if { ![file exists ${prefix}/lib/libboost_python-mt.dylib] } {
-    if { [file exists ${prefix}/lib/libboost_system-mt.dylib] } {
-      ui_error "
+    pre-fetch {
+        if { ![file exists ${prefix}/lib/libboost_python-mt.dylib] } {
+            if { [file exists ${prefix}/lib/libboost_system-mt.dylib] } {
+                ui_error "
 ****
 **** PyNDS requires port boost installed with variant +python${python.version}.
 **** Please do the following then try installing ${name} again:
@@ -46,8 +46,8 @@
 ****
 
 "
-    } else {
-      ui_error "
+            } else {
+                ui_error "
 ****
 **** PyNDS requires port boost installed with variant +python${python.version}.
 **** Please do the following then try installing ${name} again:
@@ -56,20 +56,20 @@
 ****
 
 "
+            }
+            error       "${name} requires boost +python${python.version}"
+        }
     }
-    error "${name} requires boost +python${python.version}"
-  }
-}
 
-build.env       PYTHON_CFLAGS="-I${prefix}/include/boost" \
-                CFLAGS="-I${prefix}/include/boost"
+    build.env           PYTHON_CFLAGS="-I${prefix}/include/boost" \
+                        CFLAGS="-I${prefix}/include/boost"
 
 }
 
 if {${name} == ${subport}} {
-  livecheck.type      regex
-  livecheck.url       ${master_sites}
-  livecheck.regex     {pynds-(\d+(?:\.\d+)*).tar.gz}
+    livecheck.type      regex
+    livecheck.url       ${master_sites}
+    livecheck.regex     {pynds-(\d+(?:\.\d+)*).tar.gz}
 } else {
-  livecheck.type  none
+    livecheck.type      none
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120501/8eac7de7/attachment.html>


More information about the macports-changes mailing list