Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
Gentoo::Overlay::Package - Class for Package's in Gentoo Overlays
VERSION
version 0.03000000
SYNOPSIS
my $package = Overlay::Package->new(
name => 'Moose',
category => $category_object,
);
$package->exists() # Moose exists
print $package->pretty_name() # dev-perl/Moose::gentoo
print $package->path() # /usr/portage/dev-perl/Moose
::Package->is_blacklisted("..") # '..' is not a valid package name
::Package->is_blacklisted('metadata.xml') # is not a valid directory
METHODS
exists
Does the Package exist, and is it a directory?
$package->exists();
is_blacklisted
Does the package name appear on a blacklist meaning auto-scan should ignore this?
::Package->is_blacklisted('..') # true
pretty_name
A pretty form of the name
$package->pretty_name # dev-perl/Moose::gentoo
ATTRIBUTES
name
The packages Short name.
isa => Gentoo__Overlay_PackageName, required, ro
category
The category object that this package is in.
isa => Gentoo__Overlay_Category, required, ro
accessors => overlay
path
The full path to the package.
isa => Dir, lazy, ro
"Dir" in MooseX::Types::Path::Class
ATTRIBUTE ACCESSORS
overlay
$package->overlay -> Gentoo::Overlay::Category->overlay
"overlay" in Gentoo::Overlay::Category
PRIVATE CLASS ATTRIBUTES
_scan_blacklist
Class-Wide list of blacklisted package names.
isa => HashRef[ Str ], ro, lazy,
accessors => _scan_blacklisted
PRIVATE CLASS ATTRIBUTE ACCESSORS
_scan_blacklisted
is $arg
blacklisted in the Class Wide Blacklist?
::Package->_scan_blacklisted( $arg )
->
exists ::Package->_scan_blacklist->{$arg}
AUTHOR
Kent Fredric <kentnl@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Kent Fredric <kentnl@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.