-use strict;
-use Module::Build;
-
-my %arguments = (
- create_makefile_pl => 'passthrough',
- license => 'perl',
- module_name => 'DBIx::Class',
- requires => {
- 'Cwd' => 3.19,
- 'Data::Page' => 2.00,
- 'Scalar::Util' => 0,
- 'SQL::Abstract' => 1.20,
- 'SQL::Abstract::Limit' => 0.101,
- 'Class::C3' => 0.13,
- 'Storable' => 0,
- 'Class::Data::Accessor' => 0.01,
- 'Carp::Clan' => 0,
- 'DBI' => 1.40,
- 'Module::Find' => 0,
- 'Class::Inspector' => 0,
- },
- build_requires => {
- 'DBD::SQLite' => 1.11,
- },
- create_makefile_pl => 'passthrough',
- create_readme => 1,
- test_files => [ glob('t/*.t'), glob('t/*/*.t') ],
- script_files => [ glob('script/*') ],
-);
-
-Module::Build->new(%arguments)->create_build_script;
-
+# Dear Distribution Packager. This use of require is intentional.
+# Module::Install detects Build.PL usage and acts accordingly.
+require 'Makefile.PL';
-# Note: this file was auto-generated by Module::Build::Compat version 0.03
-
- unless (eval "use Module::Build::Compat 0.02; 1" ) {
- print "This module requires Module::Build to install itself.\n";
-
- require ExtUtils::MakeMaker;
- my $yn = ExtUtils::MakeMaker::prompt
- (' Install Module::Build now from CPAN?', 'y');
-
- unless ($yn =~ /^y/i) {
- die " *** Cannot install without Module::Build. Exiting ...\n";
- }
-
- require Cwd;
- require File::Spec;
- require CPAN;
-
- # Save this 'cause CPAN will chdir all over the place.
- my $cwd = Cwd::cwd();
-
- CPAN::Shell->install('Module::Build::Compat');
- CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
- or die "Couldn't install Module::Build, giving up.\n";
-
- chdir $cwd or die "Cannot chdir() back to $cwd: $!";
- }
- eval "use Module::Build::Compat 0.02; 1" or die $@;
-
- Module::Build::Compat->run_build_pl(args => \@ARGV);
- require Module::Build;
- Module::Build::Compat->write_makefile(build_class => 'Module::Build');
+use inc::Module::Install;
+
+name 'DBIx-Class';
+all_from 'lib/DBIx/Class.pm';
+perl_version '5.006001';
+
+requires 'Cwd' => 3.19;
+requires 'Data::Page' => 2.00;
+requires 'Scalar::Util' => 0;
+requires 'SQL::Abstract' => 1.20;
+requires 'SQL::Abstract::Limit' => 0.101;
+requires 'Class::C3' => 0.13;
+requires 'Storable' => 0;
+requires 'Class::Data::Accessor' => 0.01;
+requires 'Carp::Clan' => 0;
+requires 'DBI' => 1.40;
+requires 'Module::Find' => 0;
+requires 'Class::Inspector' => 0;
+
+# Perl 5.8.0 doesn't have utf8::is_utf8()
+requires 'Encode' => 0 if ($] <= 5.008000);
+
+build_requires 'DBD::SQLite' => 1.11;
+
+install_script 'script/dbicadmin';
+
+tests "t/*.t t/*/*.t";
+
+WriteAll;