Author: kwilliams
Date: Sun Feb 17 12:22:36 2008
New Revision: 10769

Modified:
   ExtUtils-CBuilder/trunk/Build.PL
   ExtUtils-CBuilder/trunk/Changes
   ExtUtils-CBuilder/trunk/Makefile.PL

Log:
Install to core when appropriate

Modified: ExtUtils-CBuilder/trunk/Build.PL
==============================================================================
--- ExtUtils-CBuilder/trunk/Build.PL    (original)
+++ ExtUtils-CBuilder/trunk/Build.PL    Sun Feb 17 12:22:36 2008
@@ -19,6 +19,7 @@
                  resources => {repository => 
'http://svn.perl.org/modules/ExtUtils-CBuilder'},
                 },
    sign => 1,
+   installdirs => ($] >= 5.009003 ? 'core' : 'site'),
   );
 
 $build->create_build_script;

Modified: ExtUtils-CBuilder/trunk/Changes
==============================================================================
--- ExtUtils-CBuilder/trunk/Changes     (original)
+++ ExtUtils-CBuilder/trunk/Changes     Sun Feb 17 12:22:36 2008
@@ -1,5 +1,8 @@
 Revision history for Perl extension ExtUtils::CBuilder.
 
+ - Will now install in the core perl lib directory when the user's
+   perl is new enough to have us in core. [Yi Ma Mao]
+
 0.22 - Fri Feb  8 21:52:21 2008
 
  - Replaced the split_like_shell() method on Windows with a

Modified: ExtUtils-CBuilder/trunk/Makefile.PL
==============================================================================
--- ExtUtils-CBuilder/trunk/Makefile.PL (original)
+++ ExtUtils-CBuilder/trunk/Makefile.PL Sun Feb 17 12:22:36 2008
@@ -11,7 +11,7 @@
                            'Test' => '0',
                            'Text::ParseWords' => '0'
                          },
-          'INSTALLDIRS' => 'site',
+          'INSTALLDIRS' => ($] >= 5.009003 ? 'perl' : 'site'),
           'EXE_FILES' => [],
           'PL_FILES' => {}
         )

Reply via email to