aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-ConfigReader
diff options
context:
space:
mode:
authorJames FitzGibbon <jfitz@FreeBSD.org>1996-10-24 07:56:23 +0000
committerJames FitzGibbon <jfitz@FreeBSD.org>1996-10-24 07:56:23 +0000
commit0748ffa3e972ef34e95b9f05027e813838519034 (patch)
treefe6d98fda53981a59ce7b556873a8aea5c2fd762 /devel/p5-ConfigReader
parent8b761b60a2ea9bc46733059777442a0f57966889 (diff)
downloadports-0748ffa3e972ef34e95b9f05027e813838519034.tar.gz
ports-0748ffa3e972ef34e95b9f05027e813838519034.zip
perl5 module to read directives from a configuration file.
Notes
Notes: svn path=/head/; revision=4094
Diffstat (limited to 'devel/p5-ConfigReader')
-rw-r--r--devel/p5-ConfigReader/Makefile32
-rw-r--r--devel/p5-ConfigReader/distinfo1
-rw-r--r--devel/p5-ConfigReader/pkg-comment1
-rw-r--r--devel/p5-ConfigReader/pkg-descr22
-rw-r--r--devel/p5-ConfigReader/pkg-plist5
5 files changed, 61 insertions, 0 deletions
diff --git a/devel/p5-ConfigReader/Makefile b/devel/p5-ConfigReader/Makefile
new file mode 100644
index 000000000000..3fde9842864f
--- /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 000000000000..aff362e265e8
--- /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 000000000000..de92d5036a8b
--- /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 000000000000..b89adc83c8e1
--- /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 000000000000..fd6723c3e967
--- /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