|
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 | |
|---|
| 1 | use strict; |
|---|
| 2 | use lib "../..", "../../inc"; |
|---|
| 3 | use inc::Module::Install ( |
|---|
| 4 | -d '../../misc/pX' ? (prefix => '../../inc') : () |
|---|
| 5 | ); |
|---|
| 6 | use File::Path; |
|---|
| 7 | |
|---|
| 8 | name ('Perl6-Doc'); |
|---|
| 9 | version (0.01); |
|---|
| 10 | license ('perl'); |
|---|
| 11 | |
|---|
| 12 | install_script( 'p6doc' ); |
|---|
| 13 | makemaker_args( PMLIBDIRS => [ grep { -d } glob("[A-Z]*") ]); |
|---|
| 14 | |
|---|
| 15 | system "$^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. |
|---|
| 24 | my $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. |
|---|
| 32 | WritePugs (5); |
|---|
| 33 | |
|---|
| 34 | # Remove our cheat so other modules get expected behavior. |
|---|
| 35 | *ExtUtils::MM_Win32::max_exec_len = $holdme; |
|---|