diff options
author | jfitz <jfitz@FreeBSD.org> | 1996-10-24 15:56:23 +0800 |
---|---|---|
committer | jfitz <jfitz@FreeBSD.org> | 1996-10-24 15:56:23 +0800 |
commit | e9652393d57a5e36cf03b6b2e7db1e26b22ce8ad (patch) | |
tree | 6aae6b874928542ac3095097856e91141c8034b5 /devel | |
parent | 6507a8a04da995e95b9dde6e521c2f7966a05b74 (diff) | |
download | freebsd-ports-graphics-e9652393d57a5e36cf03b6b2e7db1e26b22ce8ad.tar.gz freebsd-ports-graphics-e9652393d57a5e36cf03b6b2e7db1e26b22ce8ad.tar.zst freebsd-ports-graphics-e9652393d57a5e36cf03b6b2e7db1e26b22ce8ad.zip |
perl5 module to read directives from a configuration file.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-ConfigReader/Makefile | 32 | ||||
-rw-r--r-- | devel/p5-ConfigReader/distinfo | 1 | ||||
-rw-r--r-- | devel/p5-ConfigReader/pkg-comment | 1 | ||||
-rw-r--r-- | devel/p5-ConfigReader/pkg-descr | 22 | ||||
-rw-r--r-- | devel/p5-ConfigReader/pkg-plist | 5 |
5 files changed, 61 insertions, 0 deletions
diff --git a/devel/p5-ConfigReader/Makefile b/devel/p5-ConfigReader/Makefile new file mode 100644 index 00000000000..3fde9842864 --- /dev/null +++ b/devel/p5-ConfigReader/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: p5-ConfigReader +# Version required: 0.5 +# Date created: October 20th 1996 +# Whom: James FitzGibbon <jfitz@FreeBSD.org> +# +# $Id$ +# + +DISTNAME= ConfigReader-0.5 +PKGNAME= p5-ConfigReader-0.5 +CATEGORIES+= devel +MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/ConfigReader/ \ + ftp://ftp.cdrom.com/pub/perl/CPAN/modules/by-module/ConfigReader/ \ + ftp://ftp.cis.ufl.edu/pub/perl/CPAN/modules/by-module/ConfigReader/ \ + ftp://ftp.leo.org/pub/comp/programming/languages/perl/CPAN/modules/by-module/ConfigReader/ \ + ftp://ftp.demon.co.uk/pub/mirrors/perl/CPAN/modules/by-module/ConfigReader/ \ + ftp://ftp.lab.kdd.co.jp/lang/perl/CPAN/modules/by-module/ConfigReader/ + +MAINTAINER= jfitz@FreeBSD.ORG + +BUILD_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5 + +NO_BUILD= YES + +do-install: + @ ${MKDIR} -p ${PREFIX}/lib/perl5/site_perl/ConfigReader/ + @ ${INSTALL_DATA} ${WRKSRC}/DirectiveStyle.pm ${PREFIX}/lib/perl5/site_perl/ConfigReader/ + @ ${INSTALL_DATA} ${WRKSRC}/Spec.pm ${PREFIX}/lib/perl5/site_perl/ConfigReader/ + @ ${INSTALL_DATA} ${WRKSRC}/Values.pm ${PREFIX}/lib/perl5/site_perl/ConfigReader/ + @ ${INSTALL_DATA} ${WRKSRC}/ConfigReader.pod ${PREFIX}/lib/perl5/site_perl/ + +.include <bsd.port.mk> diff --git a/devel/p5-ConfigReader/distinfo b/devel/p5-ConfigReader/distinfo new file mode 100644 index 00000000000..aff362e265e --- /dev/null +++ b/devel/p5-ConfigReader/distinfo @@ -0,0 +1 @@ +MD5 (ConfigReader-0.5.tar.gz) = 469a77797740e7dd70ab902d0ac8081d diff --git a/devel/p5-ConfigReader/pkg-comment b/devel/p5-ConfigReader/pkg-comment new file mode 100644 index 00000000000..de92d5036a8 --- /dev/null +++ b/devel/p5-ConfigReader/pkg-comment @@ -0,0 +1 @@ +perl5 module to read directives from a configuration file. diff --git a/devel/p5-ConfigReader/pkg-descr b/devel/p5-ConfigReader/pkg-descr new file mode 100644 index 00000000000..b89adc83c8e --- /dev/null +++ b/devel/p5-ConfigReader/pkg-descr @@ -0,0 +1,22 @@ + The ConfigReader library is a set of classes which reads + directives from a configuration file. The library is + completely object oriented, and it is envisioned that + parsers for new styles of configuration files can be + easily added. + + ConfigReader::Spec encapsulates a specification for + configuration directives. You can specify which + directives can be in the configuration file, aliases for + the directive, whether the directive is required or has a + default value, and how to parse the directive value. + + Here's an example of how one directive might be specified: + + required $spec 'HomePage', 'new URI::URL'; + + This defines a required directive called 'HomePage'. To + parse the value from the configuration file, the + URI::URL::new() method will be called with the string + value as its argument. + + use 'perldoc ConfigReader' for more information. diff --git a/devel/p5-ConfigReader/pkg-plist b/devel/p5-ConfigReader/pkg-plist new file mode 100644 index 00000000000..fd6723c3e96 --- /dev/null +++ b/devel/p5-ConfigReader/pkg-plist @@ -0,0 +1,5 @@ +lib/perl5/site_perl/ConfigReader/DirectiveStyle.pm +lib/perl5/site_perl/ConfigReader/Spec.pm +lib/perl5/site_perl/ConfigReader/Values.pm +lib/perl5/site_perl/ConfigReader.pod +@dirrm lib/perl5/site_perl/ConfigReader |