Permalink
Browse files

Added sungo's makefile magic.

  • Loading branch information...
1 parent 1c713d1 commit ac1c8bdbb6e1a23c75cafb304a4d89c2c0de9a18 @rcaputo committed May 15, 2002
Showing with 852 additions and 42 deletions.
  1. +2 −0 MANIFEST
  2. +21 −42 Makefile.PL
  3. +693 −0 mylib/AutoInstall.pm
  4. +49 −0 mylib/Makefile-5004.pm
  5. +87 −0 mylib/Makefile-5005.pm
View
@@ -42,6 +42,8 @@ README
TODO
lib/Devel/Null.pm
lib/Devel/Trace.pm
+lib/Makefile-5004.pm
+lib/Makefile-5005.pm
lib/MyOtherFreezer.pm
lib/TestSetup.pm
lib/coverage.perl
View
@@ -1,48 +1,27 @@
#!/usr/bin/perl
-# $Id$
+use strict;
use ExtUtils::MakeMaker;
-# Add a new target.
-
-sub MY::test {
- package MY;
- "\ntest ::\n\t\$(FULLPERL) ./lib/deptest.perl\n" . shift->SUPER::test(@_);
+warn $];
+
+eval "use 5.005_05";
+if ($@) {
+ warn( "\n",
+ "================================================================\n",
+ "\n",
+ "Perl 5.004 support is deprecated and will be disappearing soon.\n",
+ "Please upgrade to 5.005_03 or newer. Try installing POE with a\n",
+ "newer version of Perl to see what you're missing. :)\n",
+ "\n",
+ "================================================================\n",
+ "\n",
+ );
+
+ require "./lib/Makefile-5004.pm";
+}
+else {
+ require "./lib/Makefile-5005.pm";
}
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence the
-# contents of the Makefile that is written.
-
-WriteMakefile
- ( NAME => 'POE',
-
- ( ($^O eq 'MacOS')
- ? ()
- : ( AUTHOR => 'Rocco Caputo <rcaputo@cpan.org>',
- ABSTRACT => 'Event driven threads and I/O abstractions.',
- )
- ),
-
- VERSION_FROM => 'POE.pm',
- dist => { 'COMPRESS' => 'gzip -9f',
- 'SUFFIX' => 'gz',
- },
- PREREQ_PM => { Carp => 0,
- Exporter => 0,
- IO => 0,
- POSIX => 0,
- Socket => 0,
- Filter::Util::Call => 1.04,
- },
-
- # Remove 'lib', which should have been named 'privlib'. The 'lib'
- # directory in this distribution is for private stuff needed to
- # build and test POE. Those things should not be installed! At
- # some point SourceForge will open up shell access to my CVS tree
- # there, and I will be able to rename the directories within the
- # repository without losing revision histories. When that
- # happens, I'll rename the 'lib' driectory to 'privlib'.
- PMLIBDIRS => [ 'POE' ],
- );
-
-exit 0 unless $^O eq 'MacOS';
+0;
Oops, something went wrong.

0 comments on commit ac1c8bd

Please sign in to comment.