From d455aa29424b49be9a5c7920b3191d87722ecd56 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold <mat@FreeBSD.org> Date: Mon, 10 May 2004 15:10:40 +0000 Subject: Add p5-File-Grep 0.01, perl Module that Find matches to a pattern in files or function. PR: ports/66390 Submitted by: Xavier Beaudouin <kiwi@oav.net> --- devel/Makefile | 1 + devel/p5-File-Grep/Makefile | 28 ++++++++++++++++++++++++++++ devel/p5-File-Grep/distinfo | 2 ++ devel/p5-File-Grep/pkg-descr | 4 ++++ devel/p5-File-Grep/pkg-plist | 5 +++++ 5 files changed, 40 insertions(+) create mode 100644 devel/p5-File-Grep/Makefile create mode 100644 devel/p5-File-Grep/distinfo create mode 100644 devel/p5-File-Grep/pkg-descr create mode 100644 devel/p5-File-Grep/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 086a316425a8..2024b00e3e63 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -743,6 +743,7 @@ SUBDIR += p5-File-Find-Rule SUBDIR += p5-File-Flat SUBDIR += p5-File-Flock + SUBDIR += p5-File-Grep SUBDIR += p5-File-Lock SUBDIR += p5-File-MMagic SUBDIR += p5-File-NCopy diff --git a/devel/p5-File-Grep/Makefile b/devel/p5-File-Grep/Makefile new file mode 100644 index 000000000000..5323bdc1f5dd --- /dev/null +++ b/devel/p5-File-Grep/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: File-Grep +# Date created: 08 May 2004 +# Whom: Xavier Beaudouin <kiwi@oav.net> +# +# $FreeBSD$ + +PORTNAME= File-Grep +PORTVERSION= 0.01 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= File +PKGNAMEPREFIX= p5- + +MAINTAINER= kiwi@oav.net +COMMENT= Perl Module that Find matches to a pattern in files or function + +PERL_CONFIGURE= yes + +MAN3= File::Grep.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +post-patch: + @${PERL} -pi -e 's/^our (\S+)/use vars qw{$$1};$$1/g' ${WRKSRC}/Grep.pm +.endif + +.include <bsd.port.post.mk> diff --git a/devel/p5-File-Grep/distinfo b/devel/p5-File-Grep/distinfo new file mode 100644 index 000000000000..cd559744328b --- /dev/null +++ b/devel/p5-File-Grep/distinfo @@ -0,0 +1,2 @@ +MD5 (File-Grep-0.01.tar.gz) = dbb9c99036208f3897fe81415c8d4ac9 +SIZE (File-Grep-0.01.tar.gz) = 4649 diff --git a/devel/p5-File-Grep/pkg-descr b/devel/p5-File-Grep/pkg-descr new file mode 100644 index 000000000000..9b624b74951b --- /dev/null +++ b/devel/p5-File-Grep/pkg-descr @@ -0,0 +1,4 @@ +The File::Grep module is designed for find matches to a pattern in +a series of files and related functions. + +WWW: http://search.cpan.org/dist/File-Grep/ diff --git a/devel/p5-File-Grep/pkg-plist b/devel/p5-File-Grep/pkg-plist new file mode 100644 index 000000000000..4c165cb89e6d --- /dev/null +++ b/devel/p5-File-Grep/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/File/Grep.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Grep/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Grep +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/File 2>/dev/null || true -- cgit v1.2.3