Revision
32288
Author
ryandesign@macports.org
Date
2007-12-23 09:50:14 -0800 (Sun, 23 Dec 2007)

Log Message

pdftk: fail more gracefully if gcj-mp-42 is not present, for example on Leopard PPC as a result of #13553

Modified Paths

Diff

Modified: trunk/dports/textproc/pdftk/Portfile (32287 => 32288)


--- trunk/dports/textproc/pdftk/Portfile	2007-12-23 17:42:45 UTC (rev 32287)
+++ trunk/dports/textproc/pdftk/Portfile	2007-12-23 17:50:14 UTC (rev 32288)
@@ -40,6 +40,17 @@
 depends_lib \
 	port:libiconv
 
+pre-fetch {
+	if {![file exists ${prefix}/bin/gcj-mp-4.2]} {
+		return -code error "
+
+Cannot build ${name} because ${prefix}/bin/gcj-mp-4.2 is missing,
+possibly because of this gcc bug:
+http://trac.macports.org/projects/macports/ticket/13553
+"
+	}
+}
+
 pre-build {
 	reinplace "s|^\\(CPPFLAGS=\\)|\\1 ${configure.cppflags}|" ${worksrcpath}/Makefile.MacOSX
 	reinplace "s|^\\(CXXFLAGS=\\)|\\1 ${configure.cxxflags} ${configure.ldflags}|" ${worksrcpath}/Makefile.MacOSX