diff options
author | aaron <aaron@FreeBSD.org> | 2006-06-05 08:00:35 +0800 |
---|---|---|
committer | aaron <aaron@FreeBSD.org> | 2006-06-05 08:00:35 +0800 |
commit | c1287caee69d022caec917869077d6afe17c3aca (patch) | |
tree | 025361eef0e2b4e51023fadd6b397ed0672aae6d /devel | |
parent | 99b06d8294c7e4a2c7d3f253e14701b523d8988a (diff) | |
download | freebsd-ports-gnome-c1287caee69d022caec917869077d6afe17c3aca.tar.gz freebsd-ports-gnome-c1287caee69d022caec917869077d6afe17c3aca.tar.zst freebsd-ports-gnome-c1287caee69d022caec917869077d6afe17c3aca.zip |
- Update from v1.05 to v1.07
- Expand pkg-descr
revision 1.7
date: 2006/03/06 22:18:41; author: nwiger; state: Exp; lines: +140 -76
- changed defines to MixedCase for DataDumper consistency
- added @Define array that's pre-parsed
- wrapped everything inside an eval'ed package for safety
----------------------------
revision 1.6
date: 2006/02/26 18:52:03; author: nwiger; state: Exp; lines: +47 -15
- fixed internal $Var substitution errors
- Added $ARRAYS setting to parse bourne array[n] syntax
PR: ports/98241
Submitted by: aaron
Reviewed by: maintainer
Approved by: maintainer, tobez (implicit)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-Config-Fast/Makefile | 4 | ||||
-rw-r--r-- | devel/p5-Config-Fast/distinfo | 6 | ||||
-rw-r--r-- | devel/p5-Config-Fast/pkg-descr | 42 |
3 files changed, 45 insertions, 7 deletions
diff --git a/devel/p5-Config-Fast/Makefile b/devel/p5-Config-Fast/Makefile index 66c022542573..9d8954d4556a 100644 --- a/devel/p5-Config-Fast/Makefile +++ b/devel/p5-Config-Fast/Makefile @@ -6,7 +6,7 @@ # PORTNAME= Config-Fast -PORTVERSION= 1.05 +PORTVERSION= 1.07 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Config @@ -22,7 +22,7 @@ MAN3= Config::Fast.3 .include <bsd.port.pre.mk> .if ${PERL_LEVEL} < 500600 -IGNORE= needs at least perl 5.6 to build +IGNORE= needs at least perl 5.6 to run .endif .include <bsd.port.post.mk> diff --git a/devel/p5-Config-Fast/distinfo b/devel/p5-Config-Fast/distinfo index 22d240909961..73a1f4211332 100644 --- a/devel/p5-Config-Fast/distinfo +++ b/devel/p5-Config-Fast/distinfo @@ -1,3 +1,3 @@ -MD5 (Config-Fast-1.05.tar.gz) = 8fc7c2445a13e45296ee8aea6c940b06 -SHA256 (Config-Fast-1.05.tar.gz) = cb750116bb4bc8fff8ab375ebf1da672e4fd16fd309c02495009b5572fdc61cb -SIZE (Config-Fast-1.05.tar.gz) = 8292 +MD5 (Config-Fast-1.07.tar.gz) = 7228e3419b50d74b07d3033d9ca6928e +SHA256 (Config-Fast-1.07.tar.gz) = 7b03043b2a722384af570cea7083f68c437744cea902cfa89ed00b6821cc5d8f +SIZE (Config-Fast-1.07.tar.gz) = 10020 diff --git a/devel/p5-Config-Fast/pkg-descr b/devel/p5-Config-Fast/pkg-descr index 245e50daef2a..f4c0ec9e6ded 100644 --- a/devel/p5-Config-Fast/pkg-descr +++ b/devel/p5-Config-Fast/pkg-descr @@ -1,4 +1,42 @@ -This Config::Fast module. This allow extremely fast configuration files to -be parsed. +This module is designed to provide an extremely lightweight way to parse +moderately complex configuration files. As such, it exports a single +function - fastconfig() - and does not provide any OO access methods. +Still, it is fairly full-featured. + +Here's how it works: + + %cf = fastconfig($file, $delim); + +Basically, the fastconfig() function returns a hash of keys and values +based on the directives in your configuration file. By default, directives +and values are separated by whitespace in the config file, but this can be +easily changed with the delimiter argument (see below). + +When the configuration file is read, its modification time is first +checked and the results cached. On each call to fastconfig(), if the +config file has been changed, then the file is reread. Otherwise, the +cached results are returned automatically. This makes this module great +for mod_perl modules and scripts, one of the primary reasons I wrote it. +Simply include this at the top of your script or inside of your +constructor function: + + my %cf = fastconfig('/path/to/config/file.conf'); + +If the file argument is omitted, then fastconfig() looks for a file named +$0.conf in the ../etc directory relative to the executable. For example, +if you ran: + + /usr/local/bin/myapp + +Then fastconfig() will automatically look for: + + /usr/local/etc/myapp.conf + +This is great if you're really lazy and always in a hurry, like I am. + +If this doesn't work for you, simply supply a filename manually. Note that +filename generation does not work in mod_perl, so you'll need to supply a +filename manually. WWW: http://search.cpan.org/dist/Config-Fast/ +Author: Nathan Wiger <nate@wiger.org> |