diff options
author | abs <abs@pkgsrc.org> | 2009-01-19 18:02:57 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2009-01-19 18:02:57 +0000 |
commit | 726869df2ccdc99ea1047e76fd0d8b79abc4bdf1 (patch) | |
tree | fc9514267e14635da2730de91ada600eb7c03c67 /devel/p5-B-Hooks-Parser | |
parent | f29838bfd974c25436181c88b71845a71f251216 (diff) | |
download | pkgsrc-726869df2ccdc99ea1047e76fd0d8b79abc4bdf1.tar.gz |
Added devel/p5-B-Hooks-Parser version 0.08
This module provides an API for parts of the perl parser. It can
be used to modify code while it's being parsed.
Diffstat (limited to 'devel/p5-B-Hooks-Parser')
-rw-r--r-- | devel/p5-B-Hooks-Parser/DESCR | 2 | ||||
-rw-r--r-- | devel/p5-B-Hooks-Parser/Makefile | 27 | ||||
-rw-r--r-- | devel/p5-B-Hooks-Parser/PLIST | 2 | ||||
-rw-r--r-- | devel/p5-B-Hooks-Parser/buildlink3.mk | 21 | ||||
-rw-r--r-- | devel/p5-B-Hooks-Parser/distinfo | 6 | ||||
-rw-r--r-- | devel/p5-B-Hooks-Parser/patches/patch-aa | 18 |
6 files changed, 76 insertions, 0 deletions
diff --git a/devel/p5-B-Hooks-Parser/DESCR b/devel/p5-B-Hooks-Parser/DESCR new file mode 100644 index 00000000000..e44e06bf876 --- /dev/null +++ b/devel/p5-B-Hooks-Parser/DESCR @@ -0,0 +1,2 @@ +This module provides an API for parts of the perl parser. It can +be used to modify code while it's being parsed. diff --git a/devel/p5-B-Hooks-Parser/Makefile b/devel/p5-B-Hooks-Parser/Makefile new file mode 100644 index 00000000000..d58767155ab --- /dev/null +++ b/devel/p5-B-Hooks-Parser/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/01/19 18:02:57 abs Exp $ +# + +DISTNAME= B-Hooks-Parser-0.08 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=B/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/B-Hooks-Parser/ +COMMENT= Interface to perls parser variables + +BUILD_DEPENDS+= p5-ExtUtils-Depends>0:../../devel/p5-ExtUtils-Depends +DEPENDS+= p5-parent>0:../../devel/p5-parent + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= c +PERL5_PACKLIST= auto/B/Hooks/Parser/.packlist + +post-install: + ${INSTALL_DATA_DIR} ${DESTDIR}/${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/hook_parser.h ${DESTDIR}/${PREFIX}/include + +.include "../../devel/p5-B-Hooks-OP-Check/buildlink3.mk" +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-B-Hooks-Parser/PLIST b/devel/p5-B-Hooks-Parser/PLIST new file mode 100644 index 00000000000..1644f3cbd06 --- /dev/null +++ b/devel/p5-B-Hooks-Parser/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/19 18:02:57 abs Exp $ +include/hook_parser.h diff --git a/devel/p5-B-Hooks-Parser/buildlink3.mk b/devel/p5-B-Hooks-Parser/buildlink3.mk new file mode 100644 index 00000000000..fa2b3af1cc2 --- /dev/null +++ b/devel/p5-B-Hooks-Parser/buildlink3.mk @@ -0,0 +1,21 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/01/19 18:02:57 abs Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +P5_B_HOOKS_PARSER_BUILDLINK3_MK:= ${P5_B_HOOKS_PARSER_BUILDLINK3_MK}+ + +BUILDLINK_DEPMETHOD.p5-B-Hooks-Parser?= build + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= p5-B-Hooks-Parser +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Np5-B-Hooks-Parser} +BUILDLINK_PACKAGES+= p5-B-Hooks-Parser +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}p5-B-Hooks-Parser + +.if ${P5_B_HOOKS_PARSER_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.p5-B-Hooks-Parser+= p5-B-Hooks-Parser>=0.08 +BUILDLINK_PKGSRCDIR.p5-B-Hooks-Parser?= ../../devel/p5-B-Hooks-Parser +.endif # P5_B_HOOKS_PARSER_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/devel/p5-B-Hooks-Parser/distinfo b/devel/p5-B-Hooks-Parser/distinfo new file mode 100644 index 00000000000..3dac48ac960 --- /dev/null +++ b/devel/p5-B-Hooks-Parser/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/01/19 18:02:57 abs Exp $ + +SHA1 (B-Hooks-Parser-0.08.tar.gz) = 3566f9e7c6c7adbedab5af3da9e19cb6de60243d +RMD160 (B-Hooks-Parser-0.08.tar.gz) = c1eb5205510913d301d32fe0c6894d5e19223032 +Size (B-Hooks-Parser-0.08.tar.gz) = 65716 bytes +SHA1 (patch-aa) = 19a6f2dab8be6f3f6d5a562223740c1ce394ee72 diff --git a/devel/p5-B-Hooks-Parser/patches/patch-aa b/devel/p5-B-Hooks-Parser/patches/patch-aa new file mode 100644 index 00000000000..5b76c7f5045 --- /dev/null +++ b/devel/p5-B-Hooks-Parser/patches/patch-aa @@ -0,0 +1,18 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/01/19 18:02:57 abs Exp $ + +Do not error out if perl was built without PERL_MALLOC_WRAP + +--- stolen_chunk_of_toke.c.orig 2009-01-19 15:42:56.000000000 +0000 ++++ stolen_chunk_of_toke.c +@@ -39,7 +39,10 @@ STATIC char* S_scan_word(pTHX_ char * + #define DPTR2FPTR(t,p) ((t)PTR2nat(p)) /* data pointer to function pointer */ + #define FPTR2DPTR(t,p) ((t)PTR2nat(p)) /* function pointer to data pointer */ + #define PTR2nat(p) (PTRV)(p) /* pointer to integer of PTRSIZE */ +-#define MEM_WRAP_CHECK_(n,t) MEM_WRAP_CHECK(n,t), ++ ++#ifdef PERL_MALLOC_WRAP ++# define MEM_WRAP_CHECK_(n,t) MEM_WRAP_CHECK(n,t), ++#endif + + /* On MacOS, respect nonbreaking spaces */ + #ifdef MACOS_TRADITIONAL |