use strict;
use warnings;
use Module::Build;


# my $class = Module::Build->subclass(
# 				    class => "My::Builder",
# 				    code => q{

# sub ACTION_ppd {
#    my $self = shift;
#    $self->SUPER::ACTION_ppd;

#    open O, '>__temp__';
#    open I, 'Chemistry-Formula.ppd';
#    while (<I>) {
#      $_ =~ s{File-Spec}{PathTools};
#      print O $_;
#    };
#    close I;
#    close O;
#    rename '__temp__', 'Chemistry-Formula.ppd';
# };
# },
# 				   );



my $build = Module::Build
 -> new(
	create_readme      => 1,
	##create_makefile_pl => 'traditional',
	license            => 'perl',
	module_name        => 'Chemistry::Formula',
	dist_author        => 'Bruce Ravel',
	requires           => {
			       'Chemistry::Elements' => 0,
			       'File::Spec'	     => 0,
			       #'Test::More'	     => 0,
			       'Regexp::Common'      => 0,
			       Readonly	             => 0,
			       version	             => 0,
		    },
	#dat_files          => {
	#		       'data/formula.dat' => 'lib/Chemistry/Formula/formula.dat',
	#		      },
	recommends         => {},
	sign               => 0,
);
#$build->add_build_element('dat');
$build->create_build_script;

