[packages/perl-Font-TFM] Up to 1.01
arekm
arekm at pld-linux.org
Thu Nov 19 11:30:11 CET 2026
commit e781d7ba1bb81a80c64c219dfb589865ccc3fa80
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 19 00:29:14 2026 +0100
Up to 1.01
perl-Font-TFM-fontpath.patch | 27 ++++++++-------------------
perl-Font-TFM-processPL.patch | 12 ++++++++++++
perl-Font-TFM.spec | 8 +++++---
3 files changed, 25 insertions(+), 22 deletions(-)
---
diff --git a/perl-Font-TFM.spec b/perl-Font-TFM.spec
index 8361262..044185a 100644
--- a/perl-Font-TFM.spec
+++ b/perl-Font-TFM.spec
@@ -7,14 +7,15 @@
Summary: Font::TFM - read information from TeX font metric files
Summary(pl.UTF-8): Font::TFM - odczyt informacji z plików metryk fontów TeX-a
Name: perl-Font-TFM
-Version: 0.130
-Release: 7
+Version: 1.01
+Release: 1
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 3ae79cc6321df135e14ea50227543415
+# Source0-md5: ce5991aebc38afe64e858c5253e0dfc7
Patch0: %{name}-fontpath.patch
+Patch1: %{name}-processPL.patch
URL: http://search.cpan.org/dist/Font-TFM/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
@@ -31,6 +32,7 @@ Moduł Perla Font::TFM umożliwia pracę na plikach metryk fontów TeXa.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%patch -P0 -p1
+%patch -P1 -p1
%build
%{__perl} Makefile.PL </dev/null \
diff --git a/perl-Font-TFM-fontpath.patch b/perl-Font-TFM-fontpath.patch
index 9879abe..2dcef04 100644
--- a/perl-Font-TFM-fontpath.patch
+++ b/perl-Font-TFM-fontpath.patch
@@ -1,13 +1,12 @@
---- Font-TFM-0.130/Makefile.PL.orig Tue Jul 23 13:50:29 2002
-+++ Font-TFM-0.130/Makefile.PL Tue Jul 23 13:52:57 2002
-@@ -1,16 +1,20 @@
+--- Font-TFM-1.01/Makefile.PL.orig
++++ Font-TFM-1.01/Makefile.PL
+@@ -1,16 +1,7 @@
use ExtUtils::MakeMaker;
--my $dir = '.:/packages/share/tex/lib/fonts';
-+my $dir = '.:/usr/share/texmf/fonts/tfm:/usr/share/texmf/source/generic/xypic/texfonts:/usr/share/texmf/source/latex/concmath/fonts/tfm:/usr/share/texmf/source/latex/sueterlin';
-
- eval 'use Font::TFM';
+-my $dir = '.';
+-
+-eval 'use Font::TFM';
-if ($@ eq '' and defined $Font::TFM::TEXFONTSDIR) {
- print <<EOF;
- It seems you already have Font::TFM installed -- you might
@@ -15,17 +14,7 @@
-EOF
- $dir = $Font::TFM::TEXFONTSDIR;
-}
-+
-+# Commented out for PLD: don't attempt to use previous (probably bogus)
-+# config
-+#
-+#if ($@ eq '' and defined $Font::TFM::TEXFONTSDIR) {
-+# print <<EOF;
-+# It seems you already have Font::TFM installed -- you might
-+# want to keep the old value of TEXFONTSDIR.
-+#EOF
-+# $dir = $Font::TFM::TEXFONTSDIR;
-+#}
++my $dir = '.:/usr/share/texmf/fonts/tfm:/usr/share/texmf/source/generic/xypic/texfonts:/usr/share/texmf/source/latex/concmath/fonts/tfm:/usr/share/texmf/source/latex/sueterlin';
- $dir = prompt "Where should I search for tfm files (value of \$Font::TFM::TEXFONTSDIR)\n", $dir;
+ $dir = prompt "The search path for tfm files (value of \$Font::TFM::TEXFONTSDIR)\n", $dir;
diff --git a/perl-Font-TFM-processPL.patch b/perl-Font-TFM-processPL.patch
new file mode 100644
index 0000000..f565e34
--- /dev/null
+++ b/perl-Font-TFM-processPL.patch
@@ -0,0 +1,12 @@
+# MakeMaker >= 6.5x emits $(PERLRUN) with no options, so the TEXFONTSDIR substitution never matched
+--- Font-TFM-1.01/Makefile.PL.orig
++++ Font-TFM-1.01/Makefile.PL
+@@ -18,7 +18,7 @@
+ sub MY::processPL {
+ package MY;
+ my $inherited = shift->SUPER::processPL(@_);
+- $inherited =~ s/(\$\(PERL\) .* TFM.pm.PL)/$1 -dTEXFONTSDIR=$dir/;
++ $inherited =~ s/(\$\(PERL(?:RUN)?\) (?:.* )?TFM.pm.PL)/$1 -dTEXFONTSDIR=$dir/;
+ $inherited;
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Font-TFM.git/commitdiff/e781d7ba1bb81a80c64c219dfb589865ccc3fa80
More information about the pld-cvs-commit
mailing list