From ab681b31166802d957aace9bf76ee5d50270f452 Mon Sep 17 00:00:00 2001 From: Anton Berezin Date: Wed, 10 Oct 2001 13:07:02 +0000 Subject: Add p5-Devel-Constants, a Perl module to translate constants back to their named symbols. --- devel/Makefile | 1 + devel/p5-Devel-Constants/Makefile | 22 ++++++++++++++++++++++ devel/p5-Devel-Constants/distinfo | 1 + devel/p5-Devel-Constants/pkg-comment | 1 + devel/p5-Devel-Constants/pkg-descr | 14 ++++++++++++++ devel/p5-Devel-Constants/pkg-plist | 5 +++++ 6 files changed, 44 insertions(+) create mode 100644 devel/p5-Devel-Constants/Makefile create mode 100644 devel/p5-Devel-Constants/distinfo create mode 100644 devel/p5-Devel-Constants/pkg-comment create mode 100644 devel/p5-Devel-Constants/pkg-descr create mode 100644 devel/p5-Devel-Constants/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index df2ffcb82338..cb598cd9dd6e 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -324,6 +324,7 @@ SUBDIR += p5-Date-Manip SUBDIR += p5-Date-Pcalc SUBDIR += p5-DateConvert + SUBDIR += p5-Devel-Constants SUBDIR += p5-Devel-DProf SUBDIR += p5-Devel-Modlist SUBDIR += p5-Devel-Peek diff --git a/devel/p5-Devel-Constants/Makefile b/devel/p5-Devel-Constants/Makefile new file mode 100644 index 000000000000..093455ac8a04 --- /dev/null +++ b/devel/p5-Devel-Constants/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: devel/p5-Devel-Constants +# Date created: 10 October 2001 +# Whom: tobez +# +# $FreeBSD$ +# + +PORTNAME= Devel-Constants +PORTVERSION= 0.20 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Devel +PKGNAMEPREFIX= p5- + +MAINTAINER= tobez@FreeBSD.org + +PERL_CONFIGURE= yes + +MAN3= Devel::Constants.3 +MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} + +.include diff --git a/devel/p5-Devel-Constants/distinfo b/devel/p5-Devel-Constants/distinfo new file mode 100644 index 000000000000..e027be339e32 --- /dev/null +++ b/devel/p5-Devel-Constants/distinfo @@ -0,0 +1 @@ +MD5 (Devel-Constants-0.20.tar.gz) = b003f5b5256ce9d9a4c2f905a4b7f834 diff --git a/devel/p5-Devel-Constants/pkg-comment b/devel/p5-Devel-Constants/pkg-comment new file mode 100644 index 000000000000..03ad3730a5be --- /dev/null +++ b/devel/p5-Devel-Constants/pkg-comment @@ -0,0 +1 @@ +Perl module to translate constants back to their named symbols diff --git a/devel/p5-Devel-Constants/pkg-descr b/devel/p5-Devel-Constants/pkg-descr new file mode 100644 index 000000000000..80c28ee360cb --- /dev/null +++ b/devel/p5-Devel-Constants/pkg-descr @@ -0,0 +1,14 @@ +Declaring constants is very convenient for writing programs, but as +they're often inlined by Perl, retrieving their symbolic names can be +tricky. This is made worse with lowlevel modules that use constants for +bit-twiddling. + +Devel::Constants makes this much more manageable. + +It silently wraps around the constant module, intercepting all constant +declarations. It builds a hash, associating the values to their names. +The names can then be retrieved as necessary. + +WWW: http://search.cpan.org/search?dist=Devel-Constants + +-- Anton diff --git a/devel/p5-Devel-Constants/pkg-plist b/devel/p5-Devel-Constants/pkg-plist new file mode 100644 index 000000000000..44afa9a1fd04 --- /dev/null +++ b/devel/p5-Devel-Constants/pkg-plist @@ -0,0 +1,5 @@ +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Devel/Constants/.packlist +lib/perl5/site_perl/%%PERL_VER%%/Devel/Constants.pm +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Devel/Constants +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Devel 2>/dev/null || true +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Devel 2>/dev/null || true -- cgit v1.2.3