The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Gentoo::Overlay::Ebuild - A Class for Ebuilds in Gentoo Overlays

VERSION

version 1.0.5

SYNOPSIS

  my $ebuild = Overlay::Ebuild->new(
    name => 'Moose-2.0.0.ebuild',
    package => $package_object,
  );

  $ebuild->exists();  #  Ebuild listed exists.

  print $ebuild->pretty_name # =dev-perl/Moose-2.0.0::gentoo

  print $ebuild->path # /usr/portage/dev-perl/Moose/Moose-2.0.0.ebuild

METHODS

exists

Does the Ebuild exist, and is it a file?

    $ebuild->exists();

is_blacklisted

Does the ebuild name appear on a blacklist meaning auto-scan should ignore this?

    ::Ebuild->is_blacklisted('..') # true

pretty_name

A pretty form of the name

    $ebuild->pretty_name # =dev-perl/Moose-2.0.0::gentoo

ATTRIBUTES

name

The Ebuilds short name

  isa => Gentoo__Overlay_EbuildName, required, ro

EbuildName

package

The package object this ebuild is within.

  isa => Gentoo__Overlay_EbuildName, required, ro

  accessors => overlay category

Package

"overlay"

"category"

path

The full path to the ebuild.

    isa => File, lazy, ro

"File" in MooseX::Types::Path::Tiny

ATTRIBUTE ACCESSORS

overlay

  $ebuild->overlay -> Gentoo::Overlay::Package->overlay

"overlay" in Gentoo::Overlay::Package

"package"

overlay

  $ebuild->category -> Gentoo::Overlay::Package->category

"category" in Gentoo::Overlay::Package

"package"

PRIVATE CLASS ATTRIBUTES

_scan_blacklist

Class-Wide list of blacklisted ebuild names.

    isa => HashRef[ Str ], ro, lazy,

    accessors => _scan_blacklisted

"_scan_blacklisted"

MooseX::Types::Moose

PRIVATE CLASS ATTRIBUTE ACCESSORS

_scan_blacklisted

is $arg blacklisted in the Class Wide Blacklist?

    ::Ebuild->_scan_blacklisted( $arg )
       ->
    exists ::Ebuild->_scan_blacklist->{$arg}

"_scan_blacklist"

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 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.