Add the original source packages to maemo, source lenny
[dh-make-perl] / dev / i386 / libextutils-cbuilder-perl / libextutils-cbuilder-perl-0.23 / Build.PL
diff --git a/dev/i386/libextutils-cbuilder-perl/libextutils-cbuilder-perl-0.23/Build.PL b/dev/i386/libextutils-cbuilder-perl/libextutils-cbuilder-perl-0.23/Build.PL
new file mode 100644 (file)
index 0000000..49ed1f8
--- /dev/null
@@ -0,0 +1,34 @@
+use Module::Build;
+
+my $class = Module::Build->subclass(code => <<'EOF');
+  sub do_create_makefile_pl {
+    my $self = shift;
+    $self->SUPER::do_create_makefile_pl(fh => $fh);
+    $self->do_system(qw(perl -pi -e), q{s/'INSTALLDIRS' => 'site'/'INSTALLDIRS' => (\$] >= 5.009003 ? 'perl' : 'site')/}, 'Makefile.PL');
+  }
+EOF
+
+my $build = $class->new
+  (
+   module_name => 'ExtUtils::CBuilder',
+   license => 'perl',
+   requires => {
+               'File::Basename' => 0,
+               'File::Spec' => 0,
+               'Text::ParseWords' => 0,
+               'Cwd' => 0,
+               'IO::File' => 0,
+              },
+   build_requires => {
+                     'Test' => 0,
+                    },
+   create_makefile_pl => 'traditional',
+   create_readme => 1,
+   meta_merge => {
+                 resources => {repository => 'http://svn.perl.org/modules/ExtUtils-CBuilder'},
+                },
+   sign => 1,
+   installdirs => ($] >= 5.009003 ? 'core' : 'site'),
+  );
+
+$build->create_build_script;