#!perl -w require 5.008002; use strict; use ExtUtils::MakeMaker; print < $NAME, VERSION_FROM => $MODULE, ABSTRACT => 'Perl XUL interface', AUTHOR => 'Ran Eilam ', dist => {COMPRESS => 'gzip --force --best'}, PL_FILES => {"$SERVER_SCRIPT.PL" => $SERVER_SCRIPT}, EXE_FILES => [$SERVER_SCRIPT], clean => {FILES => "$SERVER_SCRIPT"}, PREREQ_PM => { POE => 0.2802, Aspect => 0.09_02, 'Digest::MD5' => 2.3, 'LWP' => 5.75, 'MIME::Types' => 1.13, 'Scalar::Util' => 1.13, 'POE::Component::Server::HTTPServer' => 0.9, 'Test::Class' => 0.06_5, 'Test::Exception' => 0.15, }, ); print <SUPER::install(@_); my $add = 'install_server'; $basic =~ s/^(install\s+::\s+.*)$/$1 $add/m; $basic; } # add port and install_dir to script generator command line args sub processPL { my $inherited = shift->SUPER::processPL(@_); $inherited =~ s |($SERVER_SCRIPT\.PL $SERVER_SCRIPT)|$1 $PORT $INSTALL_DIR|; $inherited; }