[96335] trunk/dports/textproc/pdftk/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Aug 7 05:27:53 PDT 2012


Revision: 96335
          https://trac.macports.org/changeset/96335
Author:   ryandesign at macports.org
Date:     2012-08-07 05:27:49 -0700 (Tue, 07 Aug 2012)
Log Message:
-----------
pdftk: add gcc47 variant and make it the default on Lion and up; might be the fix for #35214 or #35553

Modified Paths:
--------------
    trunk/dports/textproc/pdftk/Portfile

Modified: trunk/dports/textproc/pdftk/Portfile
===================================================================
--- trunk/dports/textproc/pdftk/Portfile	2012-08-07 11:47:25 UTC (rev 96334)
+++ trunk/dports/textproc/pdftk/Portfile	2012-08-07 12:27:49 UTC (rev 96335)
@@ -80,8 +80,7 @@
         ${destroot}${prefix}/share/man/man1
 }
 
-variant with_gcc42 requires gcc42 description {Deprecated synonym for gcc42} {}
-variant gcc42 conflicts gcc45 description {Build using gcc42} {
+variant gcc42 conflicts gcc45 gcc47 description {Build using gcc42} {
     patchfiles-append   patch-gcj-4.2-and-older.diff
     configure.compiler  macports-gcc-4.2
     depends_build-append port:fastjar
@@ -89,15 +88,27 @@
     set versuff         -mp-4.2
 }
 
-variant gcc45 conflicts gcc42 description {Build using gcc45} {
+variant gcc45 conflicts gcc42 gcc47 description {Build using gcc45} {
     configure.compiler  macports-gcc-4.5
     depends_lib-append  port:gcc45
     set versuff         -mp-4.5
 }
 
-if {![variant_isset gcc42] && ![variant_isset gcc45]} {
-    if {${os.platform} == "darwin" && ${os.major} < 10} {
-        default_variants    +gcc42
+variant gcc47 conflicts gcc42 gcc45 description {Build using gcc47} {
+    configure.compiler  macports-gcc-4.7
+    depends_lib-append  port:gcc47
+    set versuff         -mp-4.7
+}
+
+if {![variant_isset gcc42] && ![variant_isset gcc45] && ![variant_isset gcc47]} {
+    if {${os.platform} == "darwin"} {
+        if {${os.major} < 10} {
+            default_variants    +gcc42
+        } elseif {${os.major} < 11} {
+            default_variants    +gcc45
+        } else {
+            default_variants    +gcc47
+        }
     } else {
         default_variants    +gcc45
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120807/9c8a96dc/attachment.html>


More information about the macports-changes mailing list