[99897] trunk/dports/science/lalsimulation/Portfile

ram at macports.org ram at macports.org
Tue Nov 20 19:32:18 PST 2012


Revision: 99897
          https://trac.macports.org/changeset/99897
Author:   ram at macports.org
Date:     2012-11-20 19:32:18 -0800 (Tue, 20 Nov 2012)
Log Message:
-----------
science/lalsimulation: update to 0.5.0

Modified Paths:
--------------
    trunk/dports/science/lalsimulation/Portfile

Modified: trunk/dports/science/lalsimulation/Portfile
===================================================================
--- trunk/dports/science/lalsimulation/Portfile	2012-11-21 03:32:09 UTC (rev 99896)
+++ trunk/dports/science/lalsimulation/Portfile	2012-11-21 03:32:18 UTC (rev 99897)
@@ -3,7 +3,7 @@
 PortSystem    1.0
 
 name          lalsimulation
-version       0.4.0
+version       0.5.0
 categories    science
 platforms     darwin
 maintainers   ram
@@ -17,8 +17,8 @@
 homepage      https://www.lsc-group.phys.uwm.edu/daswg/projects/lalsuite.html
 master_sites  http://www.lsc-group.phys.uwm.edu/daswg/download/software/source/lalsuite
 
-checksums     rmd160 7de188a2bc81f0a4d50262f7fa257c214c7147f2 \
-              sha256 a1d9c1412b6c7c329bae96c9f7dba381f0cd88f8f587479ca0213cdfd3f9c08d
+checksums     rmd160 8e467df0ca86527238dee6c138c71845602ea7aa \
+              sha256 b072ed5d6aee050aa43a9ea540bdcc889f94075f4de27a392644a658798e3eb7
 
 depends_build port:pkgconfig \
               port:python27
@@ -34,21 +34,24 @@
 
 use_parallel_build yes
 
-# check for earlier versions of lalburst and lalinspiral that contained
-# conflicting headers, deactivate if necessary
-pre-activate {
-  if {[file exists ${prefix}/include/lal/LALSimBurst.h]
-    && ![catch {set vers [lindex [registry_active lalburst] 0]}]
-    && [vercmp [lindex $vers 1] 1.0.1] < 0} {
-      registry_deactivate_composite lalburst "" [list ports_nodepcheck 1]
+variant swig_python description {Build python SWIG bindings} {
+  pre-fetch {
+    if { ![file exists ${prefix}/lib/python2.7/site-packages/lal/_lal.so] } {
+      ui_error "
+****
+**** LALSimulation +swig_python requires LAL +swig_python, please
+**** reinstall LAL with the +swig_python variant.
+****
+"
+    error "${name} +swig_python requires lal +swig_python"
+    }
   }
-  if {[file exists ${prefix}/include/lal/LALSimInspiral.h]
-    && ![catch {set vers [lindex [registry_active lalinspiral] 0]}]
-    && [vercmp [lindex $vers 1] 1.1.0] < 0} {
-      registry_deactivate_composite lalinspiral "" [list ports_nodepcheck 1]
-  }
+  depends_build-append  port:swig-python
+  configure.args-append --enable-swig-python
 }
 
+default_variants +swig_python
+
 livecheck.type   regex
 livecheck.url    ${master_sites}
 livecheck.regex  {lalsimulation-(\d+(?:\.\d+)*).tar.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121120/9e286365/attachment.html>


More information about the macports-changes mailing list