Update Unicode::Normalize to 0.28
[p5sagit/p5-mst-13.2.git] / ext / Unicode / Normalize / Makefile.PL
index 2b834d7..2f37b62 100644 (file)
@@ -1,15 +1,17 @@
 use ExtUtils::MakeMaker;
 
-# This is not the CPAN Unicode::Normalize makefile
-# that can handle XS-NOXS installing.  We do just XS.
+my $clean = {};
 
-do "mkheader";
+if (-f "Normalize.xs") {
+    print STDERR "Making header files for XS...\n";
+
+    do "mkheader";
+    $clean = { FILES => 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h' };
+}
 
 WriteMakefile(
+    'INSTALLDIRS'      => $] >= 5.007 ? 'perl' : 'site',
     'NAME'             => 'Unicode::Normalize',
     'VERSION_FROM'     => 'Normalize.pm', # finds $VERSION
-    ($] >= 5.005 ?    ## Add these new keywords supported since 5.005
-      (ABSTRACT_FROM => 'Normalize.pm', # retrieve abstract from module
-       AUTHOR     => 'SADAHIRO Tomoyuki <SADAHIRO@cpan.org>') : ()),
-    clean => {FILES=> 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h'},
+    'clean'            => $clean,
 );