This patch fixes the darwin typo, a TCL issue that has been shadowed by the
aforementioned typo and doesn't explicitly check for the existence of
${configure.cxx_stdlib}.

Also revbumped to have the correct min version target set.
--- multimedia/audacious/Portfile.old   2014-06-15 02:00:36.000000000 +0200
+++ multimedia/audacious/Portfile       2014-06-15 06:14:55.000000000 +0200
@@ -7,7 +7,7 @@
 
 # Please keep audacious, audacious-core and audacious-plugins synchronized.
 version             3.5
-revision            0
+revision            1
 
 license             BSD GPL-2+
 categories          multimedia
--- multimedia/audacious-core/Portfile.old      2014-06-15 02:00:36.000000000 
+0200
+++ multimedia/audacious-core/Portfile          2014-06-15 06:14:50.000000000 
+0200
@@ -8,7 +8,7 @@
 
 # Please keep audacious, audacious-core and audacious-plugins synchronized.
 version             3.5
-revision            0
+revision            1
 
 license             BSD
 categories          multimedia
@@ -56,19 +56,16 @@
 autoreconf.cmd      ./autogen.sh
 autoreconf.args
 
-platform darin {
-    if {[info exists configure.cxx_stdlib] &&
-        ${configure.cxx_stdlib} -ne {} &&
-        ${configure.cxx_stdlib} == "libc++"} {
+platform darwin {
+    if {${configure.cxx_stdlib} ne {} &&
+        [string equal ${configure.cxx_stdlib} "libc++"]} {
         if {${os.major} > 10} {
             configure.ldflags-append  "-mmacosx-version-min=10.7"
-        }
-        else {
+        } else {
             ui_error "libc++ is only supported on OS X 10.7 and up for this 
port."
             error "libc++ supported on >= 10.7 only."
         }
-    }
-    else {
+    } else {
         configure.ldflags-append  "-mmacosx-version-min=10.5"
     }
 }
--- multimedia/audacious-plugins/Portfile.old   2014-06-15 02:00:36.000000000 
+0200
+++ multimedia/audacious-plugins/Portfile       2014-06-15 06:14:52.000000000 
+0200
@@ -7,7 +7,7 @@
 
 # Please keep audacious, audacious-core and audacious-plugins synchronized.
 version             3.5
-revision            0
+revision            1
 
 # FIXME: probably more licenses involved here...
 license             BSD GPL-2+
@@ -104,19 +104,16 @@
 autoreconf.cmd      ./autogen.sh
 autoreconf.args
 
-platform darin {
-    if {[info exists configure.cxx_stdlib] &&
-        ${configure.cxx_stdlib} -ne {} &&
-        ${configure.cxx_stdlib} == "libc++"} {
+platform darwin {
+    if {${configure.cxx_stdlib} ne {} &&
+        [string equal ${configure.cxx_stdlib} "libc++"]} {
         if {${os.major} > 10} {
             configure.ldflags-append  "-mmacosx-version-min=10.7"
-        }
-        else {
+        } else {
             ui_error "libc++ is only supported on OS X 10.7 and up for this 
port."
             error "libc++ supported on >= 10.7 only."
         }
-    }
-    else {
+    } else {
         configure.ldflags-append  "-mmacosx-version-min=10.5"
     }
 }

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to