From f95a746038da12c6c79a566a616f44257281e64a Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 4 Nov 2006 14:43:11 +0000 Subject: [PATCH] Config::General is a configuration parser using a format similar to Apache. It is a regression depend for some module needed for catalyst. --- devel/p5-Config-General/Makefile | 27 +++++++++++++++++++++++++++ devel/p5-Config-General/distinfo | 4 ++++ devel/p5-Config-General/pkg/DESCR | 19 +++++++++++++++++++ devel/p5-Config-General/pkg/PLIST | 9 +++++++++ 4 files changed, 59 insertions(+) create mode 100644 devel/p5-Config-General/Makefile create mode 100644 devel/p5-Config-General/distinfo create mode 100644 devel/p5-Config-General/pkg/DESCR create mode 100644 devel/p5-Config-General/pkg/PLIST diff --git a/devel/p5-Config-General/Makefile b/devel/p5-Config-General/Makefile new file mode 100644 index 00000000000..5f08aeb3d08 --- /dev/null +++ b/devel/p5-Config-General/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/11/04 14:43:11 espie Exp $ + +COMMENT= "generic configuration parser, inspired by apache" + +DISTNAME= Config-General-2.31 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +HOMEPAGE= http://www.daemon.de/config-general/ + +# Same as perl +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +# the 2.31 tarball includes an extra copy of Extended, +# which is probably not intentional. +post-extract: + rm ${WRKSRC}/Extended.pm + +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Config/} + +CONFIGURE_STYLE=perl + +PKG_ARCH= * + +.include diff --git a/devel/p5-Config-General/distinfo b/devel/p5-Config-General/distinfo new file mode 100644 index 00000000000..d59120953e5 --- /dev/null +++ b/devel/p5-Config-General/distinfo @@ -0,0 +1,4 @@ +MD5 (Config-General-2.31.tar.gz) = 5d51723f6fb36cf943934b80c261d680 +RMD160 (Config-General-2.31.tar.gz) = 078c29b3b82ea8485c10915200fd883eed0194c9 +SHA1 (Config-General-2.31.tar.gz) = 4f6399506706a1bc244ccae7baafd81f800fda77 +SIZE (Config-General-2.31.tar.gz) = 45236 diff --git a/devel/p5-Config-General/pkg/DESCR b/devel/p5-Config-General/pkg/DESCR new file mode 100644 index 00000000000..8518e186c97 --- /dev/null +++ b/devel/p5-Config-General/pkg/DESCR @@ -0,0 +1,19 @@ +This module opens a config file and parses its contents +for you. After parsing the module returns a hash structure +which contains the representation of the config file. + +The format of config files supported by Config::General is +inspired by the well known apache config format, in fact, +this module is 100% read-compatible to apache configs, but +you can also just use simple name/value pairs in your config +files. + +In addition to the capabilities of a apache config file +the module supports some enhancements such as here-documents, +C-style comments or multiline options. It is also possible to +save the config back to disk, which makes the module a +perfect backend for configuration interfaces. + +It is possible to use variables in config files and there +also exists support for object oriented access to the +configuration. diff --git a/devel/p5-Config-General/pkg/PLIST b/devel/p5-Config-General/pkg/PLIST new file mode 100644 index 00000000000..f96056e3018 --- /dev/null +++ b/devel/p5-Config-General/pkg/PLIST @@ -0,0 +1,9 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/04 14:43:11 espie Exp $ +${P5SITE}/Config/ +${P5SITE}/Config/General/ +${P5SITE}/Config/General.pm +${P5SITE}/Config/General/Extended.pm +${P5SITE}/Config/General/Interpolated.pm +@man man/man3p/Config::General.3p +@man man/man3p/Config::General::Extended.3p +@man man/man3p/Config::General::Interpolated.3p