[135135] trunk/dports/perl

devans at macports.org devans at macports.org
Thu Apr 16 05:10:18 PDT 2015


Revision: 135135
          https://trac.macports.org/changeset/135135
Author:   devans at macports.org
Date:     2015-04-16 05:10:18 -0700 (Thu, 16 Apr 2015)
Log Message:
-----------
p5-json-dwiw: new port, JSON converter that Does What I Want.

Added Paths:
-----------
    trunk/dports/perl/p5-json-dwiw/
    trunk/dports/perl/p5-json-dwiw/Portfile
    trunk/dports/perl/p5-json-dwiw/files/
    trunk/dports/perl/p5-json-dwiw/files/patch-Makefile.PL.diff

Added: trunk/dports/perl/p5-json-dwiw/Portfile
===================================================================
--- trunk/dports/perl/p5-json-dwiw/Portfile	                        (rev 0)
+++ trunk/dports/perl/p5-json-dwiw/Portfile	2015-04-16 12:10:18 UTC (rev 135135)
@@ -0,0 +1,30 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           perl5 1.0
+
+perl5.branches      5.16 5.18 5.20
+perl5.setup         JSON-DWIW 0.47
+license             {Artistic-1 GPL}
+maintainers         devans openmaintainer
+description         JSON::DWIW - JSON converter that Does What I Want
+long_description    ${description}
+
+platforms           darwin
+
+checksums           rmd160  2bf1a314067900246056ea3d02b17947dd627e12 \
+                    sha256  46a7cdcb77ceb95f96da53800ce36d21835f7fd25ab15cb45f823dec11213161
+
+if {${perl5.major} != ""} {
+    depends_lib-append \
+                    port:p${perl5.major}-math-bigint
+
+# patch to UseTheRightCompiler
+
+    patchfiles      patch-Makefile.PL.diff
+
+    post-patch {
+        reinplace "s|__MP_CC__|${configure.cc}|" ${worksrcpath}/Makefile.PL
+    }
+}


Property changes on: trunk/dports/perl/p5-json-dwiw/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/perl/p5-json-dwiw/files/patch-Makefile.PL.diff
===================================================================
--- trunk/dports/perl/p5-json-dwiw/files/patch-Makefile.PL.diff	                        (rev 0)
+++ trunk/dports/perl/p5-json-dwiw/files/patch-Makefile.PL.diff	2015-04-16 12:10:18 UTC (rev 135135)
@@ -0,0 +1,11 @@
+--- Makefile.PL.orig	2015-04-16 04:35:38.000000000 -0700
++++ Makefile.PL	2015-04-16 04:37:38.000000000 -0700
+@@ -95,7 +95,7 @@
+     # my $perl_exec = $^X;
+     my $perl_exec = $Config::Config{perlpath};
+         
+-    $stuff .= "$config_h:\n\tcd $src_dir; ./configure && ./fixup_config '$perl_exec'\n\n";
++    $stuff .= "$config_h:\n\tcd $src_dir; ./configure CC=__MP_CC__ && ./fixup_config '$perl_exec'\n\n";
+     
+     $stuff .= $add_evt_obj->('jsonevt');
+     $stuff .= $add_evt_obj->('json_writer');
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150416/a6dcfd69/attachment.html>


More information about the macports-changes mailing list