FreeBSD::Ports::INDEXhash - Generates a hash out of the FreeBSD Ports index file.
Version 1.0.0
Quick summary of what the module does.
Perhaps a little code snippet.
use FreeBSD::Ports::INDEXhash qw/INDEXhash/; my %hash=INDEXhash(); my @keys=keys(%hash); my $keysInt=0; while(defined($keys[$keysInt])){ print "Name: ".$keys[$keysInt]."\n". "Info: ".$hash{$keys[$keysInt]}{info}."\n". "Prefix: ".$hash{$keys[$keysInt]}{prefix}."\n". "Maintainer: ".$hash{$keys[$keysInt]}{maintainer}."\n". "WWW: ".$hash{$keys[$keysInt]}{www}."\n". "Categories: ".join(" ", @{$hash{$keys[$keysInt]}{categories}})."\n". "E-deps: ".join(" ", @{$hash{$keys[$keysInt]}{Edeps}})."\n". "B-deps: ".join(" ", @{$hash{$keys[$keysInt]}{Bdeps}})."\n". "P-deps: ".join(" ", @{$hash{$keys[$keysInt]}{Pdeps}})."\n". "R-deps: ".join(" ", @{$hash{$keys[$keysInt]}{Rdeps}})."\n". "F-deps: ".join(" ", @{$hash{$keys[$keysInt]}{Fdeps}})."\n". "\n"; $keysInt++; };
A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.
This parses the FreeBSD ports index file and a hash of it. Upon error it returns undef.
If a path to it is not passed to this function, it chooses the file automatically. The PORTSDIR enviromental varaiable is respected if using automatically.
The keys of the hash are names of the ports. Each entry is then another hash. See the list of keys below for the description of each one.
This is a short description of the port.
This is the install prefix the port will try to use.
This is the email address for the port's maintainer.
This is the web site of a port inquestion.
This is the extract depends of a port. This is a array.
This is the build depends for the port. This is a array.
This is the package depends for a port. This is a array.
This is the run depends of a port. This is a array.
This is the fetch depends of a port. This is a array.
This is all the categories a specific port falls under. This is a array.
Zane C. Bowers, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-freebsd-ports-indexhash at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=FreeBSD-Ports-INDEXhash. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-freebsd-ports-indexhash at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc FreeBSD::Ports::INDEXhash
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=FreeBSD-Ports-INDEXhash
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/FreeBSD-Ports-INDEXhash
CPAN Ratings
http://cpanratings.perl.org/d/FreeBSD-Ports-INDEXhash
Search CPAN
http://search.cpan.org/dist/FreeBSD-Ports-INDEXhash
Copyright 2008 Zane C. Bowers, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install FreeBSD::Ports::INDEXhash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FreeBSD::Ports::INDEXhash
CPAN shell
perl -MCPAN -e shell install FreeBSD::Ports::INDEXhash
For more information on module installation, please visit the detailed CPAN module installation guide.