summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBuild58
-rw-r--r--Build.PL19
-rw-r--r--_build/auto_features2
-rw-r--r--_build/build_params129
-rw-r--r--_build/cleanup4
-rw-r--r--_build/config_data2
-rw-r--r--_build/features2
-rw-r--r--_build/magicnum1
-rw-r--r--_build/notes2
-rw-r--r--_build/prereqs12
-rw-r--r--_build/runtime_params2
-rw-r--r--blib/lib/Foo.pm0
-rw-r--r--lib/Foo.pm0
13 files changed, 233 insertions, 0 deletions
diff --git a/Build b/Build
new file mode 100755
index 0000000..3bf3117
--- /dev/null
+++ b/Build
@@ -0,0 +1,58 @@
+#! /usr/bin/perl
+
+use strict;
+use Cwd;
+use File::Basename;
+use File::Spec;
+
+sub magic_number_matches {
+ return 0 unless -e '_build/magicnum';
+ my $FH;
+ open $FH, '<','_build/magicnum' or return 0;
+ my $filenum = <$FH>;
+ close $FH;
+ return $filenum == 145900;
+}
+
+my $progname;
+my $orig_dir;
+BEGIN {
+ $^W = 1; # Use warnings
+ $progname = basename($0);
+ $orig_dir = Cwd::cwd();
+ my $base_dir = '/home/pepper/new';
+ if (!magic_number_matches()) {
+ unless (chdir($base_dir)) {
+ die ("Couldn't chdir($base_dir), aborting\n");
+ }
+ unless (magic_number_matches()) {
+ die ("Configuration seems to be out of date, please re-run 'perl Build.PL' again.\n");
+ }
+ }
+ unshift @INC,
+ (
+
+ );
+}
+
+close(*DATA) unless eof(*DATA); # ensure no open handles to this script
+
+use Module::Build;
+Module::Build->VERSION(q{0});
+
+# Some platforms have problems setting $^X in shebang contexts, fix it up here
+$^X = Module::Build->find_perl_interpreter;
+
+if (-e 'Build.PL' and not Module::Build->up_to_date('Build.PL', $progname)) {
+ warn "Warning: Build.PL has been altered. You may need to run 'perl Build.PL' again.\n";
+}
+
+# This should have just enough arguments to be able to bootstrap the rest.
+my $build = Module::Build->resume (
+ properties => {
+ config_dir => '_build',
+ orig_dir => $orig_dir,
+ },
+);
+
+$build->dispatch;
diff --git a/Build.PL b/Build.PL
new file mode 100644
index 0000000..8e9d168
--- /dev/null
+++ b/Build.PL
@@ -0,0 +1,19 @@
+use Module::Build;
+ my $build = Module::Build->new
+ (
+ dist_name => 'mytest',
+ dist_version => '1.0.0',
+# module_name => 'Foo',
+ requires => {
+ 'Data::Dumper' => 0,
+ 'IO::Socket' => 0,
+ 'Games::Cards' => 0,
+ },
+ installation_path => { "/home/pepper/new/" },
+ config => { cc => 'gcc', ld => 'gcc' },
+ );
+$build->install_path(conf => $installation_path);
+#$build->dispatch('build');
+#$build->dispatch('test', verbose => 1);
+$build->dispatch('installdeps');
+$build->create_build_script;
diff --git a/_build/auto_features b/_build/auto_features
new file mode 100644
index 0000000..2df4e46
--- /dev/null
+++ b/_build/auto_features
@@ -0,0 +1,2 @@
+do{ my $x = {};
+$x; } \ No newline at end of file
diff --git a/_build/build_params b/_build/build_params
new file mode 100644
index 0000000..6333f57
--- /dev/null
+++ b/_build/build_params
@@ -0,0 +1,129 @@
+do{ my $x = [
+ {
+ 'ARGV' => []
+ },
+ {
+ 'cc' => 'gcc',
+ 'ld' => 'gcc'
+ },
+ {
+ 'mymetafile2' => 'MYMETA.json',
+ 'use_rcfile' => 1,
+ 'install_base_relpaths' => {},
+ 'dist_abstract' => undef,
+ 'orig_dir' => '/home/pepper/new',
+ 'release_status' => 'stable',
+ 'perl' => '/usr/bin/perl',
+ 'allow_mb_mismatch' => 0,
+ 'pureperl_only' => 0,
+ 'metafile' => 'META.yml',
+ 'magic_number' => undef,
+ 'quiet' => undef,
+ 'test_requires' => {},
+ 'pm_files' => undef,
+ 'use_tap_harness' => 0,
+ 'recursive_test_files' => undef,
+ 'configure_requires' => {},
+ 'install_sets' => {},
+ 'metafile2' => 'META.json',
+ 'script_files' => undef,
+ 'mymetafile' => 'MYMETA.yml',
+ 'install_path' => {},
+ 'test_file_exts' => [
+ '.t'
+ ],
+ 'dist_version' => '1.0.0',
+ 'license' => 'unknown',
+ 'bundle_inc_preload' => [],
+ 'recurse_into' => [],
+ 'get_options' => {},
+ 'prefix' => undef,
+ 'recommends' => {},
+ 'dist_version_from' => undef,
+ 'build_script' => 'Build',
+ 'meta_merge' => {},
+ 'needs_compiler' => '',
+ 'auto_configure_requires' => 1,
+ 'pod_files' => undef,
+ 'include_dirs' => [],
+ 'prefix_relpaths' => {},
+ 'create_license' => undef,
+ 'blib' => 'blib',
+ 'base_dir' => '/home/pepper/new',
+ 'install_base' => undef,
+ 'share_dir' => undef,
+ 'extra_compiler_flags' => [],
+ 'prereq_action_types' => [
+ 'requires',
+ 'build_requires',
+ 'test_requires',
+ 'conflicts',
+ 'recommends'
+ ],
+ 'scripts' => undef,
+ 'dist_author' => undef,
+ 'xs_files' => undef,
+ 'program_name' => undef,
+ 'meta_add' => {},
+ 'installation_path' => {
+ '/home/pepper/new/' => undef
+ },
+ 'test_files' => undef,
+ 'c_source' => undef,
+ 'debug' => undef,
+ 'create_makefile_pl' => undef,
+ 'PL_files' => undef,
+ 'html_css' => '',
+ 'config' => undef,
+ 'libdoc_dirs' => [
+ 'blib/lib',
+ 'blib/arch'
+ ],
+ 'pollute' => undef,
+ 'cpan_client' => 'cpan',
+ 'dynamic_config' => 1,
+ 'build_bat' => 0,
+ 'build_requires' => {},
+ 'extra_linker_flags' => [],
+ 'create_packlist' => 1,
+ 'sign' => undef,
+ '_added_to_INC' => [],
+ 'build_elements' => [
+ 'PL',
+ 'support',
+ 'pm',
+ 'xs',
+ 'share_dir',
+ 'pod',
+ 'script'
+ ],
+ 'dist_suffix' => undef,
+ 'allow_pureperl' => 0,
+ 'has_config_data' => undef,
+ 'original_prefix' => {},
+ 'build_class' => 'Module::Build',
+ 'mb_version' => '0.4211',
+ 'autosplit' => undef,
+ 'destdir' => undef,
+ 'verbose' => undef,
+ 'bundle_inc' => [],
+ 'create_readme' => undef,
+ 'bindoc_dirs' => [
+ 'blib/script'
+ ],
+ 'module_name' => undef,
+ 'config_dir' => '_build',
+ 'installdirs' => 'site',
+ 'extra_manify_args' => undef,
+ 'requires' => {
+ 'Games::Cards' => 0,
+ 'IO::Socket' => 0,
+ 'Data::Dumper' => 0
+ },
+ 'conflicts' => {},
+ 'dist_name' => 'mytest',
+ 'debugger' => undef,
+ 'tap_harness_args' => {}
+ }
+ ];
+$x; } \ No newline at end of file
diff --git a/_build/cleanup b/_build/cleanup
new file mode 100644
index 0000000..8399601
--- /dev/null
+++ b/_build/cleanup
@@ -0,0 +1,4 @@
+do{ my $x = {
+ 'blib' => 1
+ };
+$x; } \ No newline at end of file
diff --git a/_build/config_data b/_build/config_data
new file mode 100644
index 0000000..2df4e46
--- /dev/null
+++ b/_build/config_data
@@ -0,0 +1,2 @@
+do{ my $x = {};
+$x; } \ No newline at end of file
diff --git a/_build/features b/_build/features
new file mode 100644
index 0000000..2df4e46
--- /dev/null
+++ b/_build/features
@@ -0,0 +1,2 @@
+do{ my $x = {};
+$x; } \ No newline at end of file
diff --git a/_build/magicnum b/_build/magicnum
new file mode 100644
index 0000000..ffe2d29
--- /dev/null
+++ b/_build/magicnum
@@ -0,0 +1 @@
+145900 \ No newline at end of file
diff --git a/_build/notes b/_build/notes
new file mode 100644
index 0000000..2df4e46
--- /dev/null
+++ b/_build/notes
@@ -0,0 +1,2 @@
+do{ my $x = {};
+$x; } \ No newline at end of file
diff --git a/_build/prereqs b/_build/prereqs
new file mode 100644
index 0000000..d10c6bf
--- /dev/null
+++ b/_build/prereqs
@@ -0,0 +1,12 @@
+do{ my $x = {
+ 'test_requires' => {},
+ 'build_requires' => {},
+ 'conflicts' => {},
+ 'recommends' => {},
+ 'requires' => {
+ 'Games::Cards' => 0,
+ 'IO::Socket' => 0,
+ 'Data::Dumper' => 0
+ }
+ };
+$x; } \ No newline at end of file
diff --git a/_build/runtime_params b/_build/runtime_params
new file mode 100644
index 0000000..2df4e46
--- /dev/null
+++ b/_build/runtime_params
@@ -0,0 +1,2 @@
+do{ my $x = {};
+$x; } \ No newline at end of file
diff --git a/blib/lib/Foo.pm b/blib/lib/Foo.pm
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/blib/lib/Foo.pm
diff --git a/lib/Foo.pm b/lib/Foo.pm
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lib/Foo.pm