X-Git-Url: http://git.maemo.org/git/?p=dh-make-perl;a=blobdiff_plain;f=dev%2Fi386%2Fliburi-perl%2Fliburi-perl-1.35.dfsg.1%2FMakefile.PL;fp=dev%2Fi386%2Fliburi-perl%2Fliburi-perl-1.35.dfsg.1%2FMakefile.PL;h=e9647272a220b0590f8e7e1b5d393faa6c3fbee5;hp=0000000000000000000000000000000000000000;hb=8977e561d8a9eae6959218b0306c9df2056a38a9;hpb=df794b845212301ea0d267c919232538bfef356a diff --git a/dev/i386/liburi-perl/liburi-perl-1.35.dfsg.1/Makefile.PL b/dev/i386/liburi-perl/liburi-perl-1.35.dfsg.1/Makefile.PL new file mode 100644 index 0000000..e964727 --- /dev/null +++ b/dev/i386/liburi-perl/liburi-perl-1.35.dfsg.1/Makefile.PL @@ -0,0 +1,26 @@ +require 5.004; +use ExtUtils::MakeMaker; + +if ("foo" !~ /\Afoo\z/) { + for $file ("URI", "URI/urn") { + print "\\z not supported by this perl. Fixing $file.pm...\n"; + rename("$file.pm", "$file.pm.bak") || die; + open( IN, "<$file.pm.bak" ) || die; + open( OUT, ">$file.pm" ) || die; + while( ) { + $_ =~ s/\\z/\\Z/g; + print OUT; + } + close( OUT ) || die; + close( IN ) || die; + } +} + +WriteMakefile( + 'NAME' => 'URI', + 'VERSION_FROM' => 'URI.pm', + 'PREREQ_PM' => { + 'MIME::Base64' => 2, + }, + dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, +);