[107823] trunk/dports/www/apache2/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Jul 6 01:45:39 PDT 2013


Revision: 107823
          https://trac.macports.org/changeset/107823
Author:   ryandesign at macports.org
Date:     2013-07-06 01:45:39 -0700 (Sat, 06 Jul 2013)
Log Message:
-----------
apache2: use require_active_variants

Modified Paths:
--------------
    trunk/dports/www/apache2/Portfile

Modified: trunk/dports/www/apache2/Portfile
===================================================================
--- trunk/dports/www/apache2/Portfile	2013-07-06 08:41:37 UTC (rev 107822)
+++ trunk/dports/www/apache2/Portfile	2013-07-06 08:45:39 UTC (rev 107823)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           active_variants 1.1
 
 name                apache2
 version             2.2.24
@@ -150,16 +151,7 @@
 variant openldap description {Enable LDAP support through OpenLDAP} {
     configure.args-append --enable-ldap --enable-authnz-ldap
     depends_lib-append port:openldap
-    pre-configure {
-        if {-1 == [string first -lldap [exec ${prefix}/bin/apu-1-config --libs]]} {
-            ui_error "To install ${name} with the +openldap variant, apr-util must be installed"
-            ui_error "with the +openldap variant. Rebuild apr-util using:"
-            ui_error
-            ui_error "    sudo port upgrade --enforce-variants apr-util +openldap"
-            ui_error
-            return -code error "incompatible apr-util installation"
-        }
-    }
+    require_active_variants apr-util openldap
 }
 
 variant preforkmpm conflicts workermpm eventmpm description {Use prefork MPM} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130706/15f1de20/attachment.html>


More information about the macports-changes mailing list