summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorJustin M. Seger <jseger@FreeBSD.org>1998-12-22 00:59:15 +0000
committerJustin M. Seger <jseger@FreeBSD.org>1998-12-22 00:59:15 +0000
commitdd5734da9301d57f27a3221dac75781579049363 (patch)
treeba73d05fe600b4ceea10c9879e9e697f5f255ce5 /japanese
parentupgrade to 1.4 (diff)
Import of ja-dvi2dvi v 1.0
The program dvi2dvi is a DVI to DVI transformer. It can transform from a dvi file created by ASCII Japanese TeX/pTeX into a NTT JTeX type of dvi file, as well as the opposite transform of that. PR: ports/5706 Submitted by: Makoto WATANABE
Notes
Notes: svn path=/head/; revision=15463
Diffstat (limited to 'japanese')
-rw-r--r--japanese/dvi2dvi/Makefile38
-rw-r--r--japanese/dvi2dvi/distinfo1
-rw-r--r--japanese/dvi2dvi/files/fontdesc14
-rw-r--r--japanese/dvi2dvi/files/patch-aa28
-rw-r--r--japanese/dvi2dvi/files/patch-ab13
-rw-r--r--japanese/dvi2dvi/files/patch-ac10
-rw-r--r--japanese/dvi2dvi/files/patch-ad13
-rw-r--r--japanese/dvi2dvi/files/patch-ae31
-rw-r--r--japanese/dvi2dvi/files/patch-af23
-rw-r--r--japanese/dvi2dvi/pkg-comment1
-rw-r--r--japanese/dvi2dvi/pkg-descr6
-rw-r--r--japanese/dvi2dvi/pkg-plist18
12 files changed, 196 insertions, 0 deletions
diff --git a/japanese/dvi2dvi/Makefile b/japanese/dvi2dvi/Makefile
new file mode 100644
index 000000000000..e139c21f4e2f
--- /dev/null
+++ b/japanese/dvi2dvi/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: dvi2dvi
+# Version required: 1.0
+# Date created: 25 Dec 1997
+# Whom: Makoto WATANABE <watanabe@zlab.phys.nagoya-u.ac.jp>
+#
+# $Id$
+#
+
+DISTNAME= dvi2dvi-1.0
+PKGNAME= ja-dvi2dvi-1.0
+CATEGORIES= japanese print
+MASTER_SITES= ftp://ftp.math.s.chiba-u.ac.jp/tex/
+
+MAINTAINER= watanabe@zlab.phys.nagoya-u.ac.jp
+
+RUN_DEPENDS= ${PREFIX}/share/fonts/vf-n2a:${PORTSDIR}/japanese/vftool
+
+post-extract:
+ @( cd ${WRKSRC} ; ${MAKE} newlib )
+ @${CP} ${FILESDIR}/fontdesc ${WRKSRC}/lib
+
+post-patch:
+.for i in config p2n
+ @${CP} ${WRKSRC}/lib/$i ${WRKSRC}/lib/$i.orig
+ @${SED} -e 's,@PREFIX@,${PREFIX},g' \
+ ${WRKSRC}/lib/$i.orig > ${WRKSRC}/lib/$i
+.endfor
+
+post-install:
+ @${RM} ${WRKSRC}/lib/*.orig
+ @( cd ${WRKSRC} ; ${MAKE} PREFIX=${PREFIX} install-lib )
+ @${MKDIR} -m 777 ${PREFIX}/share/fonts/vf-rot
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/dvi2dvi
+ @${INSTALL_DATA} ${WRKSRC}/doc/*.doc ${PREFIX}/share/doc/dvi2dvi
+.endif
+
+.include <bsd.port.mk>
diff --git a/japanese/dvi2dvi/distinfo b/japanese/dvi2dvi/distinfo
new file mode 100644
index 000000000000..cce9b995933c
--- /dev/null
+++ b/japanese/dvi2dvi/distinfo
@@ -0,0 +1 @@
+MD5 (dvi2dvi-1.0.tar.gz) = 9018a59f80b622ec83731d5d31c58157
diff --git a/japanese/dvi2dvi/files/fontdesc b/japanese/dvi2dvi/files/fontdesc
new file mode 100644
index 000000000000..440777efbcd3
--- /dev/null
+++ b/japanese/dvi2dvi/files/fontdesc
@@ -0,0 +1,14 @@
+#
+# dvi2dvi fontdesc file for FreeBSD jTeX and pTeX ports collection.
+#
+# configuration
+fontdesc config
+#
+# NTT dvi (subfont) -> ASCII dvi
+#
+# virtual font
+font vf * 0 $vf/vf-n2a/%f.vf
+#
+# tfm used in the above vf (ASCII jfm, i.e. min10.tfm ...)
+font jfm * 0 $af/tfm/ptex/%f.tfm
+font jfm * 0 $nsf/jfms/%f.tfm
diff --git a/japanese/dvi2dvi/files/patch-aa b/japanese/dvi2dvi/files/patch-aa
new file mode 100644
index 000000000000..044107ba91c1
--- /dev/null
+++ b/japanese/dvi2dvi/files/patch-aa
@@ -0,0 +1,28 @@
+--- Makefile.orig Mon May 20 05:32:43 1996
++++ Makefile Mon Dec 21 19:31:32 1998
+@@ -2,10 +2,10 @@
+ # your site:
+ #
+ # where dvi2dvi is installed
+-BINAREA=/usr/local/bin
++BINAREA=${PREFIX}/bin
+ #
+ # directory for dvi2dvi: where the auxiliary files are installed
+-DVI2LIB=/usr/local/lib/dvi2dvi
++DVI2LIB=${PREFIX}/lib/dvi2dvi
+ #
+ # name of default fontdesc file in your site
+ FONTDESC=fontdesc
+@@ -15,10 +15,10 @@
+ #
+ CC=cc
+ #
+-CFLAGS = -g
++#CFLAGS = -g
+ #CFLAGS = -O # SUN etc ...
+ #CFLAGS = -O -traditional -DPOSIX # 386bsd (gcc 1.X)
+-#CFLAGS = -O -DPOSIX # Netbsd (gcc 2.X), Linux
++CFLAGS = -O -DPOSIX -m486 # Netbsd (gcc 2.X), Linux
+ #CFLAGS = -O -bsd # NeXT
+ #CFLAGS = -O -DMSDOS -DPOSIX # DJGCC (gcc 2.X)
+ #CFLAGS = -O -DSYSV # SysV
diff --git a/japanese/dvi2dvi/files/patch-ab b/japanese/dvi2dvi/files/patch-ab
new file mode 100644
index 000000000000..c85f8a0bbcf2
--- /dev/null
+++ b/japanese/dvi2dvi/files/patch-ab
@@ -0,0 +1,13 @@
+--- lib/a2n.orig Sun Apr 30 14:54:32 1995
++++ lib/a2n Mon Dec 21 19:31:33 1998
+@@ -3,7 +3,8 @@
+ # configuration
+ fontdesc config
+ # min,goth -> dm,dg
+-font jvf * 0 $af/vf-a2n/%f.vf
++font jvf * 0 $vf/vf-a2n/%f.vf
+ #
+ # tfm used in the above vf (NTT subfont tfm, i.e. dmjsys10.tfm ...)
+-font tfm * 0 $nsf/tfm/%f.tfm
++font tfm * 0 $nsf/mincho/%f.tfm
++font tfm * 0 $nsf/gothic/%f.tfm
diff --git a/japanese/dvi2dvi/files/patch-ac b/japanese/dvi2dvi/files/patch-ac
new file mode 100644
index 000000000000..c8c93a8dba9c
--- /dev/null
+++ b/japanese/dvi2dvi/files/patch-ac
@@ -0,0 +1,10 @@
+--- lib/config.orig Sun Apr 30 14:50:47 1995
++++ lib/config Mon Dec 21 19:31:33 1998
+@@ -1,3 +1,4 @@
+-define f /usr/local/lib/tex/fonts
+-define nsf /usr/local/lib/tex/jfonts
+-define af /usr/local/lib/tex/jfonts
++define f @PREFIX@/share/tex/fonts
++define nsf @PREFIX@/share/tex/jfonts
++define af @PREFIX@/share/texmf/fonts
++define vf @PREFIX@/share/fonts
diff --git a/japanese/dvi2dvi/files/patch-ad b/japanese/dvi2dvi/files/patch-ad
new file mode 100644
index 000000000000..50af1c7df377
--- /dev/null
+++ b/japanese/dvi2dvi/files/patch-ad
@@ -0,0 +1,13 @@
+--- lib/n2a.orig Sun Apr 30 14:53:22 1995
++++ lib/n2a Mon Dec 21 19:31:33 1998
+@@ -3,7 +3,8 @@
+ # configuration
+ fontdesc config
+ # virtual font
+-font vf * 0 $nsf/vf-n2a/%f.vf
++font vf * 0 $vf/vf-n2a/%f.vf
+ #
+ # tfm used in the above vf (ASCII jfm, i.e. min10.tfm ...)
+-font jfm * 0 $af/jfm/%f.tfm
++font jfm * 0 $af/tfm/ptex/%f.tfm
++font jfm * 0 $nsf/jfms/%f.tfm
diff --git a/japanese/dvi2dvi/files/patch-ae b/japanese/dvi2dvi/files/patch-ae
new file mode 100644
index 000000000000..e57dd991faa2
--- /dev/null
+++ b/japanese/dvi2dvi/files/patch-ae
@@ -0,0 +1,31 @@
+--- lib/p2n.orig Mon Jun 26 10:02:01 1995
++++ lib/p2n Mon Dec 21 19:31:33 1998
+@@ -3,20 +3,21 @@
+ # configuration
+ fontdesc config
+ # min,goth -> dm,dg
+-font jvf * 0 $af/vf-a2n/%f.vf
++font jvf * 0 $vf/vf-a2n/%f.vf
+ # tmin,tgoth -> dm,dg + d?jsy in vertical mode
+-font jvf * 0 $af/vf-p2pn/%f.vf
++font jvf * 0 $vf/vf-p2pn/%f.vf
+ #
+ # tfm used in the above vf (NTT subfont tfm, i.e. dmjsy10.tfm ...)
+-font tfm * 0 $nsf/tfm/%f.tfm
++font tfm * 0 $nsf/mincho/%f.tfm
++font tfm * 0 $nsf/gothic/%f.tfm
+ #
+ # convert fonts in vertical mode to fonts with rotated bitmap
+ # dmjsy.. -> tdmjsy..
+-vfont vf * 0 $af/vf-tjsy/%f.vf
++vfont vf * 0 $vf/vf-tjsy/%f.vf
+ # cmr.. -> rcmr..
+-define gen $f/vf-rot
++define gen $vf/vf-rot
+ vfont vf * 0 $gen/%f.vf
+ vfont func * 0 \
+- exist($f/tfm/%f.tfm),\
+- exec(/usr/local/lib/mkrotvf %f r%f $f/tfm/%f.tfm $gen/),\
++ exist($f/%f.tfm),\
++ exec(@PREFIX@/bin/mkrotvf %f r%f $f/%f.tfm $gen/),\
+ vf($gen/%f.vf)
diff --git a/japanese/dvi2dvi/files/patch-af b/japanese/dvi2dvi/files/patch-af
new file mode 100644
index 000000000000..253b664fe955
--- /dev/null
+++ b/japanese/dvi2dvi/files/patch-af
@@ -0,0 +1,23 @@
+--- lib/p2pn.orig Fri May 5 14:14:20 1995
++++ lib/p2pn Mon Dec 21 19:31:33 1998
+@@ -3,15 +3,16 @@
+ # configuration
+ fontdesc config
+ # min,goth -> dm,dg
+-font jvf * 0 $af/vf-a2n/%f.vf
++font jvf * 0 $vf/vf-a2n/%f.vf
+ # tmin,tgoth -> dm,dg + d?jsy in vertical mode
+-font jvf * 0 $af/vf-p2pn/%f.vf
++font jvf * 0 $vf/vf-p2pn/%f.vf
+ #
+ # tfm used in the above vf (NTT subfont tfm, i.e. dmjsy10.tfm ...)
+-font tfm * 0 $nsf/tfm/%f.tfm
++font tfm * 0 $nsf/mincho/%f.tfm
++font tfm * 0 $nsf/gothic/%f.tfm
+ #
+ # tfm of ascii font
+-font tfm * 0 $f/tfm/%f.tfm
++font tfm * 0 $f/%f.tfm
+ #
+ ptex special vert "ps:gsave currentpoint currentpoint translate 90 rotate neg exch neg exch translate"
+ ptex special end "ps:currentpoint grestore moveto"
diff --git a/japanese/dvi2dvi/pkg-comment b/japanese/dvi2dvi/pkg-comment
new file mode 100644
index 000000000000..ab5c88125384
--- /dev/null
+++ b/japanese/dvi2dvi/pkg-comment
@@ -0,0 +1 @@
+A DVI to DVI transformer.
diff --git a/japanese/dvi2dvi/pkg-descr b/japanese/dvi2dvi/pkg-descr
new file mode 100644
index 000000000000..242e91f47512
--- /dev/null
+++ b/japanese/dvi2dvi/pkg-descr
@@ -0,0 +1,6 @@
+The program dvi2dvi is a DVI to DVI transformer. It can transform from
+a dvi file created by ASCII Japanese TeX/pTeX into a NTT JTeX type of dvi file,
+as well as the opposite transform of that.
+
+- Makoto WATANABE
+watanabe@zlab.phys.nagoya-u.ac.jp
diff --git a/japanese/dvi2dvi/pkg-plist b/japanese/dvi2dvi/pkg-plist
new file mode 100644
index 000000000000..d47e60613f4e
--- /dev/null
+++ b/japanese/dvi2dvi/pkg-plist
@@ -0,0 +1,18 @@
+bin/dvi2dvi
+lib/dvi2dvi/a2n
+lib/dvi2dvi/config
+lib/dvi2dvi/fontdesc
+lib/dvi2dvi/mtex
+lib/dvi2dvi/n2a
+lib/dvi2dvi/n2w
+lib/dvi2dvi/p2n
+lib/dvi2dvi/p2pn
+lib/dvi2dvi/w2n
+share/doc/dvi2dvi/bugs.doc
+share/doc/dvi2dvi/changes.doc
+share/doc/dvi2dvi/dvi2dvi.doc
+share/doc/dvi2dvi/install.doc
+share/doc/dvi2dvi/lib.doc
+@exec mkdir -p -m 777 %D/share/fonts/vf-rot
+@dirrm lib/dvi2dvi
+@dirrm share/doc/dvi2dvi