Update Unicode::Normalize to 0.28
[p5sagit/p5-mst-13.2.git] / ext / Unicode / Normalize / Makefile.PL
index 8688132..2f37b62 100644 (file)
@@ -1,35 +1,5 @@
 use ExtUtils::MakeMaker;
 
-# This code for XS-NOXS installer is shamelessly stolen
-# after Gurusamy Sarathy's Data::Dumper. Thank you!
-
-# a bit modified.
-
-use File::Copy qw();
-
-my $arg = $ARGV[0] || "";
-
-if ($arg =~ /^no/i and -f "Normalize.xs") {
-    print STDERR "Disabling XS in sources...\n";
-
-    die "***** Failed, sources could be inconsistent! *****\n"
-     unless File::Copy::move('MANIFEST',       'MANIFEST.XS')
-       and File::Copy::move('MANIFEST.NXS',    'MANIFEST')
-       and File::Copy::move('Normalize.pm',    'Normalize.pm.XS')
-       and File::Copy::move('Normalize.xs',    'Normalize.xs.XS')
-       and File::Copy::move('Normalize.pm.NXS','Normalize.pm');
-}
-if ($arg =~ /^xs/i and -f "Normalize.xs.XS") {
-    print STDERR "Enabling XS in sources...\n";
-
-    die "***** Failed, sources could be inconsistent! *****\n"
-     unless File::Copy::move('MANIFEST',       'MANIFEST.NXS')
-       and File::Copy::move('MANIFEST.XS',     'MANIFEST')
-       and File::Copy::move('Normalize.pm',    'Normalize.pm.NXS')
-       and File::Copy::move('Normalize.xs.XS', 'Normalize.xs')
-       and File::Copy::move('Normalize.pm.XS', 'Normalize.pm');
-}
-
 my $clean = {};
 
 if (-f "Normalize.xs") {
@@ -40,7 +10,7 @@ if (-f "Normalize.xs") {
 }
 
 WriteMakefile(
-    'INSTALLDIRS'      => $] > 5.007 ? 'perl' : 'site',
+    'INSTALLDIRS'      => $] >= 5.007 ? 'perl' : 'site',
     'NAME'             => 'Unicode::Normalize',
     'VERSION_FROM'     => 'Normalize.pm', # finds $VERSION
     'clean'            => $clean,