[99901] trunk/dports/science/lalpulsar/Portfile

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


Revision: 99901
          https://trac.macports.org/changeset/99901
Author:   ram at macports.org
Date:     2012-11-20 19:32:51 -0800 (Tue, 20 Nov 2012)
Log Message:
-----------
science/lalpulsar: update to 1.5.0

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

Modified: trunk/dports/science/lalpulsar/Portfile
===================================================================
--- trunk/dports/science/lalpulsar/Portfile	2012-11-21 03:32:43 UTC (rev 99900)
+++ trunk/dports/science/lalpulsar/Portfile	2012-11-21 03:32:51 UTC (rev 99901)
@@ -3,7 +3,8 @@
 PortSystem    1.0
 
 name          lalpulsar
-version       1.4.1
+version       1.5.0
+revision      1
 categories    science
 platforms     darwin
 maintainers   ram
@@ -17,25 +18,58 @@
 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 900c7e45063ebbade80d59a824f3e8cc903538f2 \
-              sha256 1d8c03ba3d23cc9d3fcead672485f697a0c81c82118fe0ebea4fee845203a58e
+checksums     rmd160 2a7f96ba13e92d0fe1a6ad03f7813784c9e94a23 \
+              sha256 805a15e447ff358403a8b2afc7b319c3b41288cbd08f37c8830020bf31c64840
 
 depends_build port:pkgconfig \
               port:python27
 
 depends_lib   port:gsl \
-              port:lal \
-              port:lalxml
+              port:lal
 
 configure.python ${prefix}/bin/python2.7
 configure.args --mandir=${prefix}/share/man \
                --disable-silent-rules \
-               --enable-lalxml \
                --disable-gcc-flags \
                --disable-debug
 
 use_parallel_build yes
 
+variant lalxml description {Build with LALXML support} {
+  depends_lib-append   port:libxml2 \
+                       port:lalxml
+  configure.args-append --enable-lalxml
+}
+
+variant swig_python description {Build python SWIG bindings} {
+  pre-fetch {
+    if { ![file exists ${prefix}/lib/python2.7/site-packages/lal/_lal.so] } {
+      ui_error "
+****
+**** LALPulsar +swig_python requires LAL +swig_python, please
+**** reinstall LAL with the +swig_python variant.
+****
+"
+    error "${name} +swig_python requires lal +swig_python"
+    }
+    if {[variant_isset lalxml]} {
+      if { ![file exists ${prefix}/lib/python2.7/site-packages/lalxml/_lalxml.so] } {
+        ui_error "
+****
+**** LALPulsar +swig_python requires LALXML +swig_python, please
+**** reinstall LALXML with the +swig_python variant.
+****
+"
+        error "${name} +swig_python requires lalxml +swig_python"
+      }
+    }
+  }
+  depends_build-append  port:swig-python
+  configure.args-append --enable-swig-python
+}
+
+default_variants +lalxml +swig_python
+
 livecheck.type   regex
 livecheck.url    ${master_sites}
 livecheck.regex  {lalpulsar-(\d+(?:\.\d+)*).tar.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121120/7c1f81a4/attachment-0001.html>


More information about the macports-changes mailing list