our
@ISA
=
qw(Exporter)
;
our
@EXPORT
=
qw(%buildtree)
;
our
@EXPORT_OK
=
qw( %metadata %section build_pre )
;
our
%EXPORT_TAGS
;
$EXPORT_TAGS
{
'default'
} = \
@EXPORT
;
$EXPORT_TAGS
{
'build'
} = \
@EXPORT_OK
;
our
%metadata
= (
'name'
=>
'megadistro'
,
'version'
=>
$MegaDistro::VERSION
,
'release'
=>
'2'
,
'section'
=>
'libs'
,
'priority'
=>
'optional'
,
'depends'
=>
'perl (>= 5.6.1)'
,
'suggests'
=>
'perl (>= 5.8.5)'
,
'replaces'
=>
'megadistro (<< '
.
$MegaDistro::VERSION
.
')'
,
'conflicts'
=>
'megadistro (<< '
.
$MegaDistro::VERSION
.
')'
,
'maintainer'
=>
'David Buchman <dbuchman@cpan.org>'
,
'description'
=>
'A packaged bundle of pre-compiled perl modules.'
,
);
our
%section
;
$section
{
'description'
} = [
'The MegaDistro is a distributable binary package,'
,
'which contains a selection of pre-compiled perl modules.'
,
'.'
,
'Simply feed it a list of modules,'
,
'configure manually if necessary,'
,
'and crank out a package!'
,
];
our
%buildtree
;
sub
_init_globals {
$buildtree
{
'PACKAGE'
} =
'debian'
;
$buildtree
{
'ROOT'
} = catdir(
$Conf
{
'rootdir'
},
$buildtree
{
'PACKAGE'
});
$buildtree
{
'CONTROL'
} = catdir(
$buildtree
{
'ROOT'
},
'DEBIAN'
);
$buildtree
{
'BUILDROOT'
} =
$buildtree
{
'ROOT'
};
}
&_init_globals
;
sub
build_pre {
if
(
$args
{
'trace'
} ) {
print
'MegaDistro::DebMaker::Config : Executing sub-routine: build_pre'
.
"\n"
;
}
mkpath
$buildtree
{
'ROOT'
}
if
! -d
$buildtree
{
'ROOT'
};
mkpath
$buildtree
{
'CONTROL'
}
if
! -d
$buildtree
{
'CONTROL'
};
mkpath
$buildtree
{
'BUILDROOT'
}
if
! -d
$buildtree
{
'BUILDROOT'
};
}
1;