mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Japanese tex/latex. Builds both NTT and ASCII (no, not the American
character code, this one is a Japanese publisher) versions. Many files from this port (including the Makefile, hence the "?=" in DISTNAME) are used for jtex209-ntt an jtex209-ascii ports. Submitted by: mita@jp.FreeBSD.org
This commit is contained in:
parent
e195695bfb
commit
1f0164aa5b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=4394
67
japanese/jtex209-both/Makefile
Normal file
67
japanese/jtex209-both/Makefile
Normal file
@ -0,0 +1,67 @@
|
||||
# New ports collection makefile for: jp-jlatex209
|
||||
# Version required: a1.7-n1.52
|
||||
# Date created: 4 Nov 1996
|
||||
# Whom: Mita Yoshio <mita@jp.FreeBSD.org>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME?= jp-jlatex209-a17-n152
|
||||
CATEGORIES= japanese print
|
||||
MASTER_SITES= ftp://bash.cc.keio.ac.jp/pub/TeX/ASCII/ \
|
||||
ftp://ftp.iis.u-tokyo.ac.jp/TeX/NTT-JTeX/:old/ \
|
||||
ftp://ftp.iis.u-tokyo.ac.jp/TeX/fonts/pk/ \
|
||||
ftp://ftp.waseda.ac.jp/pub3/tex/ascii/
|
||||
DISTFILES= jtex-1.52.tar.gz tfm-files.tar.Z jtex1.7.tar.gz pTeX-JIS-patch
|
||||
|
||||
MAINTAINER= mita@jp.FreeBSD.org
|
||||
|
||||
USE_GMAKE= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
EXTRACT_ONLY= jtex-1.52.tar.gz
|
||||
|
||||
# Which latex to be made at BATCH mode. BOTH, ASCII, NTT are available.
|
||||
BATCH_TEX?= BOTH
|
||||
|
||||
post-extract:
|
||||
@(\
|
||||
cd ${WRKSRC} ; \
|
||||
if [ ! -d jtex1.7 ] ; then mkdir jtex1.7 ; fi ; \
|
||||
cd jtex1.7 ; \
|
||||
tar xzf ${DISTDIR}/jtex1.7.tar.gz ; \
|
||||
cd ptex/ptex ; \
|
||||
${CP} -R ../../jtex/web2cdir . ; \
|
||||
${CP} -R ../../jtex/jtangle . \
|
||||
)
|
||||
|
||||
pre-build:
|
||||
.if defined(BATCH)
|
||||
@(\
|
||||
cd ${WRKSRC} ; \
|
||||
/bin/sh ${FILESDIR}/select.sh ${FILESDIR} ${DISTDIR} ${PKGDIR} ${BATCH_TEX}; \
|
||||
)
|
||||
.else
|
||||
@(\
|
||||
cd ${WRKSRC} ; \
|
||||
/bin/sh ${FILESDIR}/select.sh ${FILESDIR} ${DISTDIR} ${PKGDIR} SELECT ; \
|
||||
)
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(BATCH)
|
||||
@(\
|
||||
if [ -e /usr/local/share/tex/BOTH ] ; \
|
||||
then /bin/sh ${FILESDIR}/linkselect.sh ; \
|
||||
fi \
|
||||
)
|
||||
.endif
|
||||
|
||||
pre-reinstall:
|
||||
@${RM} -f ${INSTALL_COOKIE}
|
||||
@${RM} -f ${PACKAGE_COOKIE}
|
||||
@(\
|
||||
cd ${WRKSRC} ; \
|
||||
${MAKE} reinstall DISTDIR=${DISTDIR} FILESDIR=${FILESDIR} \
|
||||
)
|
||||
|
||||
.include <bsd.port.mk>
|
4
japanese/jtex209-both/distinfo
Normal file
4
japanese/jtex209-both/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (jtex-1.52.tar.gz) = e392c0ed837374a021499a5f48f3feb1
|
||||
MD5 (tfm-files.tar.Z) = 199208b5247cc7baae43cde67f853293
|
||||
MD5 (jtex1.7.tar.gz) = 87b4c09cc768c96d0af50c13cb13ebfc
|
||||
MD5 (pTeX-JIS-patch) = 90d6ca0260adf990ac1c6088e6792cc7
|
29
japanese/jtex209-both/files/ascii-makefile
Normal file
29
japanese/jtex209-both/files/ascii-makefile
Normal file
@ -0,0 +1,29 @@
|
||||
all:
|
||||
@(cd jtex1.7/ptex/ptex ; make)
|
||||
@(cd jtex1.7/jtex/BibTeX ; make all)
|
||||
|
||||
install:
|
||||
@cp jtex1.7/ptex/ptex/ctex/initex /usr/local/bin/iniatex
|
||||
@cp jtex1.7/ptex/ptex/ctex/ptex.pool /usr/local/share/tex/apool
|
||||
@cp jtex1.7/ptex/ptex/ctex/virtex /usr/local/bin/viratex
|
||||
@install -c -m 644 jtex1.7/macros/* /usr/local/share/tex/inputs
|
||||
@install -c -m 644 jtex1.7/jmacros/* /usr/local/share/tex/ainputs
|
||||
@install -c -m 644 jtex1.7/tfm/* /usr/local/share/tex/fonts
|
||||
@install -c -m 644 jtex1.7/jfms/* /usr/local/share/tex/jfonts/jfms
|
||||
@(cd jtex1.7/ptex/ptex/ctex ; make jplain.fmt jlplain.fmt)
|
||||
@install -c -m 644 jtex1.7/ptex/ptex/ctex/jplain.fmt /usr/local/share/tex/aformats/ajtex.fmt
|
||||
@rm -f /usr/local/share/tex/aformats/jtex.fmt /usr/local/share/tex/aformats/jlatex/rmt
|
||||
@ln -sf /usr/local/share/tex/aformats/ajtex.fmt /usr/local/share/tex/aformats/jtex.fmt
|
||||
@install -c -m 644 jtex1.7/ptex/ptex/ctex/jlplain.fmt /usr/local/share/tex/aformats/ajlatex.fmt
|
||||
@ln -sf /usr/local/share/tex/aformats/ajlatex.fmt /usr/local/share/tex/aformats/jlatex.fmt
|
||||
@rm -f /usr/local/bin/ajtex /usr/local/bin/ajlatex
|
||||
@rm -f /usr/local/bin/jtex /usr/local/bin/jlatex
|
||||
@ln -sf /usr/local/bin/viratex /usr/local/bin/ajtex
|
||||
@ln -sf /usr/local/bin/viratex /usr/local/bin/ajlatex
|
||||
@ln -sf /usr/local/bin/viratex /usr/local/bin/jtex
|
||||
@ln -sf /usr/local/bin/viratex /usr/local/bin/jlatex
|
||||
@touch /usr/local/share/tex/ASCII
|
||||
@(cd jtex1.7/jtex/BibTeX ; make install)
|
||||
|
||||
reinstall:
|
||||
|
99
japanese/jtex209-both/files/ascii-setup.sh
Normal file
99
japanese/jtex209-both/files/ascii-setup.sh
Normal file
@ -0,0 +1,99 @@
|
||||
#!/bin/sh
|
||||
# ascii-setup ${FILESDIR} ${DISTDIR} [BATCH]
|
||||
if [ "$3" = "BATCH" ] ; then
|
||||
BATCH=yes
|
||||
fi
|
||||
|
||||
if [ "${BATCH}" = "yes" ]; then
|
||||
CHOICE=default
|
||||
else
|
||||
echo "Setup for ASCII pTeX"
|
||||
echo "Select kanji code on ASCII pTeX."
|
||||
echo "1. EUC (default)"
|
||||
echo "2. SJIS"
|
||||
read CHOICE
|
||||
fi
|
||||
case ${CHOICE} in
|
||||
2)
|
||||
echo "SJIS" ;
|
||||
echo
|
||||
KANJI="SJIS"
|
||||
;;
|
||||
*)
|
||||
echo "EUC"
|
||||
echo
|
||||
KANJI="EUC"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "$BATCH" = "yes" ]; then
|
||||
CHOICE=default
|
||||
else
|
||||
echo "Select memory model of ASCII pTeX."
|
||||
echo "1. Big (default)"
|
||||
echo "2. Small"
|
||||
read CHOICE
|
||||
fi
|
||||
case ${CHOICE} in
|
||||
2)
|
||||
echo "Small" ;
|
||||
echo
|
||||
MEMORY="small"
|
||||
;;
|
||||
*)
|
||||
echo "Big"
|
||||
echo
|
||||
MEMORY="big"
|
||||
;;
|
||||
esac
|
||||
|
||||
cd jtex1.7
|
||||
|
||||
if [ "${KANJI}" = "EUC" ] ; then
|
||||
./EUCsetup
|
||||
fi
|
||||
|
||||
cd ptex/ptex
|
||||
|
||||
if [ "${KANJI}" = "EUC" ] && [ "${MEMORY}" = "big" ] ; then
|
||||
cp texdir/pctex.ch.euc.big texdir/pctex.ch
|
||||
elif [ "${KANJI}" = "EUC" ] && [ "${MEMORY}" = "small" ] ; then
|
||||
cp texdir/pctex.ch.euc.small texdir/pctex.ch
|
||||
elif [ "${KANJI}" = "SJIS" ] && [ "${MEMORY}" = "big" ] ; then
|
||||
cp texdir/pctex.ch.sj.big texdir/pctex.ch
|
||||
elif [ "${KANJI}" = "SJIS" ] && [ "${MEMORY}" = "small" ] ; then
|
||||
cp texdir/pctex.ch.sj.small texdir/pctex.ch
|
||||
fi
|
||||
|
||||
if [ "${KANJI}" = "EUC" ] ; then
|
||||
mv site.h site.h.orig
|
||||
cat site.h.orig | sed -e "s/#define SJIS/#undef SJIS/g" | \
|
||||
sed -e "s/#undef EUC/#define EUC/g" > site.h
|
||||
fi
|
||||
|
||||
cp $2/pTeX-JIS-patch .
|
||||
patch < $1/pTeX-JIS-patch.of.patch
|
||||
patch -p < pTeX-JIS-patch
|
||||
mv site.h site.h.orig
|
||||
cat site.h.orig | sed -e "s/#undef JIS/#define JIS/g" > site.h
|
||||
|
||||
if [ ! -d /usr/local/bin ] ; \
|
||||
then mkdir /usr/local/bin ; fi
|
||||
if [ ! -d /usr/local/share ] ; \
|
||||
then mkdir /usr/local/share ; fi
|
||||
if [ ! -d /usr/local/share/tex ] ; \
|
||||
then mkdir /usr/local/share/tex ; fi
|
||||
if [ ! -d /usr/local/share/tex/fonts ] ; \
|
||||
then mkdir /usr/local/share/tex/fonts ; fi
|
||||
if [ ! -d /usr/local/share/tex/jfonts ] ; \
|
||||
then mkdir /usr/local/share/tex/jfonts ; fi
|
||||
if [ ! -d /usr/local/share/tex/jfonts/mincho ] ; \
|
||||
then mkdir /usr/local/share/tex/jfonts/jfms ; fi
|
||||
if [ ! -d /usr/local/share/tex/ainputs ] ; \
|
||||
then mkdir /usr/local/share/tex/ainputs ; fi
|
||||
if [ ! -d /usr/local/share/tex/aformats ] ; \
|
||||
then mkdir /usr/local/share/tex/aformats ; fi
|
||||
if [ ! -d /usr/local/share/tex/apool ] ; \
|
||||
then mkdir /usr/local/share/tex/apool ; fi
|
||||
if [ ! -d /usr/local/share/tex/inputs ] ; \
|
||||
then mkdir /usr/local/share/tex/inputs ; fi
|
47
japanese/jtex209-both/files/both-makefile
Normal file
47
japanese/jtex209-both/files/both-makefile
Normal file
@ -0,0 +1,47 @@
|
||||
# Makefile for compilation of both NTT jTeX-1.52 and ascii jTeX1.7-p1.0.9F.
|
||||
|
||||
all:
|
||||
@(cd jtex-1.52; make all)
|
||||
@(cd jtex1.7/ptex/ptex ; make )
|
||||
@(cd jtex1.7/jtex/BibTeX ; make all)
|
||||
|
||||
install:
|
||||
@(cd jtex-1.52; make install)
|
||||
@(cd jtex1.7/jtex/BibTeX ; make install)
|
||||
@cp jtex1.7/ptex/ptex/ctex/initex /usr/local/bin/iniatex
|
||||
@cp jtex1.7/ptex/ptex/ctex/ptex.pool /usr/local/share/tex/apool
|
||||
@cp jtex1.7/ptex/ptex/ctex/virtex /usr/local/bin/viratex
|
||||
@install -c -m 644 jtex1.7/macros/* /usr/local/share/tex/inputs
|
||||
@install -c -m 644 jtex1.7/jmacros/* /usr/local/share/tex/ainputs
|
||||
@install -c -m 644 jtex1.7/tfm/* /usr/local/share/tex/fonts
|
||||
@install -c -m 644 jtex1.7/jfms/* /usr/local/share/tex/jfonts/jfms
|
||||
@(cd jtex1.7/ptex/ptex/ctex ; make jplain.fmt jlplain.fmt)
|
||||
@install -c -m 644 jtex1.7/ptex/ptex/ctex/jplain.fmt /usr/local/share/tex/aformats/ajtex.fmt
|
||||
@install -c -m 644 jtex1.7/ptex/ptex/ctex/jlplain.fmt /usr/local/share/tex/aformats/ajlatex.fmt
|
||||
@rm -f /usr/local/bin/ajtex /usr/local/bin/ajlatex
|
||||
@ln /usr/local/bin/viratex /usr/local/bin/ajtex
|
||||
@ln /usr/local/bin/viratex /usr/local/bin/ajlatex
|
||||
@cd .. ;
|
||||
@cp -p ./linkselect.sh /usr/local/share/tex/
|
||||
@touch /usr/local/share/tex/BOTH
|
||||
|
||||
reinstall:
|
||||
@( \
|
||||
cd jtex-1.52 ;\
|
||||
cp JTeXfonts/dnpfonts/mincho/tfm/* /usr/local/share/tex/jfonts/mincho/ ;\
|
||||
cp JTeXfonts/dnpfonts/gothic/tfm/* /usr/local/share/tex/jfonts/gothic/ ;\
|
||||
cp JLaTeX/sty/* /usr/local/share/tex/ninputs/ \
|
||||
)
|
||||
@cp jtex1.7/macros/* /usr/local/share/tex/inputs
|
||||
@( \
|
||||
cd /usr/local/share/tex/ ; \
|
||||
tar xzf ${DISTDIR}/tfm-files.tar.Z ; \
|
||||
mv tfm-files/min* jfonts/jfms/; \
|
||||
mv tfm-files/nmin* jfonts/jfms/; \
|
||||
mv tfm-files/goth* jfonts/jfms/; \
|
||||
mv tfm-files/ngoth* jfonts/jfms/; \
|
||||
mv tfm-files/* fonts/ ; \
|
||||
rmdir tfm-files ; \
|
||||
cd fonts ; \
|
||||
tar xzf ${FILESDIR}/tfm-add.tar.gz ; \
|
||||
)
|
34
japanese/jtex209-both/files/linkselect.sh
Normal file
34
japanese/jtex209-both/files/linkselect.sh
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
# linkselect.sh
|
||||
rm -f /usr/local/share/tex/aformats/jtex.fmt
|
||||
rm -f /usr/local/share/tex/aformats/jlatex.fmt
|
||||
rm -f /usr/local/share/tex/nformats/jtex.fmt
|
||||
rm -f /usr/local/share/tex/nformats/jlatex.fmt
|
||||
rm -f /usr/local/bin/jtex
|
||||
rm -f /usr/local/bin/jlatex
|
||||
echo "Which jlatex do you like to run by 'jlatex' command?"
|
||||
echo "1. ASCII pTeX as jlatex"
|
||||
echo "2. NTT jTeX as jlatex"
|
||||
echo "3. I like to use ajlatex for ASCII and njlatex for NTT(Default)."
|
||||
read CHOICE
|
||||
case ${CHOICE} in
|
||||
1)
|
||||
echo "Run ASCII jTeX by 'jlatex' command" ;
|
||||
echo
|
||||
ln -s /usr/local/share/tex/aformats/ajtex.fmt /usr/local/share/tex/aformats/jtex.fmt
|
||||
ln -s /usr/local/share/tex/aformats/ajlatex.fmt /usr/local/share/tex/aformats/jlatex.fmt
|
||||
ln -s /usr/local/bin/viratex /usr/local/bin/jtex
|
||||
ln -s /usr/local/bin/viratex /usr/local/bin/jlatex
|
||||
;;
|
||||
2)
|
||||
echo "Run NTT jTeX by 'jlatex' command" ;
|
||||
echo
|
||||
ln -s /usr/local/share/tex/nformats/njtex.fmt /usr/local/share/tex/nformats/jtex.fmt
|
||||
ln -s /usr/local/share/tex/nformats/njlatex.fmt /usr/local/share/tex/nformats/jlatex.fmt
|
||||
ln -s /usr/local/bin/virjtex /usr/local/bin/jtex
|
||||
ln -s /usr/local/bin/virjtex /usr/local/bin/jlatex
|
||||
;;
|
||||
*)
|
||||
echo "Default."
|
||||
;;
|
||||
esac
|
11
japanese/jtex209-both/files/ntt-EUC.patch
Normal file
11
japanese/jtex209-both/files/ntt-EUC.patch
Normal file
@ -0,0 +1,11 @@
|
||||
*** JTeXplains/sitekcode.tex.orig Thu May 30 23:40:20 1996
|
||||
--- JTeXplains/sitekcode.tex Thu May 30 23:40:34 1996
|
||||
***************
|
||||
*** 1,3 ****
|
||||
% Set up site-default \kanjiterminaltype and \kanjifiletype
|
||||
! \kanjiterminaltype=6
|
||||
! \kanjifiletype=6
|
||||
--- 1,3 ----
|
||||
% Set up site-default \kanjiterminaltype and \kanjifiletype
|
||||
! \kanjiterminaltype=20
|
||||
! \kanjifiletype=20
|
11
japanese/jtex209-both/files/ntt-JIS.patch
Normal file
11
japanese/jtex209-both/files/ntt-JIS.patch
Normal file
@ -0,0 +1,11 @@
|
||||
*** JTeXplains/sitekcode.tex.orig Thu May 30 23:40:20 1996
|
||||
--- JTeXplains/sitekcode.tex Thu May 30 23:40:34 1996
|
||||
***************
|
||||
*** 1,3 ****
|
||||
% Set up site-default \kanjiterminaltype and \kanjifiletype
|
||||
! \kanjiterminaltype=6
|
||||
! \kanjifiletype=6
|
||||
--- 1,3 ----
|
||||
% Set up site-default \kanjiterminaltype and \kanjifiletype
|
||||
! \kanjiterminaltype=20
|
||||
! \kanjifiletype=20
|
11
japanese/jtex209-both/files/ntt-SJIS.patch
Normal file
11
japanese/jtex209-both/files/ntt-SJIS.patch
Normal file
@ -0,0 +1,11 @@
|
||||
*** JTeXplains/sitekcode.tex.orig Thu May 30 23:40:20 1996
|
||||
--- JTeXplains/sitekcode.tex Thu May 30 23:41:17 1996
|
||||
***************
|
||||
*** 1,3 ****
|
||||
% Set up site-default \kanjiterminaltype and \kanjifiletype
|
||||
! \kanjiterminaltype=6
|
||||
! \kanjifiletype=6
|
||||
--- 1,3 ----
|
||||
% Set up site-default \kanjiterminaltype and \kanjifiletype
|
||||
! \kanjiterminaltype=10
|
||||
! \kanjifiletype=10
|
36
japanese/jtex209-both/files/ntt-makefile
Normal file
36
japanese/jtex209-both/files/ntt-makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# Makefile for compilation of NTT jTeX-1.52 only.
|
||||
|
||||
all:
|
||||
@(cd jtex-1.52; make all)
|
||||
@(cd jtex1.7/jtex/BibTeX; make all)
|
||||
install:
|
||||
@(cd jtex-1.52; make install)
|
||||
@(cd jtex1.7/jtex/BibTeX; make install)
|
||||
@rm -f /usr/local/bin/jlatex /usr/local/bin/jtex
|
||||
@rm -f /usr/local/share/tex/nformats/jlatex.fmt /usr/local/share/tex/nformats/jtex.fmt
|
||||
@ln -sf /usr/local/bin/njlatex /usr/local/bin/jlatex
|
||||
@ln -sf /usr/local/bin/njtex /usr/local/bin/jtex
|
||||
@ln -sf /usr/local/share/tex/nformats/njlatex.fmt /usr/local/share/tex/nformats/jlatex.fmt
|
||||
@ln -sf /usr/local/share/tex/nformats/njtex.fmt /usr/local/share/tex/nformats/jtex.fmt
|
||||
@touch /usr/local/share/tex/NTT
|
||||
|
||||
reinstall:
|
||||
@( \
|
||||
cd jtex-1.52 ;\
|
||||
cp JTeXfonts/dnpfonts/mincho/tfm/* /usr/local/share/tex/jfonts/mincho/ ;\
|
||||
cp JTeXfonts/dnpfonts/gothic/tfm/* /usr/local/share/tex/jfonts/gothic/ ;\
|
||||
cp JLaTeX/sty/* /usr/local/share/tex/ninputs/ \
|
||||
)
|
||||
@cp jtex1.7/macros/* /usr/local/share/tex/inputs
|
||||
@( \
|
||||
cd /usr/local/share/tex/ ; \
|
||||
tar xzf ${DISTDIR}/tfm-files.tar.Z ; \
|
||||
mv tfm-files/min* jfonts/jfms/; \
|
||||
mv tfm-files/nmin* jfonts/jfms/; \
|
||||
mv tfm-files/goth* jfonts/jfms/; \
|
||||
mv tfm-files/ngoth* jfonts/jfms/; \
|
||||
mv tfm-files/* fonts/ ; \
|
||||
rmdir tfm-files ; \
|
||||
cd fonts ; \
|
||||
tar xzf ${FILESDIR}/tfm-add.tar.gz ; \
|
||||
)
|
72
japanese/jtex209-both/files/ntt-setup.sh
Normal file
72
japanese/jtex209-both/files/ntt-setup.sh
Normal file
@ -0,0 +1,72 @@
|
||||
#!/bin/sh
|
||||
# ntt-setup ${FILESDIR} ${DISTDIR} [BATCH]
|
||||
if [ "$3" = "BATCH" ] ; then
|
||||
BATCH=yes
|
||||
echo Batch mode
|
||||
fi
|
||||
cd jtex-1.52
|
||||
sh configure
|
||||
cp $1/ntt-EUC.patch $1/ntt-SJIS.patch .
|
||||
if [ "$BATCH" = "yes" ]; then
|
||||
CHOICE=both
|
||||
else
|
||||
echo "Setup for NTT jTeX"
|
||||
echo "Select kanji code on NTT jTeX."
|
||||
echo "1. EUC(default)."
|
||||
echo "2. JIS."
|
||||
echo "3. SJIS."
|
||||
read CHOICE
|
||||
fi
|
||||
case ${CHOICE} in
|
||||
2)
|
||||
echo "Use JIS code for NTT jTeX"
|
||||
echo
|
||||
patch < ntt-EUC.patch
|
||||
;;
|
||||
3)
|
||||
echo "Use SJIS code for NTT jTeX" ;
|
||||
patch < ntt-SJIS.patch
|
||||
;;
|
||||
*)
|
||||
echo "Use EUC code for NTT jTeX"
|
||||
echo
|
||||
patch < ntt-EUC.patch
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ ! -d /usr/local/share/tex ] ; \
|
||||
then mkdir /usr/local/share/tex ; fi
|
||||
if [ ! -d /usr/local/share/tex/fonts ] ; \
|
||||
then mkdir /usr/local/share/tex/fonts ; fi
|
||||
if [ ! -d /usr/local/share/tex/jfonts ] ; \
|
||||
then mkdir /usr/local/share/tex/jfonts ; fi
|
||||
if [ ! -d /usr/local/share/tex/jfonts/mincho ] ; \
|
||||
then mkdir /usr/local/share/tex/jfonts/mincho ; fi
|
||||
if [ ! -d /usr/local/share/tex/jfonts/gothic ] ; \
|
||||
then mkdir /usr/local/share/tex/jfonts/gothic ; fi
|
||||
if [ ! -d /usr/local/share/tex/jfonts/jfms ] ; \
|
||||
then mkdir /usr/local/share/tex/jfonts/jfms ; fi
|
||||
if [ ! -d /usr/local/share/tex/ninputs ] ; \
|
||||
then mkdir /usr/local/share/tex/ninputs ; fi
|
||||
if [ ! -d /usr/local/share/tex/nformats ] ; \
|
||||
then mkdir /usr/local/share/tex/nformats ; fi
|
||||
if [ ! -d /usr/local/share/tex/npool ] ; \
|
||||
then mkdir /usr/local/share/tex/npool ; fi
|
||||
if [ ! -d /usr/local/share/tex/inputs ] ; \
|
||||
then mkdir /usr/local/share/tex/inputs ; fi
|
||||
|
||||
cp JTeXfonts/dnpfonts/mincho/tfm/* /usr/local/share/tex/jfonts/mincho/
|
||||
cp JTeXfonts/dnpfonts/gothic/tfm/* /usr/local/share/tex/jfonts/gothic/
|
||||
cp JLaTeX/sty/* /usr/local/share/tex/ninputs/
|
||||
cp ../jtex1.7/macros/* /usr/local/share/tex/inputs
|
||||
|
||||
cd /usr/local/share/tex/
|
||||
tar xzf $2/tfm-files.tar.Z ; \
|
||||
mv tfm-files/min* jfonts/jfms/; \
|
||||
mv tfm-files/nmin* jfonts/jfms/; \
|
||||
mv tfm-files/goth* jfonts/jfms/; \
|
||||
mv tfm-files/ngoth* jfonts/jfms/; \
|
||||
mv tfm-files/* fonts/ ; \
|
||||
rmdir tfm-files ; \
|
||||
cd fonts ; \
|
||||
tar xzf $1/tfm-add.tar.gz ; \
|
91
japanese/jtex209-both/files/pTeX-JIS-patch.of.patch
Normal file
91
japanese/jtex209-both/files/pTeX-JIS-patch.of.patch
Normal file
@ -0,0 +1,91 @@
|
||||
*** pTeX-JIS-patch.orig Wed Jun 5 09:26:06 1996
|
||||
--- pTeX-JIS-patch Wed Jun 5 09:27:16 1996
|
||||
***************
|
||||
*** 10,23 ****
|
||||
Organization: Tokyo Institute of Tech., Dept. of Computer Science, Japan
|
||||
Lines: 201
|
||||
|
||||
! $@dFC+$G$9!#(J
|
||||
|
||||
! ASCII $@HG$N(J pTeX $@$K(J JIS $@%3!<%I%U%!%$%k$r$/$o$;$k$?$a$N%Q%C%A$G$9!#(J
|
||||
! % cd ptex/ptex; patch -p <$@$3$N%U%!%$%k(J
|
||||
! $@$H$7!"I,MW$K1~$8$F(J site.h $@$G(J #define JIS $@$r$7$F2<$5$$!#(J
|
||||
--
|
||||
! $@;d$K1lAp$N1l$r5[$o$;$J$$$G2<$5$$!#;d$K1lAp$N=-$$$r$D$1$J$$$G2<$5$$!#(J
|
||||
! $@dFC+M5?M(J ($@O6!?dF$NFq$7$$J}(J)
|
||||
kagotani@cs.titech.ac.jp
|
||||
|
||||
diff -rc ../ptex.orig/ctex/Makefile ./ctex/Makefile
|
||||
--- 10,23 ----
|
||||
Organization: Tokyo Institute of Tech., Dept. of Computer Science, Japan
|
||||
Lines: 201
|
||||
|
||||
! $BdFC+$G$9!#(B
|
||||
|
||||
! ASCII $BHG$N(B pTeX $B$K(B JIS $B%3!<%I%U%!%$%k$r$/$o$;$k$?$a$N%Q%C%A$G$9!#(B
|
||||
! % cd ptex/ptex; patch -p <$B$3$N%U%!%$%k(B
|
||||
! $B$H$7!"I,MW$K1~$8$F(B site.h $B$G(B #define JIS $B$r$7$F2<$5$$!#(B
|
||||
--
|
||||
! $B;d$K1lAp$N1l$r5[$o$;$J$$$G2<$5$$!#;d$K1lAp$N=-$$$r$D$1$J$$$G2<$5$$!#(B
|
||||
! $BdFC+M5?M(B ($BO6!?dF$NFq$7$$J}(B)
|
||||
kagotani@cs.titech.ac.jp
|
||||
|
||||
diff -rc ../ptex.orig/ctex/Makefile ./ctex/Makefile
|
||||
***************
|
||||
*** 179,213 ****
|
||||
+ # define putc(c,fp) putc2(c,fp)
|
||||
+ #endif
|
||||
diff -rc ../ptex.orig/site.h ./site.h
|
||||
! *** ../ptex.orig/site.h Wed Sep 19 18:28:29 1990
|
||||
! --- ./site.h Tue Nov 6 15:04:21 1990
|
||||
***************
|
||||
! *** 40,50 ****
|
||||
!
|
||||
! /*
|
||||
! * Our japanese character coding
|
||||
! ! * SJIS or EUC or JIS
|
||||
! */
|
||||
#define KANJI
|
||||
! #define SJIS
|
||||
! #undef EUC
|
||||
!
|
||||
! /* Define if we're running under System V */
|
||||
! #undef SYSV
|
||||
! --- 40,55 ----
|
||||
!
|
||||
! /*
|
||||
! * Our japanese character coding
|
||||
! ! * SJIS or EUC
|
||||
! */
|
||||
! #define KANJI
|
||||
! #define SJIS
|
||||
! #undef EUC
|
||||
+ /*
|
||||
+ * You can define JIS independently of SJIS or EUC. It allows you
|
||||
+ * to feed JIS encoded text files and creates JIS encoded log files.
|
||||
+ */
|
||||
+ #undef JIS
|
||||
|
||||
/* Define if we're running under System V */
|
||||
#undef SYSV
|
||||
--- 179,198 ----
|
||||
+ # define putc(c,fp) putc2(c,fp)
|
||||
+ #endif
|
||||
diff -rc ../ptex.orig/site.h ./site.h
|
||||
! *** ../ptex.orig/site.h Wed Jun 5 09:15:01 1996
|
||||
! --- ./site.h Wed Jun 5 09:23:41 1996
|
||||
***************
|
||||
! *** 45,50 ****
|
||||
! --- 45,56 ----
|
||||
#define KANJI
|
||||
! #undef SJIS
|
||||
! #define EUC
|
||||
+ /*
|
||||
+ * You can define JIS independently of SJIS or EUC. It allows you
|
||||
+ * to feed JIS encoded text files and creates JIS encoded log files.
|
||||
+ */
|
||||
+ #undef JIS
|
||||
+ +
|
||||
|
||||
/* Define if we're running under System V */
|
||||
#undef SYSV
|
25
japanese/jtex209-both/files/patch-aa
Normal file
25
japanese/jtex209-both/files/patch-aa
Normal file
@ -0,0 +1,25 @@
|
||||
*** jtex-1.52/lib/site.h.orig Thu May 30 22:51:39 1996
|
||||
--- jtex-1.52/lib/site.h Thu May 30 23:16:33 1996
|
||||
***************
|
||||
*** 37,46 ****
|
||||
#define MFINPUTS ".:/usr/local/lib/mf/macros:/usr/local/src/TeX+MF/typefaces//"
|
||||
#define MFPOOL "/usr/local/lib/mf" /* mf.pool */
|
||||
#define PKFONTS "/usr/local/lib/tex/fonts/pk" /* PK font */
|
||||
! #define TEXFONTS "/usr/local/lib/tex/fonts/tfm:/usr/local/lib/tex/jfonts/tfm" /* TFM font */
|
||||
! #define TEXFORMATS "/usr/local/lib/tex/formats" /* format file */
|
||||
! #define TEXINPUTS ".:/usr/local/lib/tex/inputs" /* TeX source */
|
||||
! #define TEXPOOL "/usr/local/lib/tex" /* tex.pool */
|
||||
#define VFFONTS "/usr/local/lib/tex/fonts/vf" /* VFM font */
|
||||
|
||||
/* Metafont online output support: More than one may be defined, except
|
||||
--- 37,46 ----
|
||||
#define MFINPUTS ".:/usr/local/lib/mf/macros:/usr/local/src/TeX+MF/typefaces//"
|
||||
#define MFPOOL "/usr/local/lib/mf" /* mf.pool */
|
||||
#define PKFONTS "/usr/local/lib/tex/fonts/pk" /* PK font */
|
||||
! #define TEXFONTS "/usr/local/share/tex/fonts:/usr/local/share/tex/jfonts/mincho:/usr/local/share/tex/jfonts/gothic" /* TFM font */
|
||||
! #define TEXFORMATS "/usr/local/share/tex/nformats" /* format file */
|
||||
! #define TEXINPUTS ".:/usr/local/share/tex/ninputs//:/usr/local/share/tex/inputs//" /* TeX source */
|
||||
! #define TEXPOOL "/usr/local/share/tex/npool" /* tex.pool */
|
||||
#define VFFONTS "/usr/local/lib/tex/fonts/vf" /* VFM font */
|
||||
|
||||
/* Metafont online output support: More than one may be defined, except
|
116
japanese/jtex209-both/files/patch-ab
Normal file
116
japanese/jtex209-both/files/patch-ab
Normal file
@ -0,0 +1,116 @@
|
||||
*** jtex-1.52/Makefile.in.orig Mon Jan 31 18:18:21 1994
|
||||
--- jtex-1.52/Makefile.in Sat Jun 1 13:06:16 1996
|
||||
***************
|
||||
*** 8,20 ****
|
||||
# match the system directories in the paths you defined in `site.h'.
|
||||
prefix = /usr/local
|
||||
bindir = $(prefix)/bin
|
||||
! datadir = $(prefix)/lib
|
||||
|
||||
texdatadir = $(datadir)/tex
|
||||
! texpooldir = $(texdatadir)
|
||||
texinputdir = $(texdatadir)/macros
|
||||
texfontdir = $(texdatadir)/fonts
|
||||
! formatdir = $(texdatadir)/formats
|
||||
|
||||
mfdatadir=$(datadir)/mf
|
||||
mfpooldir=$(mfdatadir)
|
||||
--- 8,20 ----
|
||||
# match the system directories in the paths you defined in `site.h'.
|
||||
prefix = /usr/local
|
||||
bindir = $(prefix)/bin
|
||||
! datadir = $(prefix)/share
|
||||
|
||||
texdatadir = $(datadir)/tex
|
||||
! texpooldir = $(texdatadir)/npool
|
||||
texinputdir = $(texdatadir)/macros
|
||||
texfontdir = $(texdatadir)/fonts
|
||||
! formatdir = $(texdatadir)/nformats
|
||||
|
||||
mfdatadir=$(datadir)/mf
|
||||
mfpooldir=$(mfdatadir)
|
||||
***************
|
||||
*** 30,36 ****
|
||||
# `make bases' will try to make, and `make install-formats' and `make
|
||||
# install-bases' will try to install. See README.W2C for a brief
|
||||
# description of each of these formats.
|
||||
! formats=jtex.fmt jlatex.fmt
|
||||
# jslitex.fmt amsjtex.fmt amsjlatex.fmt jfoiltex.fmt
|
||||
#formats=tex.fmt latex.fmt etex.fmt
|
||||
# slitex.fmt amslatex.fmt amstex.fmt texinfo.fmt inrstex.fmt picplus.fmt
|
||||
--- 30,36 ----
|
||||
# `make bases' will try to make, and `make install-formats' and `make
|
||||
# install-bases' will try to install. See README.W2C for a brief
|
||||
# description of each of these formats.
|
||||
! formats=njtex.fmt njlatex.fmt
|
||||
# jslitex.fmt amsjtex.fmt amsjlatex.fmt jfoiltex.fmt
|
||||
#formats=tex.fmt latex.fmt etex.fmt
|
||||
# slitex.fmt amslatex.fmt amstex.fmt texinfo.fmt inrstex.fmt picplus.fmt
|
||||
***************
|
||||
*** 55,61 ****
|
||||
|
||||
# Compiling.
|
||||
CC = @CC@
|
||||
! coptimize = -O
|
||||
# Some directories add more flags to this; hence this is not CFLAGS.
|
||||
cflags = -I../$(srcdir)/lib $(coptimize) $(XCFLAGS)
|
||||
|
||||
--- 55,61 ----
|
||||
|
||||
# Compiling.
|
||||
CC = @CC@
|
||||
! coptimize = -O -m486
|
||||
# Some directories add more flags to this; hence this is not CFLAGS.
|
||||
cflags = -I../$(srcdir)/lib $(coptimize) $(XCFLAGS)
|
||||
|
||||
***************
|
||||
*** 71,77 ****
|
||||
RANLIB = @RANLIB@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
! INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
|
||||
# How to make a link.
|
||||
--- 71,77 ----
|
||||
RANLIB = @RANLIB@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
! INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
|
||||
# How to make a link.
|
||||
***************
|
||||
*** 133,139 ****
|
||||
#
|
||||
# The following targets build production versions.
|
||||
|
||||
! all: programs manpages bases formats
|
||||
|
||||
programs: stamp-tangle
|
||||
for name in $(progdirs); \
|
||||
--- 133,139 ----
|
||||
#
|
||||
# The following targets build production versions.
|
||||
|
||||
! all: programs formats #manpages bases
|
||||
|
||||
programs: stamp-tangle
|
||||
for name in $(progdirs); \
|
||||
***************
|
||||
*** 208,214 ****
|
||||
ln $(bindir)/virjtex $(bindir)/`basename $$f .fmt`; \
|
||||
$(INSTALL_DATA) jtex/$$f $(formatdir)/$$f; \
|
||||
done
|
||||
! cd $(formatdir); rm -f jplain.fmt; ln jtex.fmt jplain.fmt
|
||||
|
||||
install-bases: stamp-bases
|
||||
-if test -d $(basedir); then exit 0; else mkdir $(basedir); fi
|
||||
--- 208,214 ----
|
||||
ln $(bindir)/virjtex $(bindir)/`basename $$f .fmt`; \
|
||||
$(INSTALL_DATA) jtex/$$f $(formatdir)/$$f; \
|
||||
done
|
||||
! cd $(formatdir); rm -f jplain.fmt; ln njtex.fmt jplain.fmt
|
||||
|
||||
install-bases: stamp-bases
|
||||
-if test -d $(basedir); then exit 0; else mkdir $(basedir); fi
|
52
japanese/jtex209-both/files/patch-ac
Normal file
52
japanese/jtex209-both/files/patch-ac
Normal file
@ -0,0 +1,52 @@
|
||||
*** jtex-1.52/jtex/Makefile.orig Sat Jun 1 12:20:40 1996
|
||||
--- jtex-1.52/jtex/Makefile Sat Jun 1 12:22:54 1996
|
||||
***************
|
||||
*** 142,152 ****
|
||||
inrstex.fmt:
|
||||
./initex inrstex \\dump
|
||||
|
||||
! jlatex.fmt: ${JTEXINPUTS}/jtexbase.tex
|
||||
TEXINPUTS="${JTEXINPUTS}:${LATEXINPUTS}:${TEXINPUTS}" TEXPOOL="." \
|
||||
./inijtex jlplain \\dump
|
||||
! mv jlplain.fmt jlatex.fmt
|
||||
! mv jlplain.log jlatex.log
|
||||
|
||||
picplus.fmt: tex.fmt
|
||||
./initex \&./tex picplus \\dump
|
||||
--- 142,152 ----
|
||||
inrstex.fmt:
|
||||
./initex inrstex \\dump
|
||||
|
||||
! njlatex.fmt: ${JTEXINPUTS}/jtexbase.tex
|
||||
TEXINPUTS="${JTEXINPUTS}:${LATEXINPUTS}:${TEXINPUTS}" TEXPOOL="." \
|
||||
./inijtex jlplain \\dump
|
||||
! mv jlplain.fmt njlatex.fmt
|
||||
! mv jlplain.log njlatex.log
|
||||
|
||||
picplus.fmt: tex.fmt
|
||||
./initex \&./tex picplus \\dump
|
||||
***************
|
||||
*** 158,168 ****
|
||||
mv jsplain.fmt jslitex.fmt
|
||||
mv jsplain.log jslitex.log
|
||||
|
||||
! jtex.fmt: ${JTEXINPUTS}/jtexbase.tex
|
||||
TEXINPUTS="${JTEXINPUTS}:${TEXINPUTS}" TEXPOOL="." \
|
||||
./inijtex jplain \\dump
|
||||
! mv jplain.fmt jtex.fmt
|
||||
! mv jplain.log jtex.log
|
||||
|
||||
# Texinfo changes the escape character from `\' to `@'.
|
||||
texinfo.fmt: tex.fmt
|
||||
--- 158,168 ----
|
||||
mv jsplain.fmt jslitex.fmt
|
||||
mv jsplain.log jslitex.log
|
||||
|
||||
! njtex.fmt: ${JTEXINPUTS}/jtexbase.tex
|
||||
TEXINPUTS="${JTEXINPUTS}:${TEXINPUTS}" TEXPOOL="." \
|
||||
./inijtex jplain \\dump
|
||||
! mv jplain.fmt njtex.fmt
|
||||
! mv jplain.log njtex.log
|
||||
|
||||
# Texinfo changes the escape character from `\' to `@'.
|
||||
texinfo.fmt: tex.fmt
|
372
japanese/jtex209-both/files/patch-ad
Normal file
372
japanese/jtex209-both/files/patch-ad
Normal file
@ -0,0 +1,372 @@
|
||||
*** jtex1.7/ptex/ptex/Makefile.orig Sat Sep 9 17:53:07 1995
|
||||
--- jtex1.7/ptex/ptex/Makefile Sat Sep 9 17:56:03 1995
|
||||
***************
|
||||
*** 6,15 ****
|
||||
|
||||
# Installation directories
|
||||
BINDIR=/usr/local/bin
|
||||
! TEXPOOLDIR=/usr/lib/tex
|
||||
! MFPOOLDIR=/usr/lib/mf
|
||||
CDIR=ctex
|
||||
! CONV=convert
|
||||
|
||||
# Libraries needed for X10 support
|
||||
XLIBS=-lX
|
||||
--- 6,15 ----
|
||||
|
||||
# Installation directories
|
||||
BINDIR=/usr/local/bin
|
||||
! TEXPOOLDIR=/usr/local/share/tex/apool
|
||||
! MFPOOLDIR=/usr/local/share/mf
|
||||
CDIR=ctex
|
||||
! CONV=./convert
|
||||
|
||||
# Libraries needed for X10 support
|
||||
XLIBS=-lX
|
||||
***************
|
||||
*** 41,54 ****
|
||||
cp ${CDIR}/initex ${BINDIR}/initex
|
||||
cp ${CDIR}/tex.pool ${TEXPOOLDIR}/tex.pool
|
||||
|
||||
! web2c:
|
||||
(cd web2cdir; make)
|
||||
|
||||
triptex: web2c jtangle ${CDIR}/tex0.c ${CDIR}/triptex
|
||||
${CDIR}/triptex:
|
||||
(cd ${CDIR}; make triptex)
|
||||
|
||||
! initex: web2c jtangle ${CDIR}/initex
|
||||
${CDIR}/initex: ${CDIR}/tex0.c
|
||||
(cd ${CDIR}; make initex)
|
||||
|
||||
--- 41,54 ----
|
||||
cp ${CDIR}/initex ${BINDIR}/initex
|
||||
cp ${CDIR}/tex.pool ${TEXPOOLDIR}/tex.pool
|
||||
|
||||
! web2c:
|
||||
(cd web2cdir; make)
|
||||
|
||||
triptex: web2c jtangle ${CDIR}/tex0.c ${CDIR}/triptex
|
||||
${CDIR}/triptex:
|
||||
(cd ${CDIR}; make triptex)
|
||||
|
||||
! initex: web2c jtangle/jtangle ${CDIR}/initex
|
||||
${CDIR}/initex: ${CDIR}/tex0.c
|
||||
(cd ${CDIR}; make initex)
|
||||
|
||||
***************
|
||||
*** 84,90 ****
|
||||
${CDIR}/latex: initex virtex
|
||||
(cd ${CDIR}; make latex)
|
||||
|
||||
! jtangle:
|
||||
(cd jtangle; make jtangle)
|
||||
|
||||
|
||||
--- 84,90 ----
|
||||
${CDIR}/latex: initex virtex
|
||||
(cd ${CDIR}; make latex)
|
||||
|
||||
! jtangle/jtangle:
|
||||
(cd jtangle; make jtangle)
|
||||
|
||||
|
||||
*** jtex1.7/ptex/ptex/ctex/Makefile.orig Sat Sep 9 17:52:55 1995
|
||||
--- jtex1.7/ptex/ptex/ctex/Makefile Sat Sep 9 17:56:07 1995
|
||||
***************
|
||||
*** 7,13 ****
|
||||
SITEDIR=..
|
||||
#CC=gcc
|
||||
OPT=-O
|
||||
! CFLAGS=$(OPT) -I$(SITEDIR)
|
||||
LDFLAGS=
|
||||
RM=/bin/rm
|
||||
|
||||
--- 7,13 ----
|
||||
SITEDIR=..
|
||||
#CC=gcc
|
||||
OPT=-O
|
||||
! CFLAGS=$(OPT) -m486 -I$(SITEDIR) -D_HAVE_PRAM_H
|
||||
LDFLAGS=
|
||||
RM=/bin/rm
|
||||
|
||||
*** jtex1.7/ptex/ptex/ctex/extra.c.orig Sat Sep 9 17:52:55 1995
|
||||
--- jtex1.7/ptex/ptex/ctex/extra.c Sat Sep 9 17:56:09 1995
|
||||
***************
|
||||
*** 38,49 ****
|
||||
|
||||
static char *texeditvalue = EDITOR;
|
||||
|
||||
! #ifdef SYSV /* Sys V compatibility */
|
||||
! #define index strchr
|
||||
! #define rindex strrchr
|
||||
! extern int sprintf();
|
||||
#else
|
||||
extern char *sprintf();
|
||||
#endif
|
||||
|
||||
/* C library stuff that we're going to use */
|
||||
--- 38,50 ----
|
||||
|
||||
static char *texeditvalue = EDITOR;
|
||||
|
||||
! #ifdef SYSV
|
||||
! extern sprintf();
|
||||
! #else
|
||||
! #if (defined(BSD) && (BSD > 199103))
|
||||
#else
|
||||
extern char *sprintf();
|
||||
+ #endif
|
||||
#endif
|
||||
|
||||
/* C library stuff that we're going to use */
|
||||
|
||||
*** jtex1.7/ptex/ptex/ctex/tex.h.orig Sat Sep 9 17:52:55 1995
|
||||
--- jtex1.7/ptex/ptex/ctex/tex.h Sat Sep 9 17:56:13 1995
|
||||
***************
|
||||
*** 9,14 ****
|
||||
--- 9,21 ----
|
||||
#include <stdio.h>
|
||||
#include "site.h"
|
||||
|
||||
+ #ifdef _HAVE_PRAM_H
|
||||
+ #ifdef BSD
|
||||
+ #undef BSD
|
||||
+ #endif
|
||||
+ #include <sys/param.h>
|
||||
+ #endif
|
||||
+
|
||||
/* These are used in the change files and in macros defined in tex.h */
|
||||
#define inputpathspec 1
|
||||
#define readpathspec 2
|
||||
|
||||
*** jtex1.7/ptex/ptex/jtangle/Makefile.orig Sat Sep 9 17:53:03 1995
|
||||
--- jtex1.7/ptex/ptex/jtangle/Makefile Sat Sep 9 17:56:15 1995
|
||||
***************
|
||||
*** 6,12 ****
|
||||
|
||||
BINDIR=/usr/local/bin
|
||||
|
||||
! CFLAGS=-O -Dlink=link_array -I..
|
||||
LDFLAGS=-s
|
||||
|
||||
.SUFFIXES:
|
||||
--- 6,12 ----
|
||||
|
||||
BINDIR=/usr/local/bin
|
||||
|
||||
! CFLAGS=-O -Dlink=link_array -I.. -D_HAVE_PRAM_H
|
||||
LDFLAGS=-s
|
||||
|
||||
.SUFFIXES:
|
||||
*** jtex1.7/ptex/ptex/jtangle/tanext.c.orig Sat Sep 9 17:53:04 1995
|
||||
--- jtex1.7/ptex/ptex/jtangle/tanext.c Sat Sep 9 17:56:17 1995
|
||||
***************
|
||||
*** 16,21 ****
|
||||
--- 16,29 ----
|
||||
#include <stdio.h>
|
||||
#include "site.h"
|
||||
|
||||
+ #ifdef _HAVE_PRAM_H
|
||||
+ #ifdef BSD
|
||||
+ #undef BSD
|
||||
+ #endif
|
||||
+ #include <sys/param.h>
|
||||
+ #endif
|
||||
+
|
||||
+
|
||||
#define BUF_SIZE 100 /* should agree with tangle.web */
|
||||
|
||||
extern char buffer[]; /* 0..BUF_SIZE. Input goes here */
|
||||
***************
|
||||
*** 28,34 ****
|
||||
--- 36,45 ----
|
||||
extern int sprintf();
|
||||
#else
|
||||
#ifndef ANSI /*ANSI stdio.h contains sprintf prototype*/
|
||||
+ #if (defined(BSD) && (BSD > 199103))
|
||||
+ #else
|
||||
extern char *sprintf();
|
||||
+ #endif
|
||||
#endif /*ANSI*/
|
||||
#endif
|
||||
|
||||
|
||||
*** jtex1.7/ptex/ptex/site.h.orig Sat Sep 9 17:53:07 1995
|
||||
--- jtex1.7/ptex/ptex/site.h Sat Sep 9 17:56:18 1995
|
||||
***************
|
||||
*** 18,24 ****
|
||||
* Default editor command string: %d expands to the line number where
|
||||
* TeX or Metafont found an error and %s expands to the name of the file.
|
||||
*/
|
||||
! #define EDITOR "/usr/local/bin/jvi +%d %s"
|
||||
|
||||
/*
|
||||
* If the type "int" is at least 32 bits (including a sign bit), this
|
||||
--- 18,24 ----
|
||||
* Default editor command string: %d expands to the line number where
|
||||
* TeX or Metafont found an error and %s expands to the name of the file.
|
||||
*/
|
||||
! #define EDITOR "/usr/bin/vi +%d %s"
|
||||
|
||||
/*
|
||||
* If the type "int" is at least 32 bits (including a sign bit), this
|
||||
***************
|
||||
*** 106,126 ****
|
||||
typedef double real;
|
||||
|
||||
/* TeX search paths: This is what we use at U. of Washington. */
|
||||
! #define TEXINPUTS ".:/usr/lib/tex/macros"
|
||||
! #define TEXFONTS ".:/usr/lib/tex/fonts"
|
||||
! #define TEXPOOL ".:/usr/lib/tex"
|
||||
! #define TEXFORMATS ".:/usr/lib/tex"
|
||||
|
||||
/* Metafont search paths */
|
||||
! #define MFINPUTS ".:/usr/lib/mf/inputs"
|
||||
! #define MFBASES ".:/usr/lib/mf/bases"
|
||||
! #define MFPOOL ".:/usr/lib/mf"
|
||||
|
||||
/*
|
||||
* BibTeX search path for .bib files.
|
||||
* NB: TEXINPUTS is used by BibTeX to search for .bst files.
|
||||
*/
|
||||
! #define BIBINPUTS ".:/usr/lib/bibfiles"
|
||||
|
||||
/*
|
||||
* Metafont Window Support: More than one may be defined, as long
|
||||
--- 106,126 ----
|
||||
typedef double real;
|
||||
|
||||
/* TeX search paths: This is what we use at U. of Washington. */
|
||||
! #define TEXINPUTS ".:/usr/local/share/tex/ainputs:/usr/local/share/tex/inputs"
|
||||
! #define TEXFONTS ".:/usr/local/share/tex/fonts:/usr/local/share/tex/jfonts/jfms"
|
||||
! #define TEXPOOL ".:/usr/local/share/tex/apool"
|
||||
! #define TEXFORMATS ".:/usr/local/share/tex/aformats"
|
||||
|
||||
/* Metafont search paths */
|
||||
! #define MFINPUTS ".:/usr/local/share/mf/inputs"
|
||||
! #define MFBASES ".:/usr/local/share/mf/bases"
|
||||
! #define MFPOOL ".:/usr/local/share/mf"
|
||||
|
||||
/*
|
||||
* BibTeX search path for .bib files.
|
||||
* NB: TEXINPUTS is used by BibTeX to search for .bst files.
|
||||
*/
|
||||
! #define BIBINPUTS ".:/usr/local/lib/bibfiles"
|
||||
|
||||
/*
|
||||
* Metafont Window Support: More than one may be defined, as long
|
||||
|
||||
|
||||
*** jtex1.7/ptex/ptex/web2cdir/Makefile.orig Sat Sep 9 17:53:06 1995
|
||||
--- jtex1.7/ptex/ptex/web2cdir/Makefile Sat Sep 9 17:56:19 1995
|
||||
***************
|
||||
*** 4,10 ****
|
||||
|
||||
SITEDIR=..
|
||||
OPT=-O
|
||||
! CFLAGS=$(OPT) -I$(SITEDIR)
|
||||
LDFLAGS=
|
||||
#LDFLAGS=-s
|
||||
RM=/bin/rm
|
||||
--- 4,10 ----
|
||||
|
||||
SITEDIR=..
|
||||
OPT=-O
|
||||
! CFLAGS=$(OPT) -I$(SITEDIR) -DFLEX -D_HAVE_PRAM_H
|
||||
LDFLAGS=
|
||||
#LDFLAGS=-s
|
||||
RM=/bin/rm
|
||||
|
||||
*** jtex1.7/ptex.org/ptex/web2cdir/splitup.c.orig Sat Sep 9 17:53:06 1995
|
||||
--- jtex1.7/ptex/ptex/web2cdir/splitup.c Sat Sep 9 17:56:20 1995
|
||||
***************
|
||||
*** 9,14 ****
|
||||
--- 9,22 ----
|
||||
#include <stdio.h>
|
||||
#include "site.h"
|
||||
|
||||
+
|
||||
+ #ifdef _HAVE_PRAM_H
|
||||
+ #ifdef BSD
|
||||
+ #undef BSD
|
||||
+ #endif
|
||||
+ #include <sys/param.h>
|
||||
+ #endif
|
||||
+
|
||||
int filenumber = 0, ifdef_nesting = 0, has_ini, lines_in_file = 0;
|
||||
char *output_name = "tex";
|
||||
|
||||
***************
|
||||
*** 29,36 ****
|
||||
--- 37,48 ----
|
||||
#ifdef SYSV
|
||||
extern sprintf();
|
||||
#else
|
||||
+ #if (defined(BSD) && (BSD > 199103))
|
||||
+ #else
|
||||
extern char *sprintf();
|
||||
#endif
|
||||
+ #endif
|
||||
+
|
||||
|
||||
FILE *out, *in = stdin, *ini, *temp;
|
||||
|
||||
|
||||
*** jtex1.7/ptex.org/ptex/web2cdir/web2c.c.orig Sat Sep 9 17:53:06 1995
|
||||
--- jtex1.7/ptex/ptex/web2cdir/web2c.c Sat Sep 9 17:56:21 1995
|
||||
***************
|
||||
*** 19,28 ****
|
||||
--- 19,38 ----
|
||||
#include "site.h"
|
||||
#include "web2cy.h"
|
||||
|
||||
+ #ifdef _HAVE_PRAM_H
|
||||
+ #ifdef BSD
|
||||
+ #undef BSD
|
||||
+ #endif
|
||||
+ #include <sys/param.h>
|
||||
+ #endif
|
||||
+
|
||||
#ifdef SYSV
|
||||
extern sprintf();
|
||||
#else
|
||||
+ #if (defined(BSD) && (BSD > 199103))
|
||||
+ #else
|
||||
extern char *sprintf();
|
||||
+ #endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
*** jtex1.7/ptex/ptex/web2cdir/web2c.h.orig Sat Sep 9 17:53:06 1995
|
||||
--- jtex1.7/ptex/ptex/web2cdir/web2c.h Sat Sep 9 17:56:24 1995
|
||||
***************
|
||||
*** 1,6 ****
|
||||
--- 1,13 ----
|
||||
#include <stdio.h>
|
||||
#include "site.h"
|
||||
|
||||
+ #ifdef _HAVE_PRAM_H
|
||||
+ #ifdef BSD
|
||||
+ #undef BSD
|
||||
+ #endif
|
||||
+ #include <sys/param.h>
|
||||
+ #endif
|
||||
+
|
||||
#ifndef BSD
|
||||
#include <string.h>
|
||||
#else
|
||||
***************
|
||||
*** 10,16 ****
|
||||
--- 17,26 ----
|
||||
#ifdef SYSV
|
||||
extern sprintf();
|
||||
#else
|
||||
+ #if (defined(BSD) && (BSD > 199103))
|
||||
+ #else
|
||||
extern char *sprintf();
|
||||
+ #endif
|
||||
#endif
|
||||
|
||||
#define TRUE 1
|
89
japanese/jtex209-both/files/patch-ae
Normal file
89
japanese/jtex209-both/files/patch-ae
Normal file
@ -0,0 +1,89 @@
|
||||
*** jtex1.7/jtex/BibTeX/Makefile.orig Thu Jun 6 18:07:59 1996
|
||||
--- jtex1.7/jtex/BibTeX/Makefile Thu Jun 6 21:28:29 1996
|
||||
***************
|
||||
*** 3,20 ****
|
||||
#############################
|
||||
|
||||
OPT=-O
|
||||
! SITEDIR=..
|
||||
LDFLAGS=
|
||||
CFLAGS=$(OPT) -I$(SITEDIR)
|
||||
BINDIR=/usr/local/bin
|
||||
! BSTDIR=/usr/lib/tex/inputs
|
||||
|
||||
RM=/bin/rm -f
|
||||
|
||||
# for NTT jtex
|
||||
#TANGLE=../texware/tangle
|
||||
# for ASCII jtex
|
||||
! TANGLE=../jtangle/jtangle
|
||||
|
||||
SRCKIT = readme readme.1st.unix Makefile sed.script bibext.c \
|
||||
bibtex.ch bibtex.defines bibtex.h kanji.h
|
||||
--- 3,20 ----
|
||||
#############################
|
||||
|
||||
OPT=-O
|
||||
! SITEDIR=../../ptex/ptex
|
||||
LDFLAGS=
|
||||
CFLAGS=$(OPT) -I$(SITEDIR)
|
||||
BINDIR=/usr/local/bin
|
||||
! BSTDIR=/usr/local/share/tex/inputs
|
||||
|
||||
RM=/bin/rm -f
|
||||
|
||||
# for NTT jtex
|
||||
#TANGLE=../texware/tangle
|
||||
# for ASCII jtex
|
||||
! TANGLE=../../ptex/ptex/jtangle/jtangle
|
||||
|
||||
SRCKIT = readme readme.1st.unix Makefile sed.script bibext.c \
|
||||
bibtex.ch bibtex.defines bibtex.h kanji.h
|
||||
***************
|
||||
*** 25,31 ****
|
||||
SRC = bibtex0.c bibtex1.c bibtex2.c bibtex3.c bibtex4.c
|
||||
OBJ = bibtex0.o bibtex1.o bibtex2.o bibtex3.o bibtex4.o
|
||||
|
||||
! all: jbibtex bibstyle
|
||||
|
||||
jbibtex: $(OBJ) bibext.o
|
||||
$(CC) $(LDFLAGS) $(CFLAGS) -o jbibtex $(OBJ) bibext.o
|
||||
--- 25,37 ----
|
||||
SRC = bibtex0.c bibtex1.c bibtex2.c bibtex3.c bibtex4.c
|
||||
OBJ = bibtex0.o bibtex1.o bibtex2.o bibtex3.o bibtex4.o
|
||||
|
||||
! all: web2c jtangle jbibtex bibstyle
|
||||
!
|
||||
! jtangle: ../../ptex/ptex/jtangle
|
||||
! (cd ../../ptex/ptex/jtangle ; ${MAKE} all )
|
||||
!
|
||||
! web2c: ../../ptex/ptex/web2cdir
|
||||
! (cd ../../ptex/ptex/web2cdir ; ${MAKE} all )
|
||||
|
||||
jbibtex: $(OBJ) bibext.o
|
||||
$(CC) $(LDFLAGS) $(CFLAGS) -o jbibtex $(OBJ) bibext.o
|
||||
***************
|
||||
*** 39,49 ****
|
||||
|
||||
$(SRC): bibtex.p bibtex.defines
|
||||
cat bibtex.defines bibtex.p \
|
||||
! | ../web2cdir/web2c -hbibtex.h \
|
||||
| sed -f sed.script \
|
||||
! | ../web2cdir/fixwrites \
|
||||
| sed -e 's/putc(/Fputc(/g' \
|
||||
! | ../web2cdir/splitup
|
||||
mv -f coerce.h xcoerce.h
|
||||
sed -e 's/(buftype)//g' -e 's/(pdstype)//g' < xcoerce.h > coerce.h
|
||||
$(RM) xcoerce.h stack.stack bibtex.pool
|
||||
--- 45,55 ----
|
||||
|
||||
$(SRC): bibtex.p bibtex.defines
|
||||
cat bibtex.defines bibtex.p \
|
||||
! | ../../ptex/ptex/web2cdir/web2c -hbibtex.h \
|
||||
| sed -f sed.script \
|
||||
! | ../../ptex/ptex/web2cdir/fixwrites \
|
||||
| sed -e 's/putc(/Fputc(/g' \
|
||||
! | ../../ptex/ptex/web2cdir/splitup
|
||||
mv -f coerce.h xcoerce.h
|
||||
sed -e 's/(buftype)//g' -e 's/(pdstype)//g' < xcoerce.h > coerce.h
|
||||
$(RM) xcoerce.h stack.stack bibtex.pool
|
33
japanese/jtex209-both/files/patch-af
Normal file
33
japanese/jtex209-both/files/patch-af
Normal file
@ -0,0 +1,33 @@
|
||||
*** jtex1.7/jtex/BibTeX/bst/generate.sh.orig Thu Jun 6 21:29:34 1996
|
||||
--- jtex1.7/jtex/BibTeX/bst/generate.sh Thu Jun 6 21:29:53 1996
|
||||
***************
|
||||
*** 1,14 ****
|
||||
#!/bin/sh
|
||||
# use cpp
|
||||
! /lib/cpp -P -DJPLAIN jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jplain.bst
|
||||
! /lib/cpp -P -DJALPHA jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jalpha.bst
|
||||
! /lib/cpp -P -DJUNSRT jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >junsrt.bst
|
||||
! /lib/cpp -P -DJABBRV jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jabbrv.bst
|
||||
! /lib/cpp -P -DJIPSJ jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jipsj.bst
|
||||
! /lib/cpp -P -DTIPSJ jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >tipsj.bst
|
||||
! /lib/cpp -P -DTIEICE jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >tieice.bst
|
||||
! /lib/cpp -P -DJNAME jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jname.bst
|
||||
! /lib/cpp -P -DJORSJ jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jorsj.bst
|
||||
# use gawk
|
||||
#gawk -f cpp.awk JPLAIN >jplain.bst
|
||||
#gawk -f cpp.awk JALPHA >jalpha.bst
|
||||
--- 1,14 ----
|
||||
#!/bin/sh
|
||||
# use cpp
|
||||
! /usr/bin/cpp -P -DJPLAIN jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jplain.bst
|
||||
! /usr/bin/cpp -P -DJALPHA jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jalpha.bst
|
||||
! /usr/bin/cpp -P -DJUNSRT jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >junsrt.bst
|
||||
! /usr/bin/cpp -P -DJABBRV jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jabbrv.bst
|
||||
! /usr/bin/cpp -P -DJIPSJ jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jipsj.bst
|
||||
! /usr/bin/cpp -P -DTIPSJ jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >tipsj.bst
|
||||
! /usr/bin/cpp -P -DTIEICE jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >tieice.bst
|
||||
! /usr/bin/cpp -P -DJNAME jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jname.bst
|
||||
! /usr/bin/cpp -P -DJORSJ jbtxbst.doc|sed -e '/^%/d' -e '/^$/d' >jorsj.bst
|
||||
# use gawk
|
||||
#gawk -f cpp.awk JPLAIN >jplain.bst
|
||||
#gawk -f cpp.awk JALPHA >jalpha.bst
|
21
japanese/jtex209-both/files/patch-ag
Normal file
21
japanese/jtex209-both/files/patch-ag
Normal file
@ -0,0 +1,21 @@
|
||||
*** jtex1.7/jtex/BibTeX/bst/Makefile.orig Thu Jun 6 22:21:52 1996
|
||||
--- jtex1.7/jtex/BibTeX/bst/Makefile Thu Jun 6 22:22:05 1996
|
||||
***************
|
||||
*** 3,10 ****
|
||||
|
||||
all: bst
|
||||
|
||||
! bst: generate.sh jbtxbst.doc
|
||||
! generate.sh
|
||||
|
||||
clean:
|
||||
$(RM) $(BSTFILE)
|
||||
--- 3,10 ----
|
||||
|
||||
all: bst
|
||||
|
||||
! bst: ./generate.sh jbtxbst.doc
|
||||
! ./generate.sh
|
||||
|
||||
clean:
|
||||
$(RM) $(BSTFILE)
|
44
japanese/jtex209-both/files/select.sh
Normal file
44
japanese/jtex209-both/files/select.sh
Normal file
@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
# Usage: select.sh ${FILESDIR} ${DISTDIR} ${PKGDIR} [ASCII|NTT|BOTH|SELECT]
|
||||
|
||||
if [ "$4" = "BOTH" ]; then
|
||||
CHOICE=both
|
||||
BATCH=BATCH
|
||||
echo "Batch mode compile ASCII jtex1.7-p1.0.9F and NTT jtex-1.52."
|
||||
elif [ "$4" = "ASCII" ]; then
|
||||
CHOICE=1
|
||||
BATCH=BATCH
|
||||
echo "Batch mode compile ASCII jtex1.7-p1.0.9F."
|
||||
elif [ "$4" = "NTT" ]; then
|
||||
CHOICE=2
|
||||
BATCH=BATCH
|
||||
echo "Batch mode compile NTT jtex1.52."
|
||||
else
|
||||
echo "Which jtex do you like to install?"
|
||||
echo "1. Install ASCII jtex1.7-p1.0.9F only."
|
||||
echo "2. Install NTT jtex-1.52 only."
|
||||
echo "3. Install both of them (default)."
|
||||
read CHOICE
|
||||
fi
|
||||
case ${CHOICE} in
|
||||
1)
|
||||
echo "Install ASCII jtex1.7-p1.0.9F only." ;
|
||||
echo
|
||||
cp $1/ascii-makefile ./Makefile
|
||||
$1/ascii-setup.sh $1 $2 ${BATCH}
|
||||
;;
|
||||
2)
|
||||
echo "Install NTT jtex-1.52 only."
|
||||
echo
|
||||
cp $1/ntt-makefile ./Makefile
|
||||
$1/ntt-setup.sh $1 $2 ${BATCH}
|
||||
;;
|
||||
*)
|
||||
echo "Install both of them."
|
||||
echo
|
||||
cp $1/both-makefile ./Makefile
|
||||
cp $1/linkselect.sh .
|
||||
$1/ntt-setup.sh $1 $2 ${BATCH}
|
||||
$1/ascii-setup.sh $1 $2 ${BATCH}
|
||||
;;
|
||||
esac
|
BIN
japanese/jtex209-both/files/tfm-add.tar.gz
Normal file
BIN
japanese/jtex209-both/files/tfm-add.tar.gz
Normal file
Binary file not shown.
1
japanese/jtex209-both/pkg-comment
Normal file
1
japanese/jtex209-both/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Japanese TeX based on LaTeX-209 with both NTT and ASCII
|
14
japanese/jtex209-both/pkg-descr
Normal file
14
japanese/jtex209-both/pkg-descr
Normal file
@ -0,0 +1,14 @@
|
||||
jp-jlatex209-a17-n152 is the last version of NTT and ASCII JTeX based on
|
||||
LaTeX 209.
|
||||
|
||||
Both NTT jtex-1.52 and ASCII jtex-1.7-p1.0.9F are available by this package.
|
||||
Names of commads are shown below:
|
||||
'ajtex' -> ascii ptex
|
||||
'ajlatex' -> ascii platex
|
||||
'njtex' -> ntt jtex
|
||||
'njlatex' -> ntt jlatex
|
||||
You can select which latex to run by 'jlatex' command by using
|
||||
/usr/local/share/tex/linkselect.sh .
|
||||
|
||||
EUC & JIS kanji code is available by default.
|
||||
SJIS & JIS code will be available after recompiling with ports.
|
1003
japanese/jtex209-both/pkg-plist
Normal file
1003
japanese/jtex209-both/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user