view release on metacpan or search on metacpan
inc/Alien/ROOT/Builder.pm view on Meta::CPAN
my $self = shift;
# try to make "perl Makefile.PL && make test" work
# but avoid doubly building ROOT when doing
# "perl Makefile.PL && make && make test"
unlink 'configured' if -f 'configured';
$self->SUPER::ACTION_build;
}
sub ACTION_code {
my $self = shift;
$self->SUPER::ACTION_code;
return if not $self->notes( 'build_ROOT' );
# see comment in ACTION_build for why 'configured' is used
return if -f 'configured';
$self->depends_on( 'build_ROOT' );
inc/Alien/ROOT/Builder.pm view on Meta::CPAN
}
sub ACTION_clean {
my ($self) = @_;
my $rc = $self->SUPER::ACTION_clean;
if ($self->notes('build_ROOT')) {
chdir($self->notes('build_data')->{directory});
$rc = (system($self->notes('make'), 'clean') == 0) ? 1 : 0;
chdir($ORIG_DIR);
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/MyBuilder.pm view on Meta::CPAN
"LIBS=$libs",
"RPATH=$rpath");
xsystem($Config{make});
});
$self->SUPER::ACTION_code(@args);
}
sub ACTION_test {
my($self, @args) = @_;
inc/MyBuilder.pm view on Meta::CPAN
$self->perl_bindings(sub {
xsystem($Config{make}, 'test');
});
$self->SUPER::ACTION_test(@args);
}
sub ACTION_install {
my($self, @args) = @_;
$self->perl_bindings(sub {
xsystem($Config{make}, 'install');
});
$self->SUPER::ACTION_install(@args);
}
sub ACTION_clean {
my($self, @args) = @_;
# work around Module::Build's bug that removing symlinks might fail
unlink('rrdtool');
$self->SUPER::ACTION_clean(@args);
}
sub perl_bindings {
my($self, $block) = @_;
for my $path(
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Builder.pm view on Meta::CPAN
printf("Build option used:\n\t%s\n", $bp->{title} || 'n.a.');
mkdir 'sharedir' unless(-d 'sharedir');
$self->add_to_cleanup('sharedir');
$self->SUPER::ACTION_build;
}
sub ACTION_install
{
inc/My/Builder.pm view on Meta::CPAN
print "Removing the old $sharedir \n";
remove_tree($sharedir);
make_path($sharedir);
}
$self->SUPER::ACTION_install;
}
sub ACTION_code {
my $self = shift;
inc/My/Builder.pm view on Meta::CPAN
# mark sucessfully finished build
$self->touch_build_done_marker;
}
$self->SUPER::ACTION_code;
}
sub fetch_file {
my ($self, $url, $sha1sum, $download) = @_;
die "###ERROR### _fetch_file undefined url\n" unless @{$url}[0];
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Builder.pm view on Meta::CPAN
printf("Build option used:\n\t%s\n", $bp->{title} || 'n.a.');
mkdir 'sharedir' unless(-d 'sharedir');
$self->add_to_cleanup('sharedir');
$self->SUPER::ACTION_build;
}
sub ACTION_install
{
my $self = shift;
inc/My/Builder.pm view on Meta::CPAN
print "Removing the old $sharedir \n";
remove_tree($sharedir);
make_path($sharedir);
}
$self->SUPER::ACTION_install;
}
sub ACTION_code {
my $self = shift;
inc/My/Builder.pm view on Meta::CPAN
# mark sucessfully finished build
$self->touch_build_done_marker;
}
$self->SUPER::ACTION_code;
}
sub fetch_file {
my ($self, $url, $sha1sum, $download) = @_;
die "###ERROR### _fetch_file undefined url\n" unless @{$url}[0];
view all matches for this distribution
view release on metacpan or search on metacpan
builder/Alien.pm view on Meta::CPAN
}
}
);
}
}
$self->SUPER::ACTION_code;
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/SVN/Builder.pm view on Meta::CPAN
}
sub ACTION_code {
my $self = shift;
$self->SUPER::ACTION_code;
_chdir_to_svn;
$self->_run('make')
or do { warn "building subversion failed"; return 0 };
inc/My/SVN/Builder.pm view on Meta::CPAN
$self->_run("make install")
or do { warn "installing SVN::Core failed"; return 0 };
_chdir_back;
$self->SUPER::ACTION_install;
}
1;
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Module/Build.pm view on Meta::CPAN
sub new {
my ($class, %opts) = @_;
$opts{recursive_test_files} = 1 if
(! defined $opts{recursive_test_files});
my $self = $class->SUPER::new(%opts);
if ($self->maintainer_mode_enabled()) {
print "Running specific maintainer checks...\n";
$self->check_maintainer_dependencies();
}
$self->_process_options;
inc/My/Module/Build.pm view on Meta::CPAN
sub ACTION_build {
my $self = shift;
$self->depends_on("buildXS");
$self->SUPER::ACTION_build(@_);
}
=item I<ACTION_dist>
Overloaded so that typing C<./Build dist> does The Right Thing and
inc/My/Module/Build.pm view on Meta::CPAN
$self->do_create_makefile_pl if $self->create_makefile_pl;
$self->do_create_readme if $self->create_readme;
$self->depends_on("manifest");
$self->SUPER::ACTION_dist(@_);
}
=item I<ACTION_buildXS>
Does nothing. Intended for overloading by packages that have XS code,
inc/My/Module/Build.pm view on Meta::CPAN
no warnings "once";
local *blib = sub {
my $self = shift;
return File::Spec->curdir if ! $self->use_blib;
return $self->SUPER::blib(@_);
};
$self->SUPER::ACTION_test(@_);
}
=item I<ACTION_distmeta>
Overloaded to ensure that .pm modules in inc/ don't get indexed and
inc/My/Module/Build.pm view on Meta::CPAN
no warnings "redefine";
local *YAML::Node::new = sub {
$node = $orig_yaml_node_new->(@_);
};
my $retval = $self->SUPER::ACTION_distmeta;
die "Failed to steal the YAML node" unless defined $node;
$node->{no_index} = $self->{properties}->{add_to_no_index} || {};
$node->{no_index}->{directory} ||= [];
unshift(@{$node->{no_index}->{directory}}, qw(examples inc t),
inc/My/Module/Build.pm view on Meta::CPAN
sub process_pm_files {
no warnings "once";
local *copy_if_modified = \*process_pm_file_if_modified;
my $self = shift;
return $self->SUPER::process_pm_files(@_);
}
=item I<process_pm_file_if_modified(%args)>
Does the same as L<copy_file_if_modified> (which it actually replaces
inc/My/Module/Build.pm view on Meta::CPAN
# Short-cut activated by L</ACTION_test>:
return $self->{FORCE_find_test_files_result} if
(defined $self->{FORCE_find_test_files_result});
my @tests = @{$self->SUPER::find_test_files(@_)};
# Short-cut activated by putting a 'test_files' key in the constructor
# arguments:
return @tests if $self->{test_files};
@tests = grep { ! m/^t.maintainer/ } @tests unless
inc/My/Module/Build.pm view on Meta::CPAN
=cut
sub do_create_makefile_pl {
my ($self, %args) = @_;
warn("Cannot take off any Zig, sorry"),
return $self->SUPER::do_create_makefile_pl(%args) if ($args{fh});
$args{file} ||= 'Makefile.PL';
my $retval = $self->SUPER::do_create_makefile_pl(%args);
my $MakefilePL = read_file($args{file});
$MakefilePL = <<'PREAMBLE' . $MakefilePL;
use FindBin qw($Bin);
use lib "$Bin/inc";
PREAMBLE
inc/My/Module/Build.pm view on Meta::CPAN
# My::Module::Build is loaded from elsewhere). Moreover, "use
# base" is not yet belong to us at this time.
sub fake_makefile {
my $self = shift;
return $self->SUPER::fake_makefile(@_). <<'MAIN_SCREEN_TURN_ON';
# In 2101 AD war was beginning...
your:
@echo
@echo -n " All your codebase"
inc/My/Module/Build.pm view on Meta::CPAN
\@ISA = our \@ISAorig;
$opts{code}
KLUDGE_ME_UP
return $pack->SUPER::subclass(%opts);
}
=item I<_startperl>
Overloaded from parent to attempt a chdir() into the right place in
inc/My/Module/Build.pm view on Meta::CPAN
sub _startperl {
my $self = shift;
my $basedir = $self->base_dir;
$basedir = Win32::GetShortPathName($basedir) if is_win32;
return $self->SUPER::_startperl(@_) . <<"MORE";
# Hack by My::Module::Build to give the Emacs debugger one
# more chance to work:
use Cwd;
BEGIN {
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble;
}
sub pm_to_blib {
my $self = shift;
my $blib = $self->SUPER::pm_to_blib(@_);
# un-read-only blib/lib for tests to pass, files are modified at runtime there
if ( $OSNAME eq 'MSWin32' ) {
my ( $lastline, $start ) = qq{\t\$(NOECHO) \$(TOUCH) pm_to_blib\n};
( $start = index( $blib, $lastline ) ) == -1
view all matches for this distribution
view release on metacpan or search on metacpan
ThrustModuleBuild.pm view on Meta::CPAN
$self->download_zip_file();
$self->extract_zip_file();
$self->SUPER::ACTION_build;
}
sub ACTION_install {
ThrustModuleBuild.pm view on Meta::CPAN
print "WARNING: Due to Mac OS X lameness, we are removing the thrust shell binaries from the blib directory before install. You will have to to re-build if you want to use this local blib.\n";
system("rm -rf blib/lib/auto/share/dist/Alien-Thrust/");
$self->SUPER::ACTION_install;
my $share_install_dir = $self->install_map->{'blib/lib'} . "/auto/share/dist/Alien-Thrust/";
system('mkdir', '-p', $share_install_dir);
system('unzip', '-oqq', $thrust_archive, '-d', $share_install_dir);
} else {
$self->SUPER::ACTION_install;
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Builder.pm view on Meta::CPAN
print STDERR "Removing the old '$sharedir'\n";
File::Path::rmtree($sharedir);
File::Path::mkpath($sharedir);
}
return $self->SUPER::ACTION_install(@_);
}
sub ACTION_code {
my $self = shift;
inc/My/Builder.pm view on Meta::CPAN
}
# mark sucessfully finished build
local @ARGV = ('build_done');
ExtUtils::Command::touch();
}
$self->SUPER::ACTION_code;
}
sub fetch_file {
my ($self, $url_list, $sha1sum, $download) = @_;
die "###ERROR### _fetch_file undefined url\n" unless $url_list;
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Build.pm view on Meta::CPAN
sub ACTION_build {
my $self = shift;
mkdir 'share';
$self->SUPER::ACTION_build;
}
use File::Path;
sub ACTION_clean {
my $self = shift;
inc/My/Build.pm view on Meta::CPAN
# Call system-specific cleanup code
$self->my_clean;
# Call base class code
$self->SUPER::ACTION_clean;
}
use File::Copy;
use File::Spec;
sub ACTION_devsetup {
inc/My/Build.pm view on Meta::CPAN
# This one's an author action, so I assume they have git and have properly
# configured.
sub ACTION_dist {
my $self = shift;
reset_src;
$self->SUPER::ACTION_dist;
}
# This one's an author action, so I assume they have git and have properly
# configured.
sub ACTION_distdir {
my $self = shift;
reset_src;
$self->SUPER::ACTION_distdir;
}
# This one's an author action, so I assume they have git and have properly
# configured.
sub ACTION_disttest {
my $self = shift;
reset_src;
$self->SUPER::ACTION_disttest;
}
sub apply_patches {
my ($filename, @patches) = @_;
view all matches for this distribution