[147178] trunk/dports/perl

devans at macports.org devans at macports.org
Wed Mar 30 05:07:15 PDT 2016


Revision: 147178
          https://trac.macports.org/changeset/147178
Author:   devans at macports.org
Date:     2016-03-30 05:07:15 -0700 (Wed, 30 Mar 2016)
Log Message:
-----------
p5-b-c: new port, perl compiler's C backend.

Added Paths:
-----------
    trunk/dports/perl/p5-b-c/
    trunk/dports/perl/p5-b-c/Portfile
    trunk/dports/perl/p5-b-c/files/
    trunk/dports/perl/p5-b-c/files/patch-t-perldoc.t.diff

Added: trunk/dports/perl/p5-b-c/Portfile
===================================================================
--- trunk/dports/perl/p5-b-c/Portfile	                        (rev 0)
+++ trunk/dports/perl/p5-b-c/Portfile	2016-03-30 12:07:15 UTC (rev 147178)
@@ -0,0 +1,38 @@
+# -*- 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.22
+perl5.setup         B-C 1.54
+license             {Artistic-1 GPL}
+maintainers         devans openmaintainer
+description         B::C - Perl compiler's C backend
+long_description    ${description}
+
+platforms           darwin
+
+checksums           rmd160  666ac5f78a1e132658a0b8e14849f72ab2ed1201 \
+                    sha256  d07e5af5fb798fcd3f4eda5e40744a14c1b3ef9e585a7dca55b5db31cb1d28d3
+
+if {${perl5.major} != ""} {
+    depends_build-append \
+                    port:p${perl5.major}-ev \
+                    port:p${perl5.major}-io-socket-inet6 \
+                    port:p${perl5.major}-io-socket-ssl \
+                    port:p${perl5.major}-json-xs \
+                    port:p${perl5.major}-libwww-perl \
+                    port:p${perl5.major}-net-dns
+
+    depends_lib-append \
+                    port:p${perl5.major}-b-flags \
+                    port:p${perl5.major}-ipc-run \
+                    port:p${perl5.major}-opcodes
+    
+# help perldoc.t find perldoc executable
+    patchfiles      patch-t-perldoc.t.diff
+    post-patch {
+        reinplace "s|@@MP_PERL5_MAJOR@@|${perl5.major}|" ${worksrcpath}/t/perldoc.t
+    }
+}


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

Added: trunk/dports/perl/p5-b-c/files/patch-t-perldoc.t.diff
===================================================================
--- trunk/dports/perl/p5-b-c/files/patch-t-perldoc.t.diff	                        (rev 0)
+++ trunk/dports/perl/p5-b-c/files/patch-t-perldoc.t.diff	2016-03-30 12:07:15 UTC (rev 147178)
@@ -0,0 +1,11 @@
+--- t/perldoc.t.orig	2016-03-30 03:50:11.000000000 -0700
++++ t/perldoc.t	2016-03-30 03:51:06.000000000 -0700
+@@ -30,7 +30,7 @@
+ 
+ my $X = $^X =~ m/\s/ ? qq{"$^X"} : $^X;
+ my $Mblib = Mblib();
+-my $perldoc = File::Spec->catfile($Config{installbin}, 'perldoc');
++my $perldoc = File::Spec->catfile($Config{installbin}, 'perldoc-@@MP_PERL5_MAJOR@@');
+ my $perlcc = "$X $Mblib blib/script/perlcc";
+ $perlcc .= " -Wb=-fno-fold,-fno-warnings" if $] > 5.013;
+ $perlcc .= " -UB -uFile::Spec -uCwd";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160330/02e7c6e5/attachment.html>


More information about the macports-changes mailing list