[144954] trunk/dports/devel/qca/Portfile

michaelld at macports.org michaelld at macports.org
Fri Jan 22 05:51:47 PST 2016


Revision: 144954
          https://trac.macports.org/changeset/144954
Author:   michaelld at macports.org
Date:     2016-01-22 05:51:47 -0800 (Fri, 22 Jan 2016)
Log Message:
-----------
qca: make sure -qt4 wasn't specified alone.

Modified Paths:
--------------
    trunk/dports/devel/qca/Portfile

Modified: trunk/dports/devel/qca/Portfile
===================================================================
--- trunk/dports/devel/qca/Portfile	2016-01-22 13:35:07 UTC (rev 144953)
+++ trunk/dports/devel/qca/Portfile	2016-01-22 13:51:47 UTC (rev 144954)
@@ -56,6 +56,12 @@
     default_variants     +qt4
 }
 
+# make sure -qt4 wasn't specified alone
+if {![variant_isset qt4] && ![variant_isset qt5]} {
+    ui_error "\n\nYou must select either the +qt4 or +qt5 variant to build ${name}\n"
+    return -code error "Invalid variant selection"
+}
+
 # allow ccache, if specified by the user
 pre-build {
     if {[tbool configure.ccache]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160122/faa8dd02/attachment.html>


More information about the macports-changes mailing list