Newport, ja-dvipsk:

Dvipsk converts a DVI file produced by TeX (or other program) to
a PostScript file. Missing fonts can be automatically generated if
METAFONT exists on the system, or can be converted from `gf' to `pk'
format on demand. Dvips also supports `tpic', `psfig', `emtex',
and `METAPOST'.

Submitted by:	Makoto WATANABE <watanabe@zlab.phys.nagoya-u.ac.jp>
PR:		5707
This commit is contained in:
Masafumi Max NAKANE 1998-05-02 22:35:09 +00:00
parent ae74d2183b
commit 83a76502f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=10811
7 changed files with 243 additions and 0 deletions

73
japanese/dvipsk/Makefile Normal file
View File

@ -0,0 +1,73 @@
# New ports collection makefile for: dvipsk + jpatch
# Version required: 5.66a
# Date created: 25 Aug 1997
# Whom: Makoto WATANABE <watanabe@zlab.phys.nagoya-u.ac.jp>
#
# $Id$
#
DISTNAME= dvipsk-5.66a
PKGNAME= ja-dvipsk-5.66a
CATEGORIES= japanese print
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/ptex215/ \
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/ptex215/web2c/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} dvipsk-jpatch-p1.3b.tar.gz
MAINTAINER= watanabe@zlab.phys.nagoya-u.ac.jp
RUN_DEPENDS= ptex-common:${PORTSDIR}/japanese/ptex-common \
${PREFIX}/share/fonts/vf-a2bk:${PORTSDIR}/japanese/vftool
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_path_install="${INSTALL} -c -o ${BINOWN} -g ${BINGRP}"
MAN1= dvips.1 afm2tfm.1
TEXMF= ${PREFIX}/share/texmf
DVIPSDIR= ${TEXMF}/dvips
TEXDIR= ${TEXMF}/tex
BINARIES= dvips afm2tfm
CONTRIB_FILES= 2a4.ps bb.ps bbfig config.fax config.lino config.lj2p \
config.post3x3 config.proto config.rokicki loop.ps \
mkdvipspapers oneline.tex papersize.level2 papersize.simple \
prepipe.ps ptmr.ed ptmro.ed rotsample.tex showpage.ps \
treen.sh treen2.sh
DOCS= ../README.jpatch dvipsk/README \
dvipsk/dvips.texi dvipsk/dvips.help dvipsk/dvips.cps
pre-patch:
@${PATCH} -s -d ${WRKSRC} < ${WRKDIR}/dvipsk.patch
@( cd ${WRKSRC}/dvipsk/contrib ; ${CP} config.rokicki config.ps )
pre-install:
@if [ ! -f ${PREFIX}/info/dir ] ; then \
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir ; \
fi
post-install:
@for i in ${BINARIES} ; do \
strip ${PREFIX}/bin/$$i ; \
done
@${MKDIR} ${DVIPSDIR}/contrib/volker
@${MKDIR} ${TEXDIR}/latex209/dvips
@(\
cd ${WRKSRC}/dvipsk/contrib ; \
${INSTALL_DATA} config.ps ${DVIPSDIR}/config.ps ; \
for i in ${CONTRIB_FILES} volker/*; do \
${INSTALL_DATA} $$i ${DVIPSDIR}/contrib/$$i ; \
done ; \
cd ${WRKSRC}/dvipsk/contrib/latex209 ; \
for i in *.sty ; do \
${INSTALL_DATA} $$i ${TEXDIR}/latex209/dvips/$$i ; \
done \
)
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/dvips
@for i in ${DOCS} ; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/dvips ; \
done
@ln -fs ${DVIPSDIR}/contrib ${PREFIX}/share/doc/dvips/contrib
.endif
@${CAT} ${PKGDIR}/MESSAGE
.include <bsd.port.mk>

2
japanese/dvipsk/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (dvipsk-5.66a.tar.gz) = 2c7006aa4de4840a6dce3cfebc68bdfd
MD5 (dvipsk-jpatch-p1.3b.tar.gz) = 102f00fc5475334161e1728e553c3f3e

View File

@ -0,0 +1,11 @@
--- dvipsk/output.c.orig Sun May 3 06:42:35 1998
+++ dvipsk/output.c Sun May 3 06:42:46 1998
@@ -90,6 +90,8 @@
static Boolean popened = 0 ;
int lastfont ; /* exported to dospecial to fix rotate.tex problem */
static void chrcmd(); /* just a forward declaration */
+void cmdout(); /* just a forward declaration */
+void numout(); /* just a forward declaration */
static char strbuffer[LINELENGTH + 20], *strbp = strbuffer ;
static struct papsiz *finpapsiz ;
struct papsiz defpapsiz = {

View File

@ -0,0 +1,33 @@
--- dvipsk/contrib/config.ps.orig Sun May 3 06:42:37 1998
+++ dvipsk/contrib/config.ps Sun May 3 06:59:56 1998
@@ -4,13 +4,13 @@
*
m 1000000
*
-* And send output by default to the printer.
+* Run as a filter by default.
*
-o !lpr
+f
*
* Default resolution.
*
-D 400
+D 300
*
* Last resort sizes.
*
@@ -21,10 +21,10 @@
* If your default is a4 uncomment the following definition
* and comment out the letterSize definition.
*
-*@ A4size 210mm 297mm
-*@+ %%PaperSize: A4
+@ A4size 210mm 297mm
+@+ %%PaperSize: A4
-@ letterSize 8.5in 11in
+*@ letterSize 8.5in 11in
@ letter 8.5in 11in
@+ %%BeginPaperSize: Letter

View File

@ -0,0 +1 @@
A DVI to PostScript translator + Japanese patch

18
japanese/dvipsk/pkg-descr Normal file
View File

@ -0,0 +1,18 @@
Dvipsk converts a DVI file produced by TeX (or other program) to
a PostScript file. Missing fonts can be automatically generated if
METAFONT exists on the system, or can be converted from `gf' to `pk'
format on demand. Dvips also supports `tpic', `psfig', `emtex',
and `METAPOST'.
The dvipsk program is modified version of Tom Rokicki's dvips and
use the kpathsea library for configuration and path searching.
You may have to set some variables in the path configuration file for
kpathsea /usr/local/share/texmf/web2c/texmf.cnf so that the program
can find PK fonts, Virtual fonts and TFM files. For example,
PKFONTS = .:/usr/local/lib/fonts//:{$dbfonts,$VARTEXFONTS}//pk/$MAKETEX_MODE//
VFFONTS = .:/usr/local/share/fonts/vf-a2bk:$dbfonts//vf//
TFMFONTS = .:/usr/local/share/fonts/vf-a2bk:{$dbfonts,$VARTEXFONTS}//tfm//
- Makoto WATANABE
watanabe@zlab.phys.nagoya-u.ac.jp

105
japanese/dvipsk/pkg-plist Normal file
View File

@ -0,0 +1,105 @@
bin/dvips
bin/afm2tfm
@unexec install-info --delete %D/info/dvips.info %D/info/dir
info/dvips.info
info/dvips.info-1
info/dvips.info-2
info/dvips.info-3
info/dvips.info-4
info/dvips.info-5
@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
@exec install-info %D/info/dvips.info %D/info/dir
man/man1/dvips.1.gz
man/man1/afm2tfm.1.gz
share/texmf/dvips/tex.pro
share/texmf/dvips/texps.pro
share/texmf/dvips/texc.pro
share/texmf/dvips/special.pro
share/texmf/dvips/finclude.pro
share/texmf/dvips/color.pro
share/texmf/dvips/crop.pro
share/texmf/dvips/hps.pro
share/texmf/dvips/8a.enc
share/texmf/dvips/8r.enc
share/texmf/dvips/ad.enc
share/texmf/dvips/asex.enc
share/texmf/dvips/asexp.enc
share/texmf/dvips/cork.enc
share/texmf/dvips/dc.enc
share/texmf/dvips/dvips.enc
share/texmf/dvips/funky.enc
share/texmf/dvips/texmext.enc
share/texmf/dvips/texmital.enc
share/texmf/dvips/texmsym.enc
share/texmf/dvips/xl2.enc
share/texmf/dvips/xt2.enc
share/texmf/dvips/config.ps
share/texmf/dvips/psfonts.map
share/texmf/dvips/contrib/2a4.ps
share/texmf/dvips/contrib/bb.ps
share/texmf/dvips/contrib/bbfig
share/texmf/dvips/contrib/config.fax
share/texmf/dvips/contrib/config.lino
share/texmf/dvips/contrib/config.lj2p
share/texmf/dvips/contrib/config.post3x3
share/texmf/dvips/contrib/config.proto
share/texmf/dvips/contrib/config.rokicki
share/texmf/dvips/contrib/loop.ps
share/texmf/dvips/contrib/mkdvipspapers
share/texmf/dvips/contrib/oneline.tex
share/texmf/dvips/contrib/papersize.level2
share/texmf/dvips/contrib/papersize.simple
share/texmf/dvips/contrib/prepipe.ps
share/texmf/dvips/contrib/ptmr.ed
share/texmf/dvips/contrib/ptmro.ed
share/texmf/dvips/contrib/rotsample.tex
share/texmf/dvips/contrib/showpage.ps
share/texmf/dvips/contrib/treen.sh
share/texmf/dvips/contrib/treen2.sh
share/texmf/dvips/contrib/volker/README
share/texmf/dvips/contrib/volker/config.a3
share/texmf/dvips/contrib/volker/config.duplong
share/texmf/dvips/contrib/volker/config.dupshort
share/texmf/dvips/contrib/volker/config.inv
share/texmf/dvips/contrib/volker/config.screen100
share/texmf/dvips/contrib/volker/config.screen100-0
share/texmf/dvips/contrib/volker/config.screen110
share/texmf/dvips/contrib/volker/config.screen120
share/texmf/dvips/contrib/volker/config.screen130
share/texmf/dvips/contrib/volker/config.screen140
share/texmf/dvips/contrib/volker/config.screen150
share/texmf/dvips/contrib/volker/config.screen70
share/texmf/dvips/contrib/volker/config.screen80
share/texmf/dvips/contrib/volker/config.screen85
share/texmf/dvips/contrib/volker/config.screen90
share/texmf/dvips/contrib/volker/config.simplex
share/texmf/tex/plain/dvips/blackdvi.tex
share/texmf/tex/plain/dvips/colordvi.tex
share/texmf/tex/plain/dvips/epsf.tex
share/texmf/tex/plain/dvips/rotate.tex
share/texmf/tex/latex209/dvips/avantgarde.sty
share/texmf/tex/latex209/dvips/blackdvi.sty
share/texmf/tex/latex209/dvips/bookman.sty
share/texmf/tex/latex209/dvips/chancery.sty
share/texmf/tex/latex209/dvips/colordvi.sty
share/texmf/tex/latex209/dvips/epsf.sty
share/texmf/tex/latex209/dvips/lucida.sty
share/texmf/tex/latex209/dvips/ncs.sty
share/texmf/tex/latex209/dvips/palatino.sty
share/texmf/tex/latex209/dvips/psfonts.sty
share/texmf/tex/latex209/dvips/psgreek.sty
share/texmf/tex/latex209/dvips/rotate.sty
share/texmf/tex/latex209/dvips/times.sty
share/doc/dvips/README
share/doc/dvips/README.jpatch
share/doc/dvips/dvips.texi
share/doc/dvips/dvips.help
share/doc/dvips/dvips.cps
@exec ln -fs %D/share/texmf/dvips/contrib %D/share/doc/dvips/contrib
@unexec rm %D/share/doc/dvips/contrib
@dirrm share/texmf/dvips/contrib/volker
@dirrm share/texmf/dvips/contrib
@dirrm share/texmf/dvips
@dirrm share/texmf/tex/plain/dvips
@dirrm share/texmf/tex/latex209/dvips
@dirrm share/doc/dvips