| … | |
… | |
| 7 | |
7 | |
| 8 | #### Load the other namespaces. |
8 | #### Load the other namespaces. |
| 9 | #### Gentoo.pm is the primary if these aren't accessed directly. |
9 | #### Gentoo.pm is the primary if these aren't accessed directly. |
| 10 | |
10 | |
| 11 | use Gentoo::Config; |
11 | use Gentoo::Config; |
| 12 | use Gentoo::Ebuild; |
12 | use Gentoo::Portage; |
| 13 | use Gentoo::CPAN; |
13 | use Gentoo::CPAN; |
| 14 | |
14 | |
| 15 | # These libraries were influenced and largely written by |
15 | # These libraries were influenced and largely written by |
| 16 | # Christian Hartmann <ian@gentoo.org> originally. All of the good |
16 | # Christian Hartmann <ian@gentoo.org> originally. All of the good |
| 17 | # parts are ian's - the rest is mcummings messing around. |
17 | # parts are ian's - the rest is mcummings messing around. |
| … | |
… | |
| 27 | our $VERSION = '0.01'; |
27 | our $VERSION = '0.01'; |
| 28 | sub _init |
28 | sub _init |
| 29 | { |
29 | { |
| 30 | my ($self, %args) = @_; |
30 | my ($self, %args) = @_; |
| 31 | return if $self->{_init}{__PACKAGE__}++; |
31 | return if $self->{_init}{__PACKAGE__}++; |
| 32 | $self->Gentoo::Ebuild::_init(%args); |
32 | $self->Gentoo::Portage::_init(%args); |
| 33 | $self->Gentoo::Config::_init(%args); |
33 | $self->Gentoo::Config::_init(%args); |
| 34 | } |
34 | } |
| 35 | |
35 | |
| 36 | sub UNIVERSAL::debug |
36 | sub UNIVERSAL::debug |
| 37 | { |
37 | { |
| … | |
… | |
| 60 | { |
60 | { |
| 61 | my ($self) = @_; |
61 | my ($self) = @_; |
| 62 | return if $self->{DESTROY}{__PACKAGE__}++; |
62 | return if $self->{DESTROY}{__PACKAGE__}++; |
| 63 | |
63 | |
| 64 | $self->Gentoo::Config::DESTROY(); |
64 | $self->Gentoo::Config::DESTROY(); |
| 65 | $self->Gentoo::Ebuild::DESTROY(); |
65 | $self->Gentoo::Portage::DESTROY(); |
| 66 | } |
66 | } |
| 67 | |
67 | |
| 68 | 1; |
68 | 1; |
| 69 | __END__ |
69 | __END__ |
| 70 | # Below is stub documentation for your module. You'd better edit it! |
70 | # Below is stub documentation for your module. You'd better edit it! |