Revision
117539
Author
jeremyhu@macports.org
Date
2014-03-03 00:16:13 -0800 (Mon, 03 Mar 2014)

Log Message

help2man: Use perl 5.14 on Leopard

Modified Paths

Diff

Modified: trunk/dports/textproc/help2man/Portfile (117538 => 117539)


--- trunk/dports/textproc/help2man/Portfile	2014-03-03 08:00:20 UTC (rev 117538)
+++ trunk/dports/textproc/help2man/Portfile	2014-03-03 08:16:13 UTC (rev 117539)
@@ -38,6 +38,13 @@
     reinplace "s|-shared|-bundle ${configure.ldflags} [get_canonical_archflags ld]|" ${worksrcpath}/Makefile.in
 }
 
+platform darwin 9 {
+    # per5.16 fails on Leopard ('perl5.16 -mLocale::gettext -e 1' segfaults)
+    depends_lib-delete port:perl5.16 port:p5.16-locale-gettext
+    depends_lib-append port:perl5.14 port:p5.14-locale-gettext
+    configure.perl  ${prefix}/bin/perl5.14
+}
+
 post-destroot {
     set docdir ${prefix}/share/doc/${name}
     xinstall -d ${destroot}${docdir}