r3192 - /packages/libfont-ttf-perl/trunk/Makefile.PL

eloy at users.alioth.debian.org eloy at users.alioth.debian.org
Wed Jun 28 12:18:02 UTC 2006


Author: eloy
Date: Wed Jun 28 12:18:02 2006
New Revision: 3192

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=3192
Log:
eloy: proper version of Makefile.PL

Added:
    packages/libfont-ttf-perl/trunk/Makefile.PL   (with props)

Added: packages/libfont-ttf-perl/trunk/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libfont-ttf-perl/trunk/Makefile.PL?rev=3192&op=file
==============================================================================
--- packages/libfont-ttf-perl/trunk/Makefile.PL (added)
+++ packages/libfont-ttf-perl/trunk/Makefile.PL Wed Jun 28 12:18:02 2006
@@ -1,0 +1,44 @@
+use ExtUtils::MakeMaker;
+
+ at theselibs = grep {-f } glob("lib/Font/TTF/*");
+
+# incantation to enable MY::pm_to_blib later on
+if ($^O eq 'MSWin32')
+{
+    push(@ExtUtils::MakeMaker::Overridable, qw(pm_to_blib));
+    @extras = ('dist' => { 'TO_UNIX' => 'perl -Mtounix -e "tounix(\"$(DISTVNAME)\")"' });
+}
+
+WriteMakefile (
+        NAME => "Font::TTF",
+        VERSION_FROM => 'lib/Font/TTF.pm',
+#        VERSION => "0.38",
+#        HTMLLIBPODS => {map {my $t = $_; $t=~s/\..*?$/.html/o; $t='blib/Html/'.$t; $_ => $t;} @theselibs},
+#        HTMLSCRIPTPODS => {map {my $t=$_; $t=~s/\..*?$/.html/o; $t='blib/Html/'.$t; $_ => $t;} @scripts},
+        AUTHOR => "martin_hosken\@sil.org",
+        ABSTRACT => "TTF font support for Perl",
+        @extras
+    );
+
+if ($^O eq 'MSWin32') {
+# incantation to solve the problem of everyone's $Config{make} being 'nmake'
+# when we want 'pmake'. And $Config{} is read only.
+# actually, this is just a copy of the code from ExtUtiles::MM_Win32 tidied
+# up (to expose tabs) and the dependency on Config removed
+sub MY::pm_to_blib
+{
+    my $self = shift;
+    my($autodir) = $self->catdir('$(INST_LIB)','auto');
+    return <<"EOT";
+
+pm_to_blib: \$(TO_INST_PM)
+\t$self->{NOECHO}\$(PERL) \"-I\$(INST_ARCHLINE)\" \"-I\$(INST_LIB)\" \\
+\t\"-I\$(PERL_ARCHLIB)\" \"-I\$(PERL_LIB)\" -MExtUtils::Install \\
+\t-e \"pm_to_blib({ qw[\$(PM_TO_BLIB)] }, '$autodir')
+\t$self->{NOECHO}\$(TOUCH) \$@
+
+EOT
+}
+
+}
+

Propchange: packages/libfont-ttf-perl/trunk/Makefile.PL
------------------------------------------------------------------------------
    svn:executable = *




More information about the Pkg-perl-cvs-commits mailing list