root/docs/Perl6/Makefile.PL

Revision 14408, 0.9 kB (checked in by lanny, 2 years ago)

[docs/Perl6/Makefile.PL]
* Back out previous attempt fix.
* Put in a real fix (tested) for nmake-1.5 issues on Win32.
* nmake version 1.5 should be able to run the Makefile produced now

  • Property svn:mime-type set to text/plain; charset=UTF-8
  • Property svn:eol-style set to native
Line 
1use strict;
2use lib "../..", "../../inc";
3use inc::Module::Install (
4    -d '../../misc/pX' ? (prefix => '../../inc') : ()
5);
6use File::Path;
7
8name       ('Perl6-Doc');
9version    (0.01);
10license    ('perl');
11
12install_script( 'p6doc' );
13makemaker_args( PMLIBDIRS => [ grep { -d } glob("[A-Z]*") ]);
14
15system "$^X Spec/update";
16
17# On Win32 using nmake-1.5 the Makefile produced will die.
18# This is a result of a hueristic in ExtUtils::MM_Any::split_command().
19# There is a bug open on this
20#
21#   http://rt.cpan.org/Public/Bug/Display.html?id=20145
22#
23# Install a cheat until a real fix comes along.
24my $holdme = \&ExtUtils::MM_Win32::max_exec_len;
25
26*ExtUtils::MM_Win32::max_exec_len = sub {
27    my $self = shift;
28    $self->{_MAX_EXEC_LEN} ||= 1.67 * 1024;
29};
30
31# Do the needful for writing the Makefile.
32WritePugs  (5);
33
34# Remove our cheat so other modules get expected behavior.
35*ExtUtils::MM_Win32::max_exec_len = $holdme;
Note: See TracBrowser for help on using the browser.