diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2004-04-01 16:46:02 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2004-04-01 16:46:02 +0000 |
commit | c08819178ee5e4cda2a51b872fecfe0d2893d10a (patch) | |
tree | fbca3e079b625595be6e487c6f3143b8235d8e2c /devel/p5-CPAN-DistnameInfo | |
parent | 1e91ae17399a23465b3342f3a5a97463a7679b40 (diff) |
Add p5-CPAN-DistnameInfo 0.03, extract distribution name and version
from a CPAN filename.
PR: ports/64833
Submitted by: Lars Thegler <lars@thegler.dk>
Notes
Notes:
svn path=/head/; revision=105893
Diffstat (limited to 'devel/p5-CPAN-DistnameInfo')
-rw-r--r-- | devel/p5-CPAN-DistnameInfo/Makefile | 29 | ||||
-rw-r--r-- | devel/p5-CPAN-DistnameInfo/distinfo | 2 | ||||
-rw-r--r-- | devel/p5-CPAN-DistnameInfo/pkg-descr | 6 | ||||
-rw-r--r-- | devel/p5-CPAN-DistnameInfo/pkg-plist | 5 |
4 files changed, 42 insertions, 0 deletions
diff --git a/devel/p5-CPAN-DistnameInfo/Makefile b/devel/p5-CPAN-DistnameInfo/Makefile new file mode 100644 index 000000000000..d5e4f814e96e --- /dev/null +++ b/devel/p5-CPAN-DistnameInfo/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: p5-CPAN-DistnameInfo +# Date created: Mar 27 2004 +# Whom: Lars Thegler <lars@thegler.dk> +# +# $FreeBSD$ + +PORTNAME= CPAN-DistnameInfo +PORTVERSION= 0.03 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= lars@thegler.dk +COMMENT= Extract distribution name and version from a CPAN filename + +PERL_CONFIGURE= yes + +MAN3= CPAN::DistnameInfo.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} <= 500503 +# make PREFIX-clean under perl 5.005_03 +post-configure: + @${PERL} -pi -e 's,/usr/local/,\$$(PREFIX)/,g' ${WRKSRC}/Makefile +.endif + +.include <bsd.port.post.mk> diff --git a/devel/p5-CPAN-DistnameInfo/distinfo b/devel/p5-CPAN-DistnameInfo/distinfo new file mode 100644 index 000000000000..3ec3fb7cae0b --- /dev/null +++ b/devel/p5-CPAN-DistnameInfo/distinfo @@ -0,0 +1,2 @@ +MD5 (CPAN-DistnameInfo-0.03.tar.gz) = 23ef62999ea4a6ad70c36d0ee034323d +SIZE (CPAN-DistnameInfo-0.03.tar.gz) = 25885 diff --git a/devel/p5-CPAN-DistnameInfo/pkg-descr b/devel/p5-CPAN-DistnameInfo/pkg-descr new file mode 100644 index 000000000000..70db49c1e299 --- /dev/null +++ b/devel/p5-CPAN-DistnameInfo/pkg-descr @@ -0,0 +1,6 @@ +CPAN::DistnameInfo uses heuristics that have been learnt by +http://search.cpan.org/ to extract the distribution name and version +from filenames and also report if the version is to be treated as +a developer release. + +WWW: http://search.cpan.org/dist/CPAN-DistnameInfo/ diff --git a/devel/p5-CPAN-DistnameInfo/pkg-plist b/devel/p5-CPAN-DistnameInfo/pkg-plist new file mode 100644 index 000000000000..61291852d880 --- /dev/null +++ b/devel/p5-CPAN-DistnameInfo/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/CPAN/DistnameInfo.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/CPAN/DistnameInfo/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/CPAN/DistnameInfo +@unexec rmdir %D/%%SITE_PERL%%/CPAN 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/CPAN 2>/dev/null || true |