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

ram at macports.org ram at macports.org
Fri Dec 7 23:07:44 PST 2012


Revision: 100319
          https://trac.macports.org/changeset/100319
Author:   ram at macports.org
Date:     2012-12-07 23:07:44 -0800 (Fri, 07 Dec 2012)
Log Message:
-----------
science/lalpulsar: use active variants port group

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

Modified: trunk/dports/science/lalpulsar/Portfile
===================================================================
--- trunk/dports/science/lalpulsar/Portfile	2012-12-08 07:07:38 UTC (rev 100318)
+++ trunk/dports/science/lalpulsar/Portfile	2012-12-08 07:07:44 UTC (rev 100319)
@@ -36,34 +36,16 @@
 use_parallel_build yes
 
 variant lalxml description {Build with LALXML support} {
+  if {[variant_isset swig_python]} {
+    require_active_variants lalxml swig_python
+  }
   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"
-      }
-    }
-  }
+  require_active_variants lal swig_python
   depends_build-append  port:swig-python \
                         port:py27-numpy
   configure.args-append --enable-swig-python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121207/846ebce8/attachment.html>


More information about the macports-changes mailing list