[100315] trunk/dports/science/lalframe/Portfile

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


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

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

Modified: trunk/dports/science/lalframe/Portfile
===================================================================
--- trunk/dports/science/lalframe/Portfile	2012-12-08 02:53:19 UTC (rev 100314)
+++ trunk/dports/science/lalframe/Portfile	2012-12-08 07:07:20 UTC (rev 100315)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem    1.0
+PortGroup     active_variants 1.1
 
 name          lalframe
 version       1.0.7
@@ -36,17 +37,7 @@
 use_parallel_build yes
 
 variant swig_python description {Build python SWIG bindings} {
-  pre-fetch {
-    if { ![file exists ${prefix}/lib/python2.7/site-packages/lal/_lal.so] } {
-      ui_error "
-****
-**** LALFrame +swig_python requires LAL +swig_python, please
-**** reinstall LAL with the +swig_python variant.
-****
-"
-    error "${name} +swig_python requires lal +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/d8ab48eb/attachment-0001.html>


More information about the macports-changes mailing list