Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Feb 2015 10:16:32 +0000 (UTC)
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r378955 - in head/devel: . p5-B-C
Message-ID:  <201502141016.t1EAGWkw066845@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bofh
Date: Sat Feb 14 10:16:31 2015
New Revision: 378955
URL: https://svnweb.freebsd.org/changeset/ports/378955
QAT: https://qat.redports.org/buildarchive/r378955/

Log:
  [NEW] devel/p5-B-C: Perl compiler's C backend
  
  This compiler backend takes Perl source and generates C source
  code corresponding to the internal structures that perl uses to
  run your program. When the generated C source is compiled and
  run, it cuts out the time which perl would have taken to load
  and parse your program into its internal semi-compiled form.
  That means that compiling with this backend will not help improve
  the runtime execution speed of your program but may improve
  the start-up time. Depending on the environment in which your
  program runs this may be either a help or a hindrance.
  
  WWW: http://search.cpan.org/dist/B-C/
  
  PR:		196719
  Submitted by:	svysh.fbsd@gmail.com
  Approved by:	bapt marino (implicit)

Added:
  head/devel/p5-B-C/
  head/devel/p5-B-C/Makefile   (contents, props changed)
  head/devel/p5-B-C/distinfo   (contents, props changed)
  head/devel/p5-B-C/pkg-descr   (contents, props changed)
  head/devel/p5-B-C/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sat Feb 14 09:12:36 2015	(r378954)
+++ head/devel/Makefile	Sat Feb 14 10:16:31 2015	(r378955)
@@ -1516,6 +1516,7 @@
     SUBDIR += p5-Attribute-Persistent
     SUBDIR += p5-AutoLoader
     SUBDIR += p5-AutoXS-Header
+    SUBDIR += p5-B-C
     SUBDIR += p5-B-Compiling
     SUBDIR += p5-B-Deobfuscate
     SUBDIR += p5-B-Flags

Added: head/devel/p5-B-C/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-B-C/Makefile	Sat Feb 14 10:16:31 2015	(r378955)
@@ -0,0 +1,40 @@
+# Created by: Sergei Vyshenski <svysh.fbsd@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	B-C
+PORTVERSION=	1.52
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:RURBAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	svysh.fbsd@gmail.com
+COMMENT=	Perl compiler's C backend
+
+LICENSE=	ART10 GPLv1
+LICENSE_COMB=	dual
+
+BUILD_DEPENDS=	p5-B-Flags>=0:${PORTSDIR}/devel/p5-B-Flags \
+		p5-Opcodes>=0:${PORTSDIR}/devel/p5-Opcodes \
+		p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run
+RUN_DEPENDS:=	${BUILD_DEPENDS}
+
+USES=		perl5
+USE_PERL5=	configure
+PERL_INC_STAGE=	${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/CORE
+MAKE_ENV+=	PERL_INC_STAGE=${PERL_INC_STAGE}
+PLIST_SUB+=	PERL_ARCH=${PERL_ARCH}
+NO_ARCH=	yes
+
+post-patch:
+	${REINPLACE_CMD} -e "s|PERL_INC|PERL_INC_STAGE|g" ${WRKSRC}/Makefile.PL
+	${MKDIR} ${PERL_INC_STAGE}
+
+#pre-install:	test
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/B/C/C.so
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/B/Stash/Stash.so
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/ByteLoader/ByteLoader.so
+
+.include <bsd.port.mk>

Added: head/devel/p5-B-C/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-B-C/distinfo	Sat Feb 14 10:16:31 2015	(r378955)
@@ -0,0 +1,2 @@
+SHA256 (B-C-1.52.tar.gz) = 072b4b9e39431ad8ef5173557c26ade97f985cf150f6580a20f42dd9fc3651a7
+SIZE (B-C-1.52.tar.gz) = 2305520

Added: head/devel/p5-B-C/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-B-C/pkg-descr	Sat Feb 14 10:16:31 2015	(r378955)
@@ -0,0 +1,13 @@
+Perl compiler's C backend
+
+This compiler backend takes Perl source and generates C source
+code corresponding to the internal structures that perl uses to
+run your program. When the generated C source is compiled and
+run, it cuts out the time which perl would have taken to load 
+and parse your program into its internal semi-compiled form. 
+That means that compiling with this backend will not help improve
+the runtime execution speed of your program but may improve
+the start-up time. Depending on the environment in which your 
+program runs this may be either a help or a hindrance.
+
+WWW: http://search.cpan.org/dist/B-C/

Added: head/devel/p5-B-C/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/p5-B-C/pkg-plist	Sat Feb 14 10:16:31 2015	(r378955)
@@ -0,0 +1,40 @@
+bin/assemble
+bin/cc_harness
+bin/disassemble
+bin/perlcc
+lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/cc_runtime.h
+%%SITE_ARCH%%/B/Asmdata.pm
+%%SITE_ARCH%%/B/Assembler.pm
+%%SITE_ARCH%%/B/Bblock.pm
+%%SITE_ARCH%%/B/Bytecode.pm
+%%SITE_ARCH%%/B/Bytecode56.pm
+%%SITE_ARCH%%/B/C.pm
+%%SITE_ARCH%%/B/C/Flags.pm
+%%SITE_ARCH%%/B/CC.pm
+%%SITE_ARCH%%/B/Disassembler.pm
+%%SITE_ARCH%%/B/Stackobj.pm
+%%SITE_ARCH%%/B/Stash.pm
+%%SITE_ARCH%%/B/perlcompile.pod
+%%SITE_ARCH%%/B/perloptree.pod
+%%SITE_ARCH%%/BcVersions.pod
+%%SITE_ARCH%%/ByteLoader.pm
+%%SITE_ARCH%%/auto/B/C/C.so
+%%SITE_ARCH%%/auto/B/Stash/Stash.so
+%%SITE_ARCH%%/auto/ByteLoader/ByteLoader.so
+%%PERL5_MAN3%%/B::Asmdata.3.gz
+%%PERL5_MAN3%%/B::Assembler.3.gz
+%%PERL5_MAN3%%/B::Bblock.3.gz
+%%PERL5_MAN3%%/B::Bytecode.3.gz
+%%PERL5_MAN3%%/B::Bytecode56.3.gz
+%%PERL5_MAN3%%/B::C.3.gz
+%%PERL5_MAN3%%/B::CC.3.gz
+%%PERL5_MAN3%%/B::Disassembler.3.gz
+%%PERL5_MAN3%%/B::Stackobj.3.gz
+%%PERL5_MAN3%%/B::Stash.3.gz
+%%PERL5_MAN3%%/B::perlcompile.3.gz
+%%PERL5_MAN3%%/B::perloptree.3.gz
+%%PERL5_MAN3%%/BcVersions.3.gz
+%%PERL5_MAN3%%/ByteLoader.3.gz
+man/man1/assemble.1.gz
+man/man1/disassemble.1.gz
+man/man1/perlcc.1.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502141016.t1EAGWkw066845>