[94661] trunk/dports/perl/p5-sgml-parser-opensp

jmr at macports.org jmr at macports.org
Tue Jun 26 07:34:42 PDT 2012


Revision: 94661
          https://trac.macports.org/changeset/94661
Author:   jmr at macports.org
Date:     2012-06-26 07:34:40 -0700 (Tue, 26 Jun 2012)
Log Message:
-----------
p5-sgml-parser-opensp: this really wants a C++ compiler in CC, so at least give it the right C++ compiler

Modified Paths:
--------------
    trunk/dports/perl/p5-sgml-parser-opensp/Portfile
    trunk/dports/perl/p5-sgml-parser-opensp/files/Makefile.PL.patch

Modified: trunk/dports/perl/p5-sgml-parser-opensp/Portfile
===================================================================
--- trunk/dports/perl/p5-sgml-parser-opensp/Portfile	2012-06-26 13:02:29 UTC (rev 94660)
+++ trunk/dports/perl/p5-sgml-parser-opensp/Portfile	2012-06-26 14:34:40 UTC (rev 94661)
@@ -18,6 +18,10 @@
 
 if {${perl5.major} != ""} {
 patchfiles          Makefile.PL.patch
+# wants to put C++ code in a .c file for some reason
+post-patch {
+    reinplace "s|__CXX__|${configure.cxx}|" ${worksrcpath}/Makefile.PL
+}
 depends_lib-append  port:p${perl5.major}-class-accessor \
                     port:p${perl5.major}-file-temp \
                     port:p${perl5.major}-test-exception \

Modified: trunk/dports/perl/p5-sgml-parser-opensp/files/Makefile.PL.patch
===================================================================
--- trunk/dports/perl/p5-sgml-parser-opensp/files/Makefile.PL.patch	2012-06-26 13:02:29 UTC (rev 94660)
+++ trunk/dports/perl/p5-sgml-parser-opensp/files/Makefile.PL.patch	2012-06-26 14:34:40 UTC (rev 94661)
@@ -1,11 +1,13 @@
 --- Makefile.PL.orig	2008-06-30 05:37:52.000000000 +1000
-+++ Makefile.PL	2012-05-19 23:31:18.000000000 +1000
-@@ -13,8 +13,6 @@
++++ Makefile.PL	2012-06-27 00:29:13.000000000 +1000
+@@ -12,9 +12,7 @@
+ }
  else
  {
-     # assume some compatible Linux
+-    # assume some compatible Linux
 -    $options{LD}   = "g++";
 -    $options{CC}   = "g++";
++    $options{CC}   = "__CXX__";
      $options{LIBS} = "-lstdc++ -losp";
  }
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120626/b0fa43da/attachment.html>


More information about the macports-changes mailing list