[33621] trunk/dports/lang/swi-prolog

ryandesign at macports.org ryandesign at macports.org
Thu Jan 31 11:09:58 PST 2008


Revision: 33621
          http://trac.macosforge.org/projects/macports/changeset/33621
Author:   ryandesign at macports.org
Date:     2008-01-31 11:09:54 -0800 (Thu, 31 Jan 2008)

Log Message:
-----------
swi-prolog and swi-prolog-lite:

 * mark the st and mt variants as conflicting with one another
 * add variant descriptions
 * select +mt by default only if the user did not request +st
 * remove a leftover configure.arg in swi-prolog-lite

Closes #14121.

Modified Paths:
--------------
    trunk/dports/lang/swi-prolog/Portfile
    trunk/dports/lang/swi-prolog-lite/Portfile

Modified: trunk/dports/lang/swi-prolog/Portfile
===================================================================
--- trunk/dports/lang/swi-prolog/Portfile	2008-01-31 18:50:38 UTC (rev 33620)
+++ trunk/dports/lang/swi-prolog/Portfile	2008-01-31 19:09:54 UTC (rev 33621)
@@ -91,12 +91,14 @@
 	file delete -force -- ${resources}/Welcome.rtf
 }
 
-default_variants +mt
+if {![variant_isset st]} {
+	default_variants +mt
+}
 
-variant st {
+variant st conflicts mt description {Single-threaded} {
 	configure.args-append --disable-mt
 }
 
-variant mt {
+variant mt conflicts st description {Multi-threaded (default)} {
 	configure.args-append --enable-mt
 }

Modified: trunk/dports/lang/swi-prolog-lite/Portfile
===================================================================
--- trunk/dports/lang/swi-prolog-lite/Portfile	2008-01-31 18:50:38 UTC (rev 33620)
+++ trunk/dports/lang/swi-prolog-lite/Portfile	2008-01-31 19:09:54 UTC (rev 33621)
@@ -36,8 +36,7 @@
 	--prefix=${prefix}				\
 	--mandir=${prefix}/share/man	\
 	--disable-gmp \
-	--enable-shared \
-	--enable-mt
+	--enable-shared
 
 platform darwin 6 {
 	depends_lib-append lib:libdl:dlcompat
@@ -68,12 +67,14 @@
 	file delete -force -- ${resources}/Welcome.rtf
 }
 
-default_variants +mt
+if {![variant_isset st]} {
+	default_variants +mt
+}
 
-variant st {
+variant st conflicts mt description {Single-threaded} {
 	configure.args-append --disable-mt
 }
 
-variant mt {
+variant mt conflicts st description {Multi-threaded (default)} {
 	configure.args-append --enable-mt
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080131/f5781822/attachment.html


More information about the macports-changes mailing list