|$ports = tie my %port, $class, $filename||
Read and parse an INDEX file. $filename is the name of the file
containing the index. If undefined, /usr/ports/INDEX is used.
$class should be the name of the class (FreeBSD::Ports) or another FreeBSD::Ports object to be cloned.
%port is a hash whose keys are the names of the ports within the index. The value of each key is a FreeBSD::Ports::Port object.
$ports is an object which can be accessed using the methods within this class.
|$ports->maintainer($email)||Selects only those ports whose maintainers e-mail address is $email. Addresses are matched case insensitively.|
|$ports->primary_category($category_name)||Selects only those ports whose primary category is $category_name. The primary category is the first category in which a port is listed. This represents the directory under /usr/ports in which a port is stored. Category names are matched case insensitively.|
|$ports->category($category_name)||Selects only those ports which are present in the category named $category_name. In this case, category names are matched case sensitively.|
Selects only those ports which have a run dependency on the port
represented by $port.
$port is either the name of a port or a FreeBSD::Ports::Port object.
|$ports->build_depends($port)||Selects only those ports which have a build dependency on $port.|
|$ports->depends($port)||Selects those ports which have any type of dependency on $port.|
Sorts the selected ports. $method specifies how the ports should be
sorted. alpha means the ports should be sorted alphabetically, from
A to Z. rev_alpha means the ports should be sorted alphabetically in
reverse, from Z to A. Sorting is performed case sensitively.
|$ports->match($term, $field, $insensitive)||
Selects only those ports where $field matches $term. The values
which can be used for $field are the same as those used for the
sort method. However, for this method COMMENT is used if
$field is undefined.
$term is evaluated as a regular expression. If $insensitive is defined, the expression is evaluated case insensitively. If undefined, case sensitive evalutaion is used.
This module is written by Tom Hukins <tom@FreeBSD.org>.
Thanks to Nik Clayton, Martin Heinen and Lars Thegler for encouragement, assistance and patches.
This module is distributed under the same license as FreeBSD <http://www.FreeBSD.org/copyright/freebsd-license.html>.
Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 367: You forgot a =back before =head1
|perl v5.20.3||PORTS (3)||2004-01-13|