Sat Jan 16 03:48:32 2010 UTC ()
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.

Status:

Vendor Tag:	TNF
Release Tags:	pkgsrc-base


(minskim)
diff -r0 -r1.1.1.1 pkgsrc/print/tex-pkfix/DESCR
diff -r0 -r1.1.1.1 pkgsrc/print/tex-pkfix/Makefile
diff -r0 -r1.1.1.1 pkgsrc/print/tex-pkfix/PLIST
diff -r0 -r1.1.1.1 pkgsrc/print/tex-pkfix/distinfo
diff -r0 -r1.1.1.1 pkgsrc/print/tex-pkfix/patches/patch-aa

File Added: pkgsrc/print/tex-pkfix/DESCR
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.

File Added: pkgsrc/print/tex-pkfix/Makefile
# $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"

File Added: pkgsrc/print/tex-pkfix/PLIST
@comment $NetBSD: PLIST,v 1.1.1.1 2010/01/16 03:48:32 minskim Exp $
bin/pkfix

File Added: pkgsrc/print/tex-pkfix/distinfo
$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

File Added: pkgsrc/print/tex-pkfix/patches/patch-aa
$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;