Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2021 18:57:33 GMT
From:      =?utf-8?Q?Fernando Apestegu=C3=ADa?= <fernape@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6990380dff84 - main - devel/p5-B-Debug: new port to walk Perl syntax tree, printing debug info about ops
Message-ID:  <202111211857.1ALIvXUs028171@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6990380dff840ba4ba9cefc5d5991c18b454d356

commit 6990380dff840ba4ba9cefc5d5991c18b454d356
Author:     James E Keenan <jkeenan@pobox.com>
AuthorDate: 2021-11-21 18:14:43 +0000
Commit:     Fernando ApesteguĂ­a <fernape@FreeBSD.org>
CommitDate: 2021-11-21 18:56:09 +0000

    devel/p5-B-Debug: new port to walk Perl syntax tree, printing debug info about ops
    
    As of perl-5.30, released in the spring of 2019, B-Debug is no longer shipped
    with the Perl 5 core distribution.  So at the present time it's not available
    through FreeBSD ports.
    
    PR:     258350
    Reported by:    jkeenan@pobox.com
---
 devel/Makefile             |  1 +
 devel/p5-B-Debug/Makefile  | 28 ++++++++++++++++++++++++++++
 devel/p5-B-Debug/distinfo  |  3 +++
 devel/p5-B-Debug/pkg-descr | 23 +++++++++++++++++++++++
 devel/p5-B-Debug/pkg-plist |  2 ++
 5 files changed, 57 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index b66e9e6db987..30ee6bcabf9c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1790,6 +1790,7 @@
     SUBDIR += p5-B-C
     SUBDIR += p5-B-COW
     SUBDIR += p5-B-Compiling
+    SUBDIR += p5-B-Debug
     SUBDIR += p5-B-Deobfuscate
     SUBDIR += p5-B-Flags
     SUBDIR += p5-B-Generate
diff --git a/devel/p5-B-Debug/Makefile b/devel/p5-B-Debug/Makefile
new file mode 100644
index 000000000000..3d9538bd7eba
--- /dev/null
+++ b/devel/p5-B-Debug/Makefile
@@ -0,0 +1,28 @@
+# Created by: James E Keenan <jkeenan@cpan.org>
+
+PORTNAME=	B-Debug
+PORTVERSION=	1.26
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:RURBAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	jkeenan@cpan.org
+COMMENT=	Walk Perl syntax tree, printing debug info about ops
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+
+USES=		perl5
+USE_PERL5=	configure
+NO_ARCH=	yes
+
+PORTDOCS=	Changes README
+
+OPTIONS_DEFINE=	DOCS
+
+post-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/devel/p5-B-Debug/distinfo b/devel/p5-B-Debug/distinfo
new file mode 100644
index 000000000000..4c6c3a3fe3f8
--- /dev/null
+++ b/devel/p5-B-Debug/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1631042869
+SHA256 (B-Debug-1.26.tar.gz) = 8d6d3f5134f0ddd8dde68e6581f5b30b73b7db40fd28d076e4f6e5386f570d3a
+SIZE (B-Debug-1.26.tar.gz) = 17725
diff --git a/devel/p5-B-Debug/pkg-descr b/devel/p5-B-Debug/pkg-descr
new file mode 100644
index 000000000000..5f73533ce63f
--- /dev/null
+++ b/devel/p5-B-Debug/pkg-descr
@@ -0,0 +1,23 @@
+Walk Perl syntax tree, printing debug info about ops
+
+Without actually executing a Perl 5 program, you can walk its optree:
+
+    $ cat hello.pl
+    print "Hello world!\n";
+
+    $ perl -MO=Debug hello.pl
+    hello.pl syntax OK
+    LISTOP (0x55d1520414f8)
+    	op_ppaddr	0x55d1520414f8 LISTOP [OP_LEAVE]
+    	op_next		0x0
+    	op_sibling	0x0
+    	op_targ		1
+    	...
+    OP (0x55d1520414c8)
+    	op_ppaddr	0x55d1520414c8     OP [OP_ENTER]
+    	op_next		0x55d152041538    COP [OP_NEXTSTATE]
+    	op_sibling	0x55d152041538    COP [OP_NEXTSTATE]
+    	op_targ		0
+    	...
+
+WWW: https://metacpan.org/release/B-Debug
diff --git a/devel/p5-B-Debug/pkg-plist b/devel/p5-B-Debug/pkg-plist
new file mode 100644
index 000000000000..b9cf63482215
--- /dev/null
+++ b/devel/p5-B-Debug/pkg-plist
@@ -0,0 +1,2 @@
+%%PERL5_MAN3%%/B::Debug.3.gz
+%%SITE_PERL%%/B/Debug.pm



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