[88572] trunk/dports/www/mod_perl2/Portfile

cal at macports.org cal at macports.org
Wed Jan 4 07:11:37 PST 2012


Revision: 88572
          http://trac.macports.org/changeset/88572
Author:   cal at macports.org
Date:     2012-01-04 07:11:37 -0800 (Wed, 04 Jan 2012)
Log Message:
-----------
mod_perl2: Fix wrong check for +threads, use simpler perl -V:configoption format

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

Modified: trunk/dports/www/mod_perl2/Portfile
===================================================================
--- trunk/dports/www/mod_perl2/Portfile	2012-01-04 15:11:00 UTC (rev 88571)
+++ trunk/dports/www/mod_perl2/Portfile	2012-01-04 15:11:37 UTC (rev 88572)
@@ -37,11 +37,11 @@
 
 pre-configure {
     set perl5bin "${prefix}/bin/perl5"
-    if {[exec ${perl5bin} -MConfig -e "print \$Config{'useshrplib'} || 0"] != "0"} {
+    if {[string first "true" [exec ${perl5bin} -V:useshrplib]] == -1} {
         ui_error "${name} requires perl5 to be installed with the +shared variant."
         return -code error "perl5 must be +shared"
     }
-    if {[exec ${perl5bin} -MConfig -e "print \$Config{'usethreads'} || 0"] != "0"} {
+    if {[string first "define" [exec ${perl5bin} -V:usethreads]] == -1} {
         ui_error "${name} requires perl5 to be installed with the +threads variant."
         return -code error "perl5 must be +threads"
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120104/c8717ed4/attachment.html>


More information about the macports-changes mailing list