[Module-build-general] patch for cygwin
Status: Beta
Brought to you by:
kwilliams
|
From: Yitzchak Scott-T. <sth...@ef...> - 2003-09-24 08:25:57
|
Couldn't install Module::Build...the manpage names contain colons.
Patch below fixes it. Looking at MakeMaker, I see MM_UWIN and MM_OS2
($^O eq 'uwin' and 'os2', respectively) also use '.', but have no
special code in Module::Build. MakeMaker uses '__' for DOS,
Module::Build uses '.' (via Platform/Windows.pm).
I left os_type as Unix for cygwin. Darwin does the same. You might
think about implementing an os_flavor ala MakeMaker instead (where one
platform can list multiple types) with an os_flavor_is(@foo) routine
checking if any of the @foo types apply.
Would have been nice if install.t had caught the problem instead of
the actual install failing midway, but the install.t only tries a
top-level module name.
t/xs.t is failing tests 4 and 8. I'm not sure how to translate the
other things MM_Cygwin does into Module::Build terms.
diff -ruN Module-Build-0.20.orig/MANIFEST Module-Build-0.20/MANIFEST
--- Module-Build-0.20.orig/MANIFEST 2003-08-05 09:45:51.000000000 -0700
+++ Module-Build-0.20/MANIFEST 2003-09-23 22:59:34.570513600 -0700
@@ -20,6 +20,7 @@
lib/Module/Build/Platform/VMS.pm
lib/Module/Build/Platform/VOS.pm
lib/Module/Build/Platform/Windows.pm
+lib/Module/Build/Platform/cygwin.pm
lib/Module/Build/Platform/darwin.pm
t/MANIFEST
t/Sample/Build.PL
diff -ruN Module-Build-0.20.orig/lib/Module/Build/Platform/cygwin.pm Module-Build-0.20/lib/Module/Build/Platform/cygwin.pm
--- Module-Build-0.20.orig/lib/Module/Build/Platform/cygwin.pm 1969-12-31 16:00:00.000000000 -0800
+++ Module-Build-0.20/lib/Module/Build/Platform/cygwin.pm 2003-09-23 22:23:13.474251200 -0700
@@ -0,0 +1,36 @@
+package Module::Build::Platform::cygwin;
+
+use strict;
+use Module::Build::Platform::Unix;
+
+use vars qw(@ISA);
+@ISA = qw(Module::Build::Platform::Unix);
+
+sub manpage_separator {
+ '.'
+}
+
+1;
+__END__
+
+
+=head1 NAME
+
+Module::Build::Platform::cygwin - Builder class for Cygwin platform
+
+=head1 DESCRIPTION
+
+This module provides some routines very specific to the cygwin
+platform.
+
+Please see the L<Module::Build> for the general docs.
+
+=head1 AUTHOR
+
+Initial stub by Yitzchak Scott-Thoennes, sth...@ef...
+
+=head1 SEE ALSO
+
+perl(1), Module::Build(3), ExtUtils::MakeMaker(3)
+
+=cut
End of Patch.
|