Update module to reflect new case API
[pspp-builds.git] / perl-module / Makefile.PL
index 40b14efdf66b894ecafee14c32e61608c03edd33..77505f2f27ecaa5e4b5f14a1afdecb6938611992 100644 (file)
@@ -5,14 +5,16 @@ use ExtUtils::MakeMaker;
 
 
 do 'pspp-module-config' || do {
-    my $src = prompt ("Enter the location of the full pspp source","../pspp");
-    my $build = prompt ("Enter the location of the pspp build directory", "$src" );
+    my $build = prompt ("Enter the location of the build directory of the configured pspp source:", "" );
+    do 'lib/pspp-vers.pl' || die "No version info";
+    my $src = $top_srcdir;
 
     %Locations = (SourceDir => "$src", BuildDir => "$build");
 };
 
 WriteMakefile(
     NAME              => 'PSPP',
+    DISTNAME          => 'PSPP-Perl',
     VERSION_FROM      => "$Locations{BuildDir}/src/libpspp/version.c", 
     PREREQ_PM         => {POSIX=>0}, 
     ($] >= 5.005 ?     ## Add these new keywords supported since 5.005