Index: trunk/Build.PL
===================================================================
--- trunk/Build.PL	(revision 91)
+++ trunk/Build.PL	(revision 91)
@@ -0,0 +1,14 @@
+use Module::Build;
+my $build = Module::Build->new(
+    module_name => 'Text::FormBuilder',
+    license  => 'perl',
+    requires => {
+        CGI::FormBuilder => 3.0,
+        Parse::RecDescent => 1.94,
+        Text::Template => 1.44,
+        # requirement for Class::ParseText::Base
+        Class::Base => 0.03,
+    },
+    dist_author => 'Peter Eichman <peichman@cpan.org>',
+);
+$build->create_build_script;
Index: trunk/Changes
===================================================================
--- trunk/Changes	(revision 90)
+++ trunk/Changes	(revision 91)
@@ -1,3 +1,8 @@
 Release history for Text::FormBuilder.
+
+0.14
+    * switched from EU::MakeMaker to Module::Build
+    * precompile the Text::FormBuilder::Parser at module build time,
+      so it uses the user's version of Parse::RecDescent
 
 0.13 - 24 Apr 2008
Index: trunk/MANIFEST
===================================================================
--- trunk/MANIFEST	(revision 90)
+++ trunk/MANIFEST	(revision 91)
@@ -1,4 +1,4 @@
 Changes
-Makefile.PL
+Build.PL
 MANIFEST
 README
@@ -9,6 +9,4 @@
 lib/Text/FormBuilder.pm
 lib/Text/FormBuilder/Examples.pod
-lib/Text/FormBuilder/Parser.pm
 lib/Text/FormBuilder/grammar
 lib/Class/ParseText/Base.pm
-META.yml                                 Module meta-data (added by MakeMaker)
Index: trunk/Makefile.PL
===================================================================
--- trunk/Makefile.PL	(revision 90)
+++ 	(revision )
@@ -1,18 +1,0 @@
-use ExtUtils::MakeMaker;
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
-WriteMakefile(
-    NAME              => 'Text::FormBuilder',
-    VERSION_FROM      => 'lib/Text/FormBuilder.pm', # finds $VERSION
-    EXE_FILES         => [ 'bin/fb.pl' ],
-    PREREQ_PM         => { 
-                            CGI::FormBuilder => 3.0,
-                            Parse::RecDescent => 1.94,
-                            Text::Template => 1.44,
-                            # requirement for Class::ParseText::Base
-                            Class::Base => 0.03,
-                         }, # e.g., Module::Name => 1.1
-    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
-      (ABSTRACT_FROM  => 'lib/Text/FormBuilder.pm', # retrieve abstract from module
-       AUTHOR         => 'Peter Eichman <peichman@cpan.org>') : ()),
-);
Index: trunk/README
===================================================================
--- trunk/README	(revision 90)
+++ trunk/README	(revision 91)
@@ -1,3 +1,3 @@
-Text-FormBuilder version 0.12
+Text-FormBuilder version 0.14
 =============================
 
@@ -6,8 +6,8 @@
 To install this module type the following:
 
-   perl Makefile.PL
-   make
-   make test
-   make install
+   perl Build.PL
+   ./Build
+   ./Build test
+   ./Build install
 
 DEPENDENCIES
Index: trunk/lib/Text/FormBuilder.pm
===================================================================
--- trunk/lib/Text/FormBuilder.pm	(revision 90)
+++ trunk/lib/Text/FormBuilder.pm	(revision 91)
@@ -7,5 +7,5 @@
 use vars qw($VERSION @EXPORT);
 
-$VERSION = '0.13';
+$VERSION = '0.14';
 @EXPORT = qw(create_form);
 
Index: trunk/lib/Text/FormBuilder/Makefile
===================================================================
--- trunk/lib/Text/FormBuilder/Makefile	(revision 90)
+++ 	(revision )
@@ -1,3 +1,0 @@
-# pre-compile the parser from the grammar
-Parser.pm: grammar
-	perl -MParse::RecDescent - grammar Text::FormBuilder::Parser
Index: trunk/lib/Text/FormBuilder/Parser.pm.PL
===================================================================
--- trunk/lib/Text/FormBuilder/Parser.pm.PL	(revision 91)
+++ trunk/lib/Text/FormBuilder/Parser.pm.PL	(revision 91)
@@ -0,0 +1,11 @@
+#!/usr/bin/perl -w
+use strict;
+
+# pre-compile the parser from the grammar
+use Parse::RecDescent;
+
+(my $directory = shift) =~ s/Parser\.pm//;
+
+chdir $directory;
+open my $fh, '<', 'grammar';
+Parse::RecDescent->Precompile(join('', <$fh>), 'Text::FormBuilder::Parser');
