NAME

CPANPLUS::Dist::Gentoo::Atom - Gentoo atom object.

VERSION

Version 0.12

DESCRIPTION

This class models Gentoo atoms.

METHODS

new category => $category, name => $name [, version => $version, range => $range, ebuild => $ebuild ]

Creates a new CPANPLUS::Dist::Gentoo::Atom object from the supplied $category, $name, $version, $range and $ebuild.

new_from_ebuild $ebuild

Creates a new CPANPLUS::Dist::Gentoo::Atom object by inferring the category, name and version from the given $ebuild

category

Read-only accessor to the atom category.

name

Read-only accessor to the atom name.

version

Read-only accessor to the CPANPLUS::Dist::Gentoo::Version object associated with the atom.

range

Read-only accessor to the atom range.

ebuild

Read-only accessor to the path of an optional ebuild associated with the atom.

qualified_name

Returns the qualified name for the atom, i.e. $category/$name.

and @atoms

Compute the ranged atom representing the logical AND between @atoms with the same category and name.

fold @atoms

Returns a list built from @atoms but where there's only one atom for a given category and name.

This class provides overloaded methods for numerical comparison, string comparison and stringification.

SEE ALSO

CPANPLUS::Dist::Gentoo, CPANPLUS::Dist::Gentoo::Version.

AUTHOR

Vincent Pit, <perl at profvince.com>, http://www.profvince.com.

You can contact me by mail or on irc.perl.org (vincent).

BUGS

Please report any bugs or feature requests to bug-cpanplus-dist-gentoo at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CPANPLUS-Dist-Gentoo. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc CPANPLUS::Dist::Gentoo

COPYRIGHT & LICENSE

Copyright 2009,2010,2011,2012 Vincent Pit, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.