diff options
author | minskim <minskim@pkgsrc.org> | 2010-01-16 03:48:32 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2010-01-16 03:48:32 +0000 |
commit | 08e56dfea8f26e80ddbd6332fbb14b2c059623d1 (patch) | |
tree | 31ba0f86e266a0b2f6cae8225c4b9916bf8500b7 | |
parent | fd2354e72c04d08e9bb3f1cca0c5fedf55ac2c53 (diff) | |
download | pkgsrc-08e56dfea8f26e80ddbd6332fbb14b2c059623d1.tar.gz |
Import tex-pkfix-1.5 as print/tex-pkfix.
The perl script pkfix looks for DVIPSBitmapFont comments in PostScript
files, generated by 'not too old' dvips, and replaces them by type 1
versions of the fonts, if possible.
-rw-r--r-- | print/tex-pkfix/DESCR | 3 | ||||
-rw-r--r-- | print/tex-pkfix/Makefile | 37 | ||||
-rw-r--r-- | print/tex-pkfix/PLIST | 2 | ||||
-rw-r--r-- | print/tex-pkfix/distinfo | 6 | ||||
-rw-r--r-- | print/tex-pkfix/patches/patch-aa | 24 |
5 files changed, 72 insertions, 0 deletions
diff --git a/print/tex-pkfix/DESCR b/print/tex-pkfix/DESCR new file mode 100644 index 00000000000..ce6604bf6bc --- /dev/null +++ b/print/tex-pkfix/DESCR @@ -0,0 +1,3 @@ +The perl script pkfix looks for DVIPSBitmapFont comments in PostScript +files, generated by 'not too old' dvips, and replaces them by type 1 +versions of the fonts, if possible. diff --git a/print/tex-pkfix/Makefile b/print/tex-pkfix/Makefile new file mode 100644 index 00000000000..747d4331104 --- /dev/null +++ b/print/tex-pkfix/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/01/16 03:48:32 minskim Exp $ +# TeX Live Revision 15878 + +DISTNAME= pkfix +PKGNAME= tex-${DISTNAME}-1.5 + +MAINTAINER= minskim@NetBSD.org +COMMENT= Script to replace pk fonts in PostScript with Type 1 fonts + +CONFLICTS+= tex-bin-dvipsk<=2008.12898 +DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk +DEPENDS+= kpathsea-[0-9]*:../../print/kpathsea +DEPENDS+= web2c-[0-9]*:../../print/web2c + +USE_TOOLS+= perl:run +REPLACE_PERL= bin/pkfix + +SUBST_CLASSES+= paths +SUBST_MESSAGE.paths= Setting paths to commands. +SUBST_STAGE.paths= pre-configure +SUBST_FILES.paths= bin/pkfix +SUBST_SED.paths= -e 's,@DVIPS@,${LOCALBASE}/bin/dvips,g' \ + -e 's,@KPSEWHICH@,${LOCALBASE}/bin/kpsewhich,g' \ + -e 's,@TEX@,${LOCALBASE}/bin/tex,g' + +INSTALLATION_DIRS+= bin + +TEX_TEXMF_DIRS= none + +.include "../../print/texlive/package.mk" + +post-extract: + ${MKDIR} ${WRKSRC}/bin + ${MV} ${WRKSRC}/texmf-dist/scripts/pkfix/pkfix.pl ${WRKSRC}/bin/pkfix + ${RM} -rf ${WRKSRC}/texmf-dist + +.include "../../mk/bsd.pkg.mk" diff --git a/print/tex-pkfix/PLIST b/print/tex-pkfix/PLIST new file mode 100644 index 00000000000..1cacf8e7009 --- /dev/null +++ b/print/tex-pkfix/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/01/16 03:48:32 minskim Exp $ +bin/pkfix diff --git a/print/tex-pkfix/distinfo b/print/tex-pkfix/distinfo new file mode 100644 index 00000000000..b6c722eb8f7 --- /dev/null +++ b/print/tex-pkfix/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/01/16 03:48:32 minskim Exp $ + +SHA1 (tex-pkfix-1.5/pkfix.tar.xz) = 437303b31e613412d52907077256ce6ca890bc43 +RMD160 (tex-pkfix-1.5/pkfix.tar.xz) = e023086ba78df359db4f0bde9091b5ffb8adfa23 +Size (tex-pkfix-1.5/pkfix.tar.xz) = 7440 bytes +SHA1 (patch-aa) = 7cba03d89d4757ac985be4649d6bb7e0a29cb963 diff --git a/print/tex-pkfix/patches/patch-aa b/print/tex-pkfix/patches/patch-aa new file mode 100644 index 00000000000..0d515aa61c6 --- /dev/null +++ b/print/tex-pkfix/patches/patch-aa @@ -0,0 +1,24 @@ +$NetBSD: patch-aa,v 1.1.1.1 2010/01/16 03:48:32 minskim Exp $ + +--- bin/pkfix.orig 2009-03-23 10:15:15.000000000 -0700 ++++ bin/pkfix +@@ -1,5 +1,4 @@ +-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $argv:q' +- if 0; ++#! /usr/bin/perl + use strict; + $^W=1; # turn warning on + # +@@ -117,9 +116,9 @@ my $PRT = \*STDOUT; + + ### option variables + my @bool = ("false", "true"); +-$::opt_tex = "tex"; +-$::opt_dvips = "dvips"; +-$::opt_kpsewhich = "kpsewhich --progname $project"; ++$::opt_tex = "@TEX@"; ++$::opt_dvips = "@DVIPS@"; ++$::opt_kpsewhich = "@KPSEWHICH@ --progname $project"; + $::opt_options = "-Ppdf -G0"; + $::opt_usetex = 0; + $::opt_help = 0; |