r2436 - packages/libfont-ttf-perl/branches/upstream/current

gregor herrmann gregoa-guest at costa.debian.org
Sat Mar 18 17:59:32 UTC 2006


Author: gregoa-guest
Date: 2006-03-18 17:59:32 +0000 (Sat, 18 Mar 2006)
New Revision: 2436

Added:
   packages/libfont-ttf-perl/branches/upstream/current/Makefile.PL
Modified:
   packages/libfont-ttf-perl/branches/upstream/current/MANIFEST
   packages/libfont-ttf-perl/branches/upstream/current/MANIFEST.SKIP
Log:
Load /tmp/tmp.zUYDxb/libfont-ttf-perl-0.38.1 into
packages/libfont-ttf-perl/branches/upstream/current.


Modified: packages/libfont-ttf-perl/branches/upstream/current/MANIFEST
===================================================================
--- packages/libfont-ttf-perl/branches/upstream/current/MANIFEST	2006-03-18 17:48:25 UTC (rev 2435)
+++ packages/libfont-ttf-perl/branches/upstream/current/MANIFEST	2006-03-18 17:59:32 UTC (rev 2436)
@@ -60,6 +60,7 @@
 lib/Font/TTF/Win32.pm
 lib/Font/TTF/XMLparse.pm
 lib/ttfmod.pl
+Makefile.PL
 MANIFEST			This list of files
 MANIFEST.SKIP
 META.yml

Modified: packages/libfont-ttf-perl/branches/upstream/current/MANIFEST.SKIP
===================================================================
--- packages/libfont-ttf-perl/branches/upstream/current/MANIFEST.SKIP	2006-03-18 17:48:25 UTC (rev 2435)
+++ packages/libfont-ttf-perl/branches/upstream/current/MANIFEST.SKIP	2006-03-18 17:59:32 UTC (rev 2436)
@@ -10,5 +10,5 @@
 \.cvsignore
 ^#
 \.svn/
-Makefile
+^Makefile$
 ~$

Added: packages/libfont-ttf-perl/branches/upstream/current/Makefile.PL
===================================================================
--- packages/libfont-ttf-perl/branches/upstream/current/Makefile.PL	2006-03-18 17:48:25 UTC (rev 2435)
+++ packages/libfont-ttf-perl/branches/upstream/current/Makefile.PL	2006-03-18 17:59:32 UTC (rev 2436)
@@ -0,0 +1,39 @@
+use ExtUtils::MakeMaker;
+
+ at theselibs = grep {-f } glob("lib/Font/TTF/*");
+
+# incantation to enable MY::pm_to_blib later on
+push(@ExtUtils::MakeMaker::Overridable, qw(pm_to_blib)) if ($^O eq 'MSWin32');
+
+WriteMakefile (
+        NAME => "Font::TTF",
+        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",
+        dist => { 'TO_UNIX' => 'perl -Mtounix -e "tounix(\"$(DISTVNAME)\")"' }
+    );
+
+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
+}
+
+}
+




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