devel/p5-ConfigReader 0.5_2 FreeBSD
Perl5 module to read directives from a configuration file
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- devel, perl5
- Package size
- 8.1 KiB, 28.1 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-ConfigReader | 0.5_2 |
| DragonFly | devel/p5-ConfigReader | 0.5_2 |
Install
Binary package:
pkg install p5-ConfigReader
From the ports tree:
cd /usr/ports/devel/p5-ConfigReader/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-ConfigReader>0:devel/p5-ConfigReader
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.5_2 | 0.5_2 | 0.5_2 | 0.5_2 | 0.5_2 |
| FreeBSD:14:quarterly | 0.5_2 | 0.5_2 | n/a | 0.5_2 | 0.5_2 |
| FreeBSD:15:latest | 0.5_2 | 0.5_2 | n/a | 0.5_2 | 0.5_2 |
| FreeBSD:15:quarterly | 0.5_2 | 0.5_2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.5_2 | 0.5_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 4
- %%SITE_PERL%%/ConfigReader.pod
- %%SITE_PERL%%/ConfigReader/DirectiveStyle.pm
- %%SITE_PERL%%/ConfigReader/Spec.pm
- %%SITE_PERL%%/ConfigReader/Values.pm
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| ConfigReader-0.5.tar.gz | 17592 | bf1d4d3af02255f77c0ce96865e6fcb96e258f5ae4eaa28fc27c920f3d3de71f |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.