summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkei <kei@pkgsrc.org>2003-03-15 20:00:27 +0000
committerkei <kei@pkgsrc.org>2003-03-15 20:00:27 +0000
commit0d1979f120d22d97940f731a5645598cc62d2d28 (patch)
treef79db270407b4711777909a925180758e772ed48
parent8086f6425a53b46663c0643175cddcc502bba982 (diff)
downloadpkgsrc-0d1979f120d22d97940f731a5645598cc62d2d28.tar.gz
initial import of ja-ptex-bin-3.1.2.
pTeX/pLaTeX (Publishing TeX/LaTeX) are Japanese-support versions of TeX/LaTeX in respectively and have the following new/improved features as well as the one TeX has: o it can layout text lines in vertically as well as horizontally, it can even be mixed in the same page. o it supports Japanese line-layout rules (kinsoku). o it generates high quality page by adjusting the spacing between Japanese-Japanese characters, or Japanese-Latin characters. o it layout lines of the Japanese characters by JFM. pTeX is developed by ASCII Corp. and now distributed under the BSD style license. This package contains executables and few configuration files.
-rw-r--r--print/ja-ptex-bin/DEINSTALL26
-rw-r--r--print/ja-ptex-bin/DESCR15
-rw-r--r--print/ja-ptex-bin/INSTALL25
-rw-r--r--print/ja-ptex-bin/Makefile125
-rw-r--r--print/ja-ptex-bin/PLIST34
-rw-r--r--print/ja-ptex-bin/distinfo15
-rw-r--r--print/ja-ptex-bin/patches/patch-aa129
-rw-r--r--print/ja-ptex-bin/patches/patch-ab21
-rw-r--r--print/ja-ptex-bin/patches/patch-ac11
-rw-r--r--print/ja-ptex-bin/patches/patch-ad39
-rw-r--r--print/ja-ptex-bin/patches/patch-af13
-rw-r--r--print/ja-ptex-bin/patches/patch-ai25
-rw-r--r--print/ja-ptex-bin/patches/patch-ak13
13 files changed, 491 insertions, 0 deletions
diff --git a/print/ja-ptex-bin/DEINSTALL b/print/ja-ptex-bin/DEINSTALL
new file mode 100644
index 00000000000..0d7b1781296
--- /dev/null
+++ b/print/ja-ptex-bin/DEINSTALL
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+TEXMF=@PREFIX@/share/texmf
+PSTRICKS=$TEXMF/dvips/pstricks
+
+case $STAGE in
+PRE-DEINSTALL)
+ ;;
+
+DEINSTALL)
+ ;;
+
+POST-DEINSTALL)
+ $MV $TEXMF/web2c/texmf.cnf.orig $TEXMF/web2c/texmf.cnf
+ $MV $PSTRICKS/pst-text.pro.orig $PSTRICKS/pst-text.pro
+ @PREFIX@/bin/mktexlsr
+ ;;
+
+*)
+ $ECHO "Unexpected argument: $STAGE"
+ exit 1
+ ;;
+
+esac
diff --git a/print/ja-ptex-bin/DESCR b/print/ja-ptex-bin/DESCR
new file mode 100644
index 00000000000..159bc1833f8
--- /dev/null
+++ b/print/ja-ptex-bin/DESCR
@@ -0,0 +1,15 @@
+pTeX/pLaTeX (Publishing TeX/LaTeX) are Japanese-support versions of
+TeX/LaTeX in respectively and have the following new/improved features
+as well as the one TeX has:
+
+ o it can layout text lines in vertically as well as horizontally, it
+ can even be mixed in the same page.
+ o it supports Japanese line-layout rules (kinsoku).
+ o it generates high quality page by adjusting the spacing between
+ Japanese-Japanese characters, or Japanese-Latin characters.
+ o it layout lines of the Japanese characters by JFM.
+
+pTeX is developed by ASCII Corp. and now distributed under the BSD style
+license.
+
+This package contains executables and few configuration files.
diff --git a/print/ja-ptex-bin/INSTALL b/print/ja-ptex-bin/INSTALL
new file mode 100644
index 00000000000..7615694178c
--- /dev/null
+++ b/print/ja-ptex-bin/INSTALL
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+TEXMF=@PREFIX@/share/texmf
+TEXMFLOCAL=@PREFIX@/share/texmf.local
+PSTRICKS=$TEXMF/dvips/pstricks
+
+case $STAGE in
+PRE-INSTALL)
+ ;;
+
+POST-INSTALL)
+ $MV $TEXMF/web2c/texmf.cnf $TEXMF/web2c/texmf.cnf.orig
+ $LN -s $TEXMFLOCAL/web2c/texmf.cnf $TEXMF/web2c/texmf.cnf
+ @PATCH@ -d $PSTRICKS < $PSTRICKS/PSTricks.patch
+ @PREFIX@/bin/mktexlsr
+ ;;
+
+*)
+ $ECHO "Unexpected argument: $STAGE"
+ exit 1
+ ;;
+
+esac
diff --git a/print/ja-ptex-bin/Makefile b/print/ja-ptex-bin/Makefile
new file mode 100644
index 00000000000..bf847e60090
--- /dev/null
+++ b/print/ja-ptex-bin/Makefile
@@ -0,0 +1,125 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+DISTNAME= ptex-src-${PTEX_VERS}
+PKGNAME= ja-ptex-bin-${PTEX_VERS}
+CATEGORIES= print japanese
+MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/tetex/ \
+ ftp://ring.gr.jp/pub/text/TeX/ascii-ptex/tetex/
+DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} # XXX
+DISTFILES+= ${DF_DVIPSK_PATCH}
+DISTFILES+= mendexk${MENDEXK_VERS}${EXTRACT_SUFX}
+
+MAINTAINER= kei@netbsd.org
+HOMEPAGE= http://www.ascii.co.jp/pb/ptex/
+COMMENT= publising TeX (pTeX)
+
+# XXX ${MAKE_VARIABLES} won't be extracted here. strange...
+SITES_dvipsk-jpatch-p1.6.tar.gz= \
+ ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/ \
+ ftp://ring.gr.jp/pub/text/TeX/ascii-ptex/dvips/
+SITES_mendexk2.5.tar.gz= \
+ ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/ \
+ ftp://ring.gr.jp/pub/text/TeX/ascii-ptex/mendex/
+
+DEPENDS+= ja-ptex-share>=2.1:../../print/ja-ptex-share
+
+.include "../../print/teTeX2-bin/Makefile.common"
+
+PTEX_VERS= 3.1.2
+DVIPSK_PATCH_VERS= p1.6
+MENDEXK_VERS= 2.5
+
+DF_TETEX_BIN= tetex-src-${TETEX_BIN_VERS}${EXTRACT_SUFX}
+DF_DVIPSK_PATCH= dvipsk-jpatch-${DVIPSK_PATCH_VERS}${EXTRACT_SUFX}
+DF_MENDEXK= mendexk${MENDEXK_VERS}${EXTRACT_SUFX}
+
+WRKDIR_= ${_PKGSRCDIR}/print/teTeX2-bin/${WRKDIR:T}
+TETEX_DIR= ${WRKDIR_}/tetex-src-${TETEX_BIN_VERS}
+WRKSRC= ${TETEX_DIR}
+WRKSRC_PTEX= ${WRKSRC}/texk/web2c/${DISTNAME:S/-src//}
+EXTRACT_ONLY= # none
+
+TEXMF= ${PREFIX}/share/texmf
+TEXMFLOCAL= ${PREFIX}/share/texmf.local
+FILES_SUBST+= TEXMFLOCAL=${TEXMFLOCAL}
+FILES_SUBST+= TEXMFSITE=${TEXMFSITE}
+FILES_SUBST+= WRKDIR_=${WRKDIR_}
+#FILES_SUBST+= FILESDIR=${FILESDIR}
+FILES_SUBST+= PATCH=${PATCH}
+
+pre-extract:
+ if [ ! -e ${WRKSRC} ]; then \
+ cd ../../print/teTeX2-bin && ${MAKE} patch; \
+ elif [ ! -e ${WRKSRC_PTEX} ]; then \
+ cd ../../print/teTeX2-bin && ${MAKE} clean; ${MAKE} patch; \
+ fi;
+
+post-extract:
+.if defined(EXTRACT_USING_PAX)
+ cd ${WRKDIR_}; \
+ ${DECOMPRESS_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DF_TETEX_BIN} | ${PAX} -r
+ cd ${WRKSRC}/texk/web2c; \
+ ${DECOMPRESS_CMD} \
+ ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
+ | ${PAX} -r; \
+ cd ${WRKSRC}/texk; \
+ ${DECOMPRESS_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DF_DVIPSK_PATCH} \
+ | ${PAX} -r; \
+ ${DECOMPRESS_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DF_MENDEXK} | ${PAX} -r
+.else
+ cd ${WRKDIR_}; \
+ ${DECOMPRESS_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DF_TETEX_BIN} \
+ | ${GTAR} -xpf -
+ cd ${WRKSRC}/texk/web2c; \
+ ${DECOMPRESS_CMD} \
+ ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
+ | ${GTAR} -xpf -; \
+ cd ${WRKSRC}/texk; \
+ ${DECOMPRESS_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DF_DVIPSK_PATCH} \
+ | ${GTAR} -xpf -; \
+ ${DECOMPRESS_CMD} ${DISTDIR}/${DIST_SUBDIR}/${DF_MENDEXK} \
+ | ${GTAR} -xpf -
+.endif
+ ${SED} -e "s|\$$TEXMF/ptex/plain/||" \
+ ${LOCALBASE}/share/texmf.local/ptex/plain/base/ptex.tex > \
+ ${WRKSRC_PTEX}/ptex.tex
+ ${RM} -f ${WRKSRC}/texmf ${WRKSRC}/texmf.local
+ ${LN} -s ${LOCALBASE}/share/texmf ${WRKSRC}
+ ${LN} -s ${LOCALBASE}/share/texmf.local ${WRKSRC}
+
+pre-patch:
+ ${PATCH} -d ${WRKSRC}/texk -p0 -s \
+ < ${WRKSRC}/texk/dvipsk-5.92b-${DVIPSK_PATCH_VERS}.patch
+
+post-patch:
+ ${MV} ${WRKSRC}/texk/kpathsea/texmf.in \
+ ${WRKSRC}/texk/kpathsea/texmf.in.orig
+ ${SED} -e 's,@texmfsite@,${TEXMFSITE},' \
+ -e 's,@texmflocal@,${TEXMFLOCAL},' \
+ ${WRKSRC}/texk/kpathsea/texmf.in.orig > \
+ ${WRKSRC}/texk/kpathsea/texmf.in
+
+post-configure:
+ cd ${WRKSRC_PTEX}; ./configure EUC ${TEXMFLOCAL}
+
+do-build:
+ cd ${WRKSRC}/texk/web2c; ${MAKE_PROGRAM}
+ cd ${WRKSRC_PTEX}; ${MAKE_PROGRAM}
+ cd ${WRKSRC}/texk/dvipsk; ${MAKE_PROGRAM}
+ cd ${WRKSRC}/texk/mendexk${MENDEXK_VERS}; ${MAKE_PROGRAM}
+
+do-install:
+ cd ${WRKSRC_PTEX}; \
+ ${SETENV} texmflcl=${TEXMFLOCAL} ${MAKE_PROGRAM} install
+ cd ${WRKSRC}/texk/dvipsk; \
+ ${SETENV} texmflcl=${TEXMFLOCAL} ${MAKE_PROGRAM} install; \
+ ${INSTALL_DATA} psfonts.map ${TEXMFLOCAL}/dvips/base
+ ${INSTALL_PROGRAM} ${WRKSRC}/texk/mendexk${MENDEXK_VERS}/mendex \
+ ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/texk/PSTricks.patch ${TEXMF}/dvips/pstricks
+
+pre-clean:
+ cd ../../print/teTeX2-bin && ${MAKE} clean
+
+.include "../../print/teTeX2-bin/kpathsea.buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/ja-ptex-bin/PLIST b/print/ja-ptex-bin/PLIST
new file mode 100644
index 00000000000..da4926860a4
--- /dev/null
+++ b/print/ja-ptex-bin/PLIST
@@ -0,0 +1,34 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+bin/iniptex
+bin/mendex
+bin/pdvips
+bin/pdvitype
+bin/pjbibtex
+bin/platex
+bin/ppltotf
+bin/ptex
+bin/ptftopl
+bin/virptex
+share/texmf.local/dvips/base/color.pro
+share/texmf.local/dvips/base/crop.pro
+share/texmf.local/dvips/base/finclude.pro
+share/texmf.local/dvips/base/hps.pro
+share/texmf.local/dvips/base/psfonts.map
+share/texmf.local/dvips/base/special.pro
+share/texmf.local/dvips/base/tex.pro
+share/texmf.local/dvips/base/texc.pro
+share/texmf.local/dvips/base/texps.pro
+share/texmf.local/web2c/platex-euc.fmt
+share/texmf.local/web2c/platex-jis.fmt
+share/texmf.local/web2c/platex-sjis.fmt
+share/texmf.local/web2c/platex.fmt
+share/texmf.local/web2c/ptex-euc.fmt
+share/texmf.local/web2c/ptex-jis.fmt
+share/texmf.local/web2c/ptex-sjis.fmt
+share/texmf.local/web2c/ptex.fmt
+share/texmf.local/web2c/ptex.pool
+share/texmf.local/web2c/texmf.cnf
+share/texmf/dvips/pstricks/PSTricks.patch
+@dirrm share/texmf.local/web2c
+@dirrm share/texmf.local/dvips/base
+@dirrm share/texmf.local/dvips
diff --git a/print/ja-ptex-bin/distinfo b/print/ja-ptex-bin/distinfo
new file mode 100644
index 00000000000..230ab8a93af
--- /dev/null
+++ b/print/ja-ptex-bin/distinfo
@@ -0,0 +1,15 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+SHA1 (teTeX/ptex-src-3.1.2.tar.gz) = fbd914342285e040604dd45b9b5082872d221f3e
+Size (teTeX/ptex-src-3.1.2.tar.gz) = 120185 bytes
+SHA1 (teTeX/dvipsk-jpatch-p1.6.tar.gz) = e9e0777a6ee72323a524064401f8a1f6f41d6470
+Size (teTeX/dvipsk-jpatch-p1.6.tar.gz) = 28637 bytes
+SHA1 (teTeX/mendexk2.5.tar.gz) = 223695d92aec02b4814b247bc1dbf5a6332f140d
+Size (teTeX/mendexk2.5.tar.gz) = 25850 bytes
+SHA1 (patch-aa) = ced7e33041c245df48e96711a4b0ca73ed458240
+SHA1 (patch-ab) = 30a95db1843e17cd3526e71e8fe44ee97741a9b4
+SHA1 (patch-ac) = eeb266e3fc5a6b646ffc498c08107a9dd76c6660
+SHA1 (patch-ad) = 850682efe0c1a08f0b37d92938012fafa4acb467
+SHA1 (patch-af) = 0e26b4fb670c86f03df074b081e9ec6ba71773d9
+SHA1 (patch-ai) = f80e25688afa14c17b992e802dac6cfe47ac0cfc
+SHA1 (patch-ak) = a3bf357bf0c229bc5e5794d782d0777d16951941
diff --git a/print/ja-ptex-bin/patches/patch-aa b/print/ja-ptex-bin/patches/patch-aa
new file mode 100644
index 00000000000..7752af55840
--- /dev/null
+++ b/print/ja-ptex-bin/patches/patch-aa
@@ -0,0 +1,129 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+--- texk/web2c/ptex-3.1.2/Makefile.in.orig Fri Nov 22 14:20:16 2002
++++ texk/web2c/ptex-3.1.2/Makefile.in Sat Feb 22 05:01:34 2003
+@@ -5,11 +5,16 @@
+
+ default: programs formats
+
+-programs=ptex tftopl pltotf pdvitype jbibtex
++programs=ptex ptftopl ppltotf pdvitype pjbibtex
+ euc-formats=ptex-euc.fmt platex-euc.fmt
+ sjis-formats=ptex-sjis.fmt platex-sjis.fmt
+
+ ac_include ../../make/paths.mk
++#
++texmflcl = @texmflocal@
++web2c_lcl_dir = $(texmflcl)/web2c
++fmt_lcl_dir = $(web2c_lcl_dir)
++texpool_lcl_dir = $(web2c_lcl_dir)
+
+ # Used for triptrap.
+ DIFF = diff
+@@ -94,6 +99,9 @@
+ $(srcdir)/tie -c ptex.ch ptex.web ptex-base.ch
+
+ ### TFtoPL
++ptftopl: tftopl
++ rm -f pftopl
++ $(LN) tftopl ptftopl
+ tftopl: tftopl.o $(plib_o) $(kpathsea) $(proglib)
+ $(kpathsea_link) tftopl.o $(plib_o) $(LOADLIBES)
+ tftopl.o: tftopl.c kanji.h ptexhelp.h
+@@ -105,6 +113,9 @@
+
+
+ ### PLtoTF
++ppltotf: pltotf
++ rm -f ppltotf
++ $(LN) pltotf ppltotf
+ pltotf: pltotf.o $(plib_o) $(kpathsea) $(proglib)
+ $(kpathsea_link) pltotf.o $(plib_o) $(LOADLIBES)
+ pltotf.o: pltotf.c kanji.h ptexhelp.h
+@@ -125,6 +136,9 @@
+ $(LN) $(srcdir)/dvitype.web pdvitype.web
+
+ ### jBibTeX
++pjbibtex: jbibtex
++ rm -f pjbibtex
++ $(LN) jbibtex pjbibtex
+ jbibtex: jbibtex.o jbibextra.o $(plib_o) $(kpathsea) $(proglib)
+ $(kpathsea_link) jbibtex.o jbibextra.o $(plib_o) $(LOADLIBES)
+ jbibtex.o: jbibtex.c jbibextra.h kanji.h ptexhelp.h
+@@ -167,11 +181,16 @@
+ texmf.cnf: $(kpathsea_dir)/texmf.cnf
+ $(SHELL) $(thisdir)/mkconf $< > texmf.cnf
+
+-dumpenv = TEXMFCNF=$(thisdir) TEXMF=$(texmf)
++#dumpenv = TEXMFCNF=$(thisdir) TEXMF=$(texmf)
++newtexmf = $(srcdir)/../../texmf
++newtexmflcl = $(srcdir)/../../texmf.local
++texin = $(srcdir):{$(newtexmf),$(newtexmflcl)}/ptex//
++texfonts = {$(newtexmf),$(newtexmflcl)}/fonts/tfm/ptex//
++dumpenv = TEXMFCNF=../../kpathsea TEXINPUTS=.:$(texin): TEXFONTS=$(texfonts):
+
+ ptex-euc.fmt: ptex texmf.cnf
+ $(dumpenv) $(MAKE) $(makeargs) files="--progname=ptex ptex.tex min10.tfm" prereq-check
+- $(dumpenv) ./ptex -ini --kanji=euc --jobname=ptex-euc \\input ptex \\dump </dev/null
++ $(dumpenv) ./ptex -ini --kanji=euc --jobname=ptex-euc \\input ptex \\dump </dev/null || ${TRUE} # XXX
+
+ ptex-sjis.fmt: ptex texmf.cnf
+ $(dumpenv) $(MAKE) $(makeargs) files="--progname=ptex ptex.tex min10.tfm" prereq-check
+@@ -179,7 +198,7 @@
+
+ platex-euc.fmt: ptex texmf.cnf
+ $(dumpenv) $(MAKE) $(makeargs) files="--progname=platex platex.ltx" prereq-check
+- $(dumpenv) ./ptex -ini --kanji=euc --progname=platex --jobname=platex-euc \\input platex.ltx </dev/null
++ $(dumpenv) ./ptex -ini --kanji=euc --progname=platex --jobname=platex-euc \\input platex.ltx </dev/null || ${TRUE} # XXX
+
+ platex-sjis.fmt: ptex texmf.cnf
+ $(dumpenv) $(MAKE) $(makeargs) files="--progname=platex platex.ltx" prereq-check
+@@ -212,7 +231,7 @@
+
+ # The actual binary executables and pool files.
+ install-programs: $(programs)
+- $(SHELL) $(top_srcdir)/mkinstalldirs $(bindir) $(texpooldir)
++ $(SHELL) $(top_srcdir)/mkinstalldirs $(bindir) $(texpool_lcl_dir)
+ for p in $(programs); do $(INSTALL_LIBTOOL_PROG) $(bindir) $$p; done
+
+ # The links to ptex for each format and for {ini,vir}ptex.
+@@ -222,27 +241,28 @@
+
+ # Always do plain.*, so examples from the TeXbook (etc.) will work.
+ install-formats: $(formats)
+- $(SHELL) $(top_srcdir)/mkinstalldirs $(fmtdir)
+- for f in $(formats); do $(INSTALL_DATA) $$f $(fmtdir)/$$f; done
+- cd $(fmtdir) && (rm -f ptex-jis.fmt platex-jis.fmt ;\
++ $(SHELL) $(top_srcdir)/mkinstalldirs $(fmt_lcl_dir)
++ for f in $(formats); do $(INSTALL_DATA) $$f $(fmt_lcl_dir)/$$f; done
++ cd $(fmt_lcl_dir) && (rm -f ptex-jis.fmt platex-jis.fmt ;\
+ $(LN) ptex-euc.fmt ptex-jis.fmt ;\
+ $(LN) platex-euc.fmt platex-jis.fmt)
+- cd $(fmtdir) && (rm -f ptex.fmt platex.fmt ;\
++ cd $(fmt_lcl_dir) && (rm -f ptex.fmt platex.fmt ;\
+ $(LN) ptex-$(configkcode).fmt ptex.fmt ;\
+ $(LN) platex-$(configkcode).fmt platex.fmt )
+
+ # Auxiliary files.
+ install-data::
+ $(SHELL) $(top_srcdir)/mkinstalldirs \
+- $(texpooldir) $(web2cdir) $(fontnamedir)
+- $(INSTALL_DATA) ptex.pool $(texpooldir)/ptex.pool
+- if [ -f $(web2cdir)/texmf.cnf ]; then \
+- mv -f $(web2cdir)/texmf.cnf $(web2cdir)/texmf.cnf.orig ;\
+- else true; fi
+- $(INSTALL_DATA) texmf.cnf $(web2cdir)/texmf.cnf
++ $(texpool_lcl_dir) $(web2c_lcl_dir) $(fontnamedir)
++ $(INSTALL_DATA) ptex.pool $(texpool_lcl_dir)/ptex.pool
++# package system handles this file in case binary packages.
++# if [ -f $(web2cdir)/texmf.cnf ]; then \
++# mv -f $(web2cdir)/texmf.cnf $(web2cdir)/texmf.cnf.orig ;\
++# else true; fi
++ $(INSTALL_DATA) texmf.cnf $(web2c_lcl_dir)/texmf.cnf
+ # tcx files
+ # cd $(thisdir)/share && \
+-# for f in *.tcx; do $(INSTALL_DATA) $$f $(web2cdir)/$$f; done
++# for f in *.tcx; do $(INSTALL_DATA) $$f $(web2c_lcl_dir)/$$f; done
+ # map files are not provided with pTeX
+ # cd $(thisdir)/share && \
+ # for f in *.map; do $(INSTALL_DATA) $$f $(fontnamedir)/$$f; done
diff --git a/print/ja-ptex-bin/patches/patch-ab b/print/ja-ptex-bin/patches/patch-ab
new file mode 100644
index 00000000000..838ee17a778
--- /dev/null
+++ b/print/ja-ptex-bin/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+--- texk/web2c/ptex-3.1.2/configure.orig Fri Nov 22 14:20:16 2002
++++ texk/web2c/ptex-3.1.2/configure Fri Feb 21 21:21:10 2003
+@@ -5,7 +5,7 @@
+ configopt=
+
+ printUsage () {
+- echo "Usage: $progname {EUC|JIS|SJIS}"
++ echo "Usage: $progname {EUC|JIS|SJIS} texmf_local_dir"
+ exit 1
+ }
+
+@@ -27,6 +27,7 @@
+ CONFIGSED=config.sed
+ echo "s%@configopt@%$*%g" > $CONFIGSED
+ echo "s%@TERMCODE@%$termcode%g" >> $CONFIGSED
++echo "s%@texmflocal@%$2%g" >> $CONFIGSED
+ case $termcode in
+ "SJIS") echo "s%@configkcode@%sjis%g" >> $CONFIGSED ;;
+ "JIS") echo "s%@configkcode@%jis%g" >> $CONFIGSED ;;
diff --git a/print/ja-ptex-bin/patches/patch-ac b/print/ja-ptex-bin/patches/patch-ac
new file mode 100644
index 00000000000..fea29b2e56c
--- /dev/null
+++ b/print/ja-ptex-bin/patches/patch-ac
@@ -0,0 +1,11 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+--- texk/make/paths.mk.orig Mon Jan 11 00:42:53 1999
++++ texk/make/paths.mk Wed May 3 03:48:36 2000
+@@ -47,5 +47,5 @@
+
+ # The directory used by varfonts.
+-vartexfonts = /var/tmp/texfonts
++vartexfonts = /var/spool/texfonts
+
+ # Regular input files.
diff --git a/print/ja-ptex-bin/patches/patch-ad b/print/ja-ptex-bin/patches/patch-ad
new file mode 100644
index 00000000000..3d75ba338cb
--- /dev/null
+++ b/print/ja-ptex-bin/patches/patch-ad
@@ -0,0 +1,39 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+--- texk/dvipsk/Makefile.in.orig Sat Feb 1 03:07:46 2003
++++ texk/dvipsk/Makefile.in Fri Feb 21 21:26:05 2003
+@@ -18,6 +18,7 @@
+ ac_include ../make/programs.mk
+ ac_include ../make/texi.mk
+ prog_cflags = -DUNIX -DKPATHSEA -DNeedFunctionPrototypes -DSHIFTLOWCHARS
++psheaderdir = $(texmflcl)/dvips
+
+ # The `t[mp]-' business is so that we don't create an empty .pro file,
+ # if running squeeze fails for some reason. A dependency on squeeze
+@@ -36,13 +37,16 @@
+ pprescan.o papersiz.o color.o bbox.o hps.o t1part.o
+
+ program = dvips
+-programs = afm2tfm $(program)
++programs = pdvips
+
+
+ default all: $(programs) $(prologues) dvips.info
+
+ $(program): $(kpathsea) $(objects)
+ $(kpathsea_link) $(objects) $(LOADLIBES)
++pdvips: $(program)
++ rm -f pdvips
++ ln $(program) pdvips
+ afm2tfm: $(kpathsea) afm2tfm.o
+ $(kpathsea_link) afm2tfm.o $(LOADLIBES)
+ # Omit LOADLIBES since no need to dynamically link with kpathsea.
+@@ -96,6 +100,8 @@
+ # >/dev/null; then \
+ # $(INSTALL_DATA) $(srcdir)/psfonts.map $(psheaderdir)/base/psfonts.map; \
+ # else true; fi
++
++#_installed:
+ # Info files.
+ cd $(srcdir) && for i in $(program).i*; do \
+ $(INSTALL_DATA) $$i $(infodir)/$$i; done
diff --git a/print/ja-ptex-bin/patches/patch-af b/print/ja-ptex-bin/patches/patch-af
new file mode 100644
index 00000000000..beb25fddd4a
--- /dev/null
+++ b/print/ja-ptex-bin/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+--- texk/web2c/Makefile.in.orig Sun Feb 2 01:51:16 2003
++++ texk/web2c/Makefile.in Fri Feb 21 21:29:05 2003
+@@ -479,7 +479,7 @@
+
+ latex.fmt: tex
+ $(dumpenv) $(MAKE) progname=latex files="latex.ltx" prereq-check
+- $(dumpenv) ./tex --progname=latex --ini \\input latex.ltx </dev/null
++ $(dumpenv) ./tex --progname=latex --ini \\input latex.ltx </dev/null || ${TRUE} # XXX
+
+ etex.efmt: etex
+ $(dumpenv) $(MAKE) progname=etex files="etex.src plain.tex cmr10.tfm" prereq-check
diff --git a/print/ja-ptex-bin/patches/patch-ai b/print/ja-ptex-bin/patches/patch-ai
new file mode 100644
index 00000000000..8878658322f
--- /dev/null
+++ b/print/ja-ptex-bin/patches/patch-ai
@@ -0,0 +1,25 @@
+$NetBSD: patch-ai,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+--- texk/kpathsea/texmf.in.orig Sun Jan 19 20:58:27 2003
++++ texk/kpathsea/texmf.in Fri Feb 21 21:31:58 2003
+@@ -58,7 +58,10 @@
+ TEXMFMAIN = @texmf@
+
+ % A place for local additions to a "standard" texmf tree. For example:
+-TEXMFLOCAL = @texmf@-local
++TEXMFLOCAL = @texmflocal@
++
++% Add site-specific configurations as well as above.
++TEXMFSITE = @texmfsite@
+
+ % If defined, teTeX's texconfig stores modifications here (instead of the
+ % TEXMFMAIN tree).
+@@ -74,7 +77,7 @@
+ % - list $VARTEXMF in the TEXMF definition;
+ % - make sure that $VARTEXMF precedes $TEXMFMAIN in the TEXMF definition.
+ % TEXMF = $TEXMFMAIN
+-TEXMF = {$HOMETEXMF,!!$TEXMFLOCAL,!!$TEXMFMAIN}
++TEXMF = {$HOMETEXMF,!!$TEXMFSITE,!!$TEXMFLOCAL,!!$TEXMFMAIN}
+
+ % The system trees. These are the trees that are shared by all the users.
+ SYSTEXMF = $TEXMF
diff --git a/print/ja-ptex-bin/patches/patch-ak b/print/ja-ptex-bin/patches/patch-ak
new file mode 100644
index 00000000000..160843565a7
--- /dev/null
+++ b/print/ja-ptex-bin/patches/patch-ak
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1.1.1 2003/03/15 20:00:27 kei Exp $
+
+--- texk/configure.orig Fri Mar 14 19:35:52 2003
++++ texk/configure Fri Mar 14 19:37:12 2003
+@@ -1894,7 +1894,7 @@
+ done
+
+
+-subdirs="kpathsea web2c $ESUBDIRS"
++subdirs="kpathsea web2c web2c/ptex-${PTEX_VERS} mendexk${MENDEXK_VERS} $ESUBDIRS"
+
+
+ trap '' 1 2 15