Revision
99239
Author
ryandesign@macports.org
Date
2012-10-30 01:12:02 -0700 (Tue, 30 Oct 2012)

Log Message

graphite2: fix build with gcc-4.0; enable tests

Modified Paths

Diff

Modified: trunk/dports/graphics/graphite2/Portfile (99238 => 99239)


--- trunk/dports/graphics/graphite2/Portfile	2012-10-30 03:40:12 UTC (rev 99238)
+++ trunk/dports/graphics/graphite2/Portfile	2012-10-30 08:12:02 UTC (rev 99239)
@@ -24,4 +24,12 @@
 checksums           rmd160  f6858b233753020b83624fe5c8b3e98c3ea1802b \
                     sha256  0eb19282a1941bdd5e6d7165718c5d4692d62bac6c1eea56d9e522715cb144f7
 
+if {${configure.compiler} == "gcc-4.0"} {
+    post-patch {
+        reinplace "s|-fdiagnostics-show-option||g" ${worksrcpath}/src/CMakeLists.txt ${worksrcpath}/tests/CMakeLists.txt
+    }
+}
+
+test.run            yes
+
 livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}