--- ptex-jtex-1.7+1.orig/debian/20ptexjtex +++ ptex-jtex-1.7+1/debian/20ptexjtex @@ -0,0 +1,2 @@ +TEXINPUTS.ajlatex = .;$TEXMF/ajtex//;$TEXMF/tex/{latex209,generic,}// +TEXINPUTS.ajtex = .;$TEXMF/ajtex//;$TEXMF/tex/{latex209,generic,}// --- ptex-jtex-1.7+1.orig/debian/NEWS.Debian +++ ptex-jtex-1.7+1/debian/NEWS.Debian @@ -0,0 +1,15 @@ +ptex-jtex (1.7+1-12) unstable; urgency=low + + * Transition to TL2012 environment. + * You need to run "ajlatex --kanji=euc foo.tex" and file foo.tex + should be in EUC-JP encoding. + I guess (not yet tested) we can convert a system into UTF-8 + encoding but a main aime of ptex-jtex is to provide a TeX system + with which one can compile very old documents so I don't do it + at the moment. + * Fixed maintainer's scripts. (Closes: #669336) + * Refined rules (added build-indep etc.) and control (added + ${misc:Depends} and removed obsolete ptex-bin) and upgraded compat + to 5, all for cleaning up lintian messages. + + -- Atsuhito KOHDA Fri, 20 Apr 2012 08:48:21 +0900 --- ptex-jtex-1.7+1.orig/debian/README.Debian +++ ptex-jtex-1.7+1/debian/README.Debian @@ -0,0 +1,33 @@ +ptex-jtex for Debian +---------------------- + +ASCII jTeX is Japanese TeX, designed by ASCII corporation. + +[Note] Since 1.7+1-12, you need to add option "-kanji=euc" to ajtex/ajlatex, +like "ajlatex -kanji=euc foo.tex" under the condition that foo.tex is of +EUC encoding. If foo.tex is of JIS encoding, you could run ajtex/ajlatex +like "ajlatex -kanji=jis foo.tex". Other encodings would not work. + +In this package, 'jtex' and 'jlatex' are renamed as 'ajtex' and 'ajlatex', +respectively because the present ASCII japanese TeX uses 'ptex' and 'platex' +generally and also because 'jtex' and 'jlatex' are commonly used for NTT +japanese TeX. + +And these programs are compiled with a recent ptex, which is included in +texlive-binaries package. Note ajlatex is of latex209 version. + +Technical Issue: +- forDebian.patch to remove unnecessary temporary files (*.sjis). + +- instman.sh do not use dh_installmanpages, this will install unnecessary + man pages!!! (obsolete; dh_installman worked fine now!) + +TODO: +- place plain and latex macros in separate directories? +- amsajtex is necessary? + +Obsolete: these are not supported nor necessary now. +If ajtex/ajlatex would not work, please try "ptexjtexconfig addpath". +Before removing this package, you should do "ptexjtexconfig rempath". + + -- Atsuhito KOHDA , Tue, 7 Nov 2000 15:07:50 +0900 --- ptex-jtex-1.7+1.orig/debian/ajlatex.1 +++ ptex-jtex-1.7+1/debian/ajlatex.1 @@ -0,0 +1,48 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH AJLATEX 1 "Nov. 3, 2000" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +ajlatex \- latex command with japanese support of ASCII version +.SH SYNOPSIS +.B ajlatex +.RI [ options ] "TeX file" +.SH DESCRIPTION +This manual page documents briefly the +.B ajlatex +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBajlatex\fP is latex command (of 209 version) that supports japanese. +.SH OPTIONS +ajlatex admits almost same options as those of latex so, for a complete +description, please see manual page of latex. +.TP +.B \-help +Show summary of options. +.TP +.B \-version +Show version of program. +.SH SEE ALSO +.BR latex (1), +.br +.SH AUTHOR +This manual page was written by Atsuhito KOHDA , +for the Debian GNU/Linux system (but may be used by others). --- ptex-jtex-1.7+1.orig/debian/ajlatex.ini +++ ptex-jtex-1.7+1/debian/ajlatex.ini @@ -0,0 +1,3 @@ +\input jlplain +\dump +\endinput --- ptex-jtex-1.7+1.orig/debian/ajtex.1 +++ ptex-jtex-1.7+1/debian/ajtex.1 @@ -0,0 +1,48 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH AJTEX 1 "Nov. 3, 2000" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +ajtex \- tex command with japanese support of ASCII version +.SH SYNOPSIS +.B ajtex +.RI [ options ] "TeX file" +.SH DESCRIPTION +This manual page documents briefly the +.B ajtex +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBajtex\fP is tex command that supports japanese. +.SH OPTIONS +ajtex admits almost same options as those of tex so, for a complete +description, please see manual page of tex. +.TP +.B \-help +Show summary of options. +.TP +.B \-version +Show version of program. +.SH SEE ALSO +.BR tex (1), +.br +.SH AUTHOR +This manual page was written by Atsuhito KOHDA , +for the Debian GNU/Linux system (but may be used by others). --- ptex-jtex-1.7+1.orig/debian/ajtex.ini +++ ptex-jtex-1.7+1/debian/ajtex.ini @@ -0,0 +1,3 @@ +\input jplain +\dump +\endinput --- ptex-jtex-1.7+1.orig/debian/changelog +++ ptex-jtex-1.7+1/debian/changelog @@ -0,0 +1,199 @@ +ptex-jtex (1.7+1-15) unstable; urgency=medium + + * Updated to conform with texlive 2014 packages. + * Updated README.Debian as ajtex/ajlatex is not common anymore. + + -- Atsuhito KOHDA Fri, 30 May 2014 14:06:34 +0900 + +ptex-jtex (1.7+1-14) unstable; urgency=low + + * Fixed Description a bit. Thanks to Pascal De Vuyst + . (Closes: #707942) + + -- Atsuhito Kohda Thu, 06 Jun 2013 07:58:24 +0900 + +ptex-jtex (1.7+1-13) unstable; urgency=low + + * Updated Description [debian/control] and installed NEWS.Debian because + because basic usage changed substantially. + * Also updated ptexjtexconfig and 20ptexjtex for TEXMF directory structures + were changed a bit with TL2012 packages. + * Refined maintainer scripts mainly to erase lintian warnings. + Removed unnecessary prerm and fixed postrm; + - updated /var/lib/texmf/web2c/ to /var/lib/texmf/web2c/ptex/ + - separated "purge" from "upgrade" etc. and added rmdir in order not + to leave unowned directories. (Closes: #670245) + + -- Atsuhito KOHDA Mon, 23 Apr 2012 15:10:42 +0900 + +ptex-jtex (1.7+1-12) unstable; urgency=low + + * Transition to TL2012 environment. + * You need to run "ajlatex -kanji=euc foo.tex" and file foo.tex + should be in EUC-JP encoding. + I guess (not yet tested) we can convert a system into UTF-8 + encoding but a main aime of ptex-jtex is to provide a TeX system + with which one can compile very old documents so I don't do it + at the moment. + * Fixed maintainer's scripts. (Closes: #669336) + * Refined rules (added build-indep etc.) and control (added + ${misc:Depends} and removed obsolete ptex-bin) and upgraded compat + to 5, all for cleaning up lintian messages. + + -- Atsuhito KOHDA Fri, 20 Apr 2012 08:48:21 +0900 + +ptex-jtex (1.7+1-11) unstable; urgency=low + + * TeX Live support should be in unstable now. Dropped dependency on + tetex-bin. + + -- Atsuhito KOHDA Wed, 18 Apr 2007 07:50:38 +0900 + +ptex-jtex (1.7+1-10) experimental; urgency=low + + * Support TeXLive. + * Changed fmtutil to fmtutil-sys in ptexjtexconfig + * Made lintian clean; + - Removed japanese characters in manual pages. + - Used compat to set Compatibility level. + - Updated Standard-Version to 3.7.2 + - Fixed debhelper's Build-Dependency from Build-Depends-Indep: to + Build-Depends: + - Fixed Closing old Bugs of JP. + + -- Atsuhito KOHDA Mon, 26 Mar 2007 11:59:51 +0900 + +ptex-jtex (1.7+1-9) unstable; urgency=low + + * Fixed rules; every debhelper commands were now under "binary-indep" + + -- Atsuhito KOHDA Fri, 27 Dec 2002 11:41:25 +0900 + +ptex-jtex (1.7+1-8) unstable; urgency=low + + * Renamed 20ptexjtex to 20ptexjtex.cnf corresponding to coming new + update-texmf. + + -- Atsuhito KOHDA Sun, 8 Dec 2002 20:08:15 +0900 + +ptex-jtex (1.7+1-7) unstable; urgency=low + + * Fixed postinst/postrm to handle 20ptexjtex more appropriately. + * Updated ptexjtexconfig.1 + + -- Atsuhito KOHDA Fri, 12 Apr 2002 10:19:43 +0900 + +ptex-jtex (1.7+1-6) unstable; urgency=low + + * Support update-texmf now. You don't need to modify texmf.cnf any more. + + -- Atsuhito KOHDA Tue, 26 Mar 2002 00:37:32 +0900 + +ptex-jtex (1.7+1-5.2) unstable; urgency=low + + * Stopped to modify texmf.cnf at installation any more. You should + run "ptexjtexconfig addpath" manually. + + -- Atsuhito KOHDA Tue, 19 Feb 2002 12:49:43 +0900 + +ptex-jtex (1.7+1-5.1) unstable; urgency=low + + * Updated Standards-Version: 3.5.1, especially refined rules a bit. + * Changed Build-Depends to Build-Depends-Indep. + * Now /etc/texmf/fmtutil-ajtex.cnf is a conffile (fixed lintian error). + * Removed add-log-mailing-address from this file (fixed lintian error). + + -- Atsuhito KOHDA Tue, 16 Oct 2001 12:00:24 +0900 + +ptex-jtex (1.7+1-4) unstable; urgency=low + + * Initial Release as an Official Debian package. (closes: #99114) + + -- Atsuhito KOHDA Thu, 7 Jun 2001 08:22:27 +0900 + +ptex-jtex (1.7+1-3) unstable; urgency=low + + * New Maintainer. + * Modified directory structure according to pTeX 2.1.9. + * Adopted fmtutil. + * Changed path separator from ":" to ";" in texmf.cnf file. + * Added missing manual pages. + + -- Atsuhito KOHDA Tue, 7 Nov 2000 15:07:50 +0900 + +ptex-jtex (1.7+1-2) frozen-jp unstable-jp; urgency=low + + * I forgot "copyright.ja" in 1.7+1-1 binary package. Added it. + closes: JP bug 1127 + * Use debhelper. + * Added ptexjtexconfig. + * Added prerm and postrm. + * Renamed "debianpatch" to "forDebian.patch". + + -- Hiroshi KISE Fri, 14 Jan 2000 23:39:05 +0900 + +ptex-jtex (1.7+1-1) unstable-jp; urgency=low + + * It is NOT new upstream version. I changed upstream version because + orig.tar.gz differ from <=1.7-6's. + + -- Hiroshi KISE Wed, 5 Jan 2000 23:30:18 +0900 + +ptex-jtex (1.7-7) unstable-jp; urgency=low + + * Remake package buiding system. + * Added English version of copyright. Thanks to Mr.Hatta. + * Deleted "Recommends: platex-base" in control. + + -- Hiroshi KISE Tue, 4 Jan 2000 17:16:12 +0900 + +ptex-jtex (1.7-6) unstable-jp; urgency=low + + * Moved format files to /var/lib/texmf/web2c because /usr/lib/texmf/web2c + is symlink in tetex-bin. Closes: JP bug 1080) + * Changed postinst: Check ajtex.fmt and ajlatex.fmt. + + -- Hiroshi KISE Thu, 23 Dec 1999 18:28:28 +0900 + +ptex-jtex (1.7-5) unstable-jp; urgency=low + + * Moved to /usr/share/texmf. (Fixed Bug#JP/854) + * Still build packages on Debian 2.1. + + -- Hiroshi KISE Mon, 19 Apr 1999 18:27:40 +0900 + +ptex-jtex (1.7-4) frozen-jp unstable-jp; urgency=low + + * Changed maintainer e-mail address. + + -- Hiroshi KISE Fri, 26 Feb 1999 21:10:51 +0900 + +ptex-jtex (1.7-3) frozen-jp unstable-jp; urgency=low + + * Changed dependency. + * Added manpage that linked to undocumented(7). (Fixed Bug #JP/356) + * Fixed "add-log-mailing-address" to new maintainer's in the changelog. + * Fixed maintainer's address in the copyright. + * Added `frozen-jp unstable-jp' to the changelog. + * Moved the ptex-bin package to the non-free section. + + -- Hiroshi KISE Mon, 29 Jun 1998 14:21:01 +0900 + +ptex-jtex (1.7-2) unstable; urgency=low + + * Move /usr/lib/texmf/ini/{ajtex.fmt,ajlatex.fmt} to /usr/lib/texmf/web2c + (Fixed Bug #JP/188) + * Change Architecture: to all (Fixed Bug #JP/279) + * New maintainer. + + -- Hiroshi KISE Tue, 9 Jun 1998 21:36:50 +0900 + +ptex-jtex (1.7-1) unstable; urgency=low + + * Initial Release. + + -- Atsushi KAMOSHIDA Fri, 26 Sep 1997 01:48:33 +0900 + +Local variables: +mode: debian-changelog +End: --- ptex-jtex-1.7+1.orig/debian/compat +++ ptex-jtex-1.7+1/debian/compat @@ -0,0 +1 @@ +5 --- ptex-jtex-1.7+1.orig/debian/control +++ ptex-jtex-1.7+1/debian/control @@ -0,0 +1,19 @@ +Source: ptex-jtex +Section: non-free/tex +Priority: optional +Maintainer: Atsuhito KOHDA +Build-Depends: debhelper (>= 3.0.0) +Standards-Version: 3.7.2 + +Package: ptex-jtex +Architecture: all +Depends: ${misc:Depends}, texlive-binaries (>= 2014.20140528.34243-1), texlive-lang-japanese (>= 2014.20140528-1) +Description: ASCII jTeX with pTeX + ASCII jTeX is Japanese TeX, designed by ASCII corporation. + . + In this version, 'jtex' and 'jlatex' are renamed as 'ajtex' and 'ajlatex', + respectively. And these programs are compiled with a recent ptex, which is + included in texlive-binaries package. Note ajlatex is of latex209 version. + . + Note ptex in texlive-binaries needs to use option "--kanji=euc" for a file + in EUC-JP encoding, so please add "--kanji=euc" for ajtex/ajlatex commands. --- ptex-jtex-1.7+1.orig/debian/copyright +++ ptex-jtex-1.7+1/debian/copyright @@ -0,0 +1,39 @@ +This package was debianized by Atsuhito KOHDA on +Tue, 7 Nov 2000 15:07:50 +0900. + +It was downloaded from +http://ring.ip-kyoto.ad.jp/pub/FreeBSD/ports/distfiles/jtex1.7.tar.gz + +Copyright: + +LEGAL NOTICE + +Note: the official copyright notice is written in Japanese and can be + found in the file called "copyright.ja". + The governing language of this notice shall be Japanese, and + any translation into any other language shall be solely for + the convenience. + +0. In this notice, the "Software" represents a part of the Japanese TeX + distribution that is concerned with Japanese support developed + by ASCII Co. + +1. ASCII Co. retains copyright of the Japanese translation of the Software. + +2. Use of the Software in any form is permitted provided that it is not + for profit-making (e.g. collecting tolls for using the Software). + ASCII Co. shall not be liable for any damages caused by using the + Software, whether direct or indirect, incidental or consequential, + under any circumstances whatsoever. + +3. Copy and redistribution of the Japanese translation of the Software + is permitted provided that it is not for commercial purpose. + +4. Modification of a part of the Japanese translation of the Software + is permitted provided that you notify ASCII Co. of your modification. + You shall not release your modification to public without prior + approval of ASCII Co. + Redistribution of the modified version of the Software is permitted + provided that the receiver can easily restore it to the original. + +Translation by Masayuki Hatta --- ptex-jtex-1.7+1.orig/debian/copyright.ja +++ ptex-jtex-1.7+1/debian/copyright.ja @@ -0,0 +1,21 @@ +(This is the part of README.KANJI) + +この日本語 TeX は、次の事項を確認のうえ利用して下さい。 + +1. 日本語 TeX の、日本語化部分に関しては株式会社アスキーに著作権があ + ります。 + +2. その使用が直接的な営利目的(例えば、利用者にプログラムの使用料金を + とる等)でない限り、どのような方法、目的で使用されてもかまいません。 + ただし、それにより生じた問題に関しては一切、株式会社アスキーでは責 + 任を持ちません。 + +3. 他者へのコピーは、その行為が営利目的でない場合に限り自由に行って結構 + です。 + +4. プログラム(日本語化に関係する部分)の改変については自由に行ってか + まいません。ただし第 3項については、改変前のものまたは改変前の状態 + に簡単に戻せる形で行って下さい。 + + 改変内容については株式会社アスキーへの通知義務があるものとし、その + 公開については事前の承諾を必要とします。 --- ptex-jtex-1.7+1.orig/debian/dirs +++ ptex-jtex-1.7+1/debian/dirs @@ -0,0 +1,6 @@ +usr/share/texmf/ajtex/config +usr/bin +usr/sbin +usr/share/man/man1 +etc/texmf +usr/share/ptex-jtex --- ptex-jtex-1.7+1.orig/debian/fmtutil-ajtex.cnf +++ ptex-jtex-1.7+1/debian/fmtutil-ajtex.cnf @@ -0,0 +1,32 @@ +# Thomas Esser, Copyright 1998, 1999. Public domain. +# fmtutil.cnf: configuration file for fmtutil. + +# Customize this file to your needs, e.g. +# - remove or uncomment formats that you don't need +# - add your own formats +# - change default engine / flags for standard formats + +# Some notes: +# 1) tex and amstex just load hyphen.tex. No customization. +# You can have you own customized (via babel's hyphen.cfg) +# formats on top of plain by using "bplain.tex" instead of +# plain.tex (see e.g. bplain.ini file for bplain format). +# +# 2) etex loads language.def, not language.dat. +# +# 3) The symbolic link to the right engines (e.g. bplain -> tex) +# will be generated by the "texlinks" script. So, if you call +# fmtutil "by hand" and not via texconfig, please also call +# texlinks afterwards. + +# The format of the table is: + +# format engine pattern-file arguments + +# The last part of "arguments" must be the name of the file to run +# initex (or another "ini"-engine) on. + +# Standard formats (plain, latex) with all engines: + +ajtex ptex - --kanji=euc ajtex.ini +ajlatex ptex - --kanji=euc ajlatex.ini --- ptex-jtex-1.7+1.orig/debian/forDebian.patch +++ ptex-jtex-1.7+1/debian/forDebian.patch @@ -0,0 +1,10 @@ +--- EUCsetup.orig Tue Feb 26 14:43:42 1991 ++++ EUCsetup Tue Jan 4 19:04:07 2000 +@@ -29,6 +29,7 @@ + mv $i $j + chmod 440 $j + kanji/sjistoeuc < $j > $i ++ rm -f $j + done + + for i in $PATCHY; do --- ptex-jtex-1.7+1.orig/debian/instman.sh +++ ptex-jtex-1.7+1/debian/instman.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +mandir=debian/ptex-jtex/usr/share/man/man1 + +for m in ajtex.1 ajlatex.1 ptexjtexconfig.1 +do +install -m 644 debian/$m $mandir +done --- ptex-jtex-1.7+1.orig/debian/postinst +++ ptex-jtex-1.7+1/debian/postinst @@ -0,0 +1,45 @@ +#! /bin/sh +# postinst script for ptex-jtex +# +# see: dh_installdeb(1) + +set -e + +TEXMF=/usr/share/texmf +PTEXJTEXCONFIG=/usr/sbin/ptexjtexconfig +UPDTXMF=/usr/sbin/update-texmf +TXMFD=/etc/texmf/texmf.d +CNF=/usr/share/ptex-jtex + +case "$1" in + configure) + if [ ! -f ${TXMFD}/20ptexjtex.cnf ] ; then + cp ${CNF}/20ptexjtex.cnf ${TXMFD} + fi + if [ -x ${UPDTXMF} ] ; then ${UPDTXMF} -v ; fi + if [ -x /usr/bin/mktexlsr ] ; then + mktexlsr $TEXMF + fi + TEMPFILE=`tempfile -p ajtx` + echo "Running iniptex. This may take some time. ..." + ${PTEXJTEXCONFIG} formats > ${TEMPFILE} + echo "Output of iniptex is in ${TEMPFILE}" + echo + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- ptex-jtex-1.7+1.orig/debian/postrm +++ ptex-jtex-1.7+1/debian/postrm @@ -0,0 +1,43 @@ +#! /bin/sh +# postrm script for ptex-jtex +# +# see: dh_installdeb(1) + +set -e + +TEXMF=/usr/share/texmf +TXMFD=/etc/texmf/texmf.d +UPDTXMF=/usr/sbin/update-texmf +CNFF=20ptexjtex + +case "$1" in + remove) + mv -f ${TXMFD}/20ptexjtex.cnf ${TXMFD}/20ptexjtex.bak + if [ -x ${UPDTXMF} ] ; then ${UPDTXMF} -v ; fi + rm -f /var/lib/texmf/web2c/ptex/aj*tex.fmt + rm -f /var/lib/texmf/web2c/ptex/aj*tex.log + if [ -x /usr/bin/mktexlsr ] ; then + mktexlsr $TEXMF + fi + ;; + + purge) + rm -f ${TXMFD}/${CNFF}.cnf ${TXMFD}/${CNFF}.bak ${TXMFD}/${CNFF} + rmdir --ignore-fail-on-non-empty ${TXMFD} + rmdir --ignore-fail-on-non-empty /etc/texmf + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + --- ptex-jtex-1.7+1.orig/debian/preinst +++ ptex-jtex-1.7+1/debian/preinst @@ -0,0 +1,41 @@ +#! /bin/sh +# preinst script for ptex-jtex +# +# see: dh_installdeb(1) + +set -e + +CNFF=/etc/texmf/texmf.d/20ptexjtex + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' + +case "$1" in + install|upgrade) + if [ ! -f ${CNFF}.cnf ]; then + if [ -f ${CNFF} ]; then + mv ${CNFF} ${CNFF}.cnf + elif [ -f ${CNFF}.bak ]; then + mv ${CNFF}.bak ${CNFF}.cnf + fi + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- ptex-jtex-1.7+1.orig/debian/ptexjtexconfig +++ ptex-jtex-1.7+1/debian/ptexjtexconfig @@ -0,0 +1,49 @@ +#!/bin/sh + +TEXMF=/usr/share/texmf +ATEXMF=/usr/share/texmf +VTM=/var/lib/texmf +formats=$VTM/web2c +#append_db=$TEXMF/web2c/mktexupd +texmfcnf=/etc/texmf/texmf.cnf +ajtexpath='TEXINPUTS.ajtex = .;$ATEXMF/ajtex//;$TEXMF/tex/{latex209,generic,}//' +ajlatexpath='TEXINPUTS.ajlatex = .;$ATEXMF/ajtex//;$TEXMF/tex/{latex209,generic,}//' + +makeformat() +{ + FMT=$1 + if [ -x /usr/bin/ptex ]; then + TEXINPUTS="$ATEXMF/ajtex//;$TEXMF/tex/{latex209,generic,}//" fmtutil-sys --cnffile \ + /etc/texmf/fmtutil-ajtex.cnf --byfmt $FMT + else + echo "ptex command does NOT exist!!!" + fi +} + +init_ajtex_fmt() { + test -f $ATEXMF/ajtex/config/ajtex.ini && makeformat ajtex +} + +init_ajlatex_fmt() { + test -f $ATEXMF/ajtex/config/ajlatex.ini && makeformat ajlatex +} + +init_tex_formats() { + init_ajtex_fmt + init_ajlatex_fmt +} + +case $1 in +init|formats) + init_tex_formats ; + ;; +ajtex) + init_ajtex_fmt ; + ;; +ajlatex) + init_ajlatex_fmt ; + ;; +*) echo "Usage $0 [ formats | ajtex | ajlatex ]" ; + exit 1 +esac + --- ptex-jtex-1.7+1.orig/debian/ptexjtexconfig.1 +++ ptex-jtex-1.7+1/debian/ptexjtexconfig.1 @@ -0,0 +1,46 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PTEXJTEXCONFIG 1 "Nov. 3, 2000" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +ptexjtexconfig \- shell script to generate formats files for ajtex/ajlatex +.SH SYNOPSIS +.B ptexjtexconfig +.RI "cmd" +.SH DESCRIPTION +This manual page documents briefly the +.B ptexjtexconfig +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBptexjtexconfig\fP is a shell script which generates formats files for +ajtex/ajlatex. +.SH COMMANDS +This program is not meant for users to run but is usually called in +package scripts like postinst. It takes cmd like 'formats', 'ajtex' +or 'ajlatex'. +For a complete description, please read the shell script itself. +.TP +.B \-h, \-\-help +Show summary of options. +.br +.SH AUTHOR +This manual page was written by Atsuhito KOHDA , +for the Debian GNU/Linux system (but may be used by others). --- ptex-jtex-1.7+1.orig/debian/rules +++ ptex-jtex-1.7+1/debian/rules @@ -0,0 +1,107 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +#export DH_COMPAT=3 + +PACK=ptex-jtex +JTEX=jtex1.7.tar.gz +SRCDIR=debian/src + +#TEXOPT=TEXINPUTS=$(CURDIR)/$(SRCDIR)/ajtex// +instdir=$(CURDIR)/debian/$(PACK)/usr/share/texmf + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + +build: build-indep +build-arch: +build-indep: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. +# $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. +# -$(MAKE) clean + rm -rf $(SRCDIR) + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/tmp. +# $(MAKE) install DESTDIR=`pwd`/debian/tmp + mkdir -p $(SRCDIR) + tar zxf $(JTEX) -C $(SRCDIR) + (cd $(SRCDIR) && \ + patch -p0 < $(CURDIR)/debian/forDebian.patch && ./EUCsetup) + + mkdir $(SRCDIR)/ajtex + (cd $(SRCDIR) && cp macros/* jmacros/* ajtex/) + + cp -a $(SRCDIR)/ajtex $(instdir) + install -m 644 debian/aj*tex.ini $(instdir)/ajtex/config + (cd debian/$(PACK)/usr/bin && ln -s ptex ajtex && \ + ln -s ptex ajlatex ) + install -m 755 debian/ptexjtexconfig debian/$(PACK)/usr/sbin/ + install -m 644 debian/fmtutil-ajtex.cnf debian/$(PACK)/etc/texmf + install -m 644 debian/20ptexjtex debian/$(PACK)/usr/share/ptex-jtex/20ptexjtex.cnf + +# Build architecture-independent files here. +binary-indep: build install +# dh_testversion + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs debian/NEWS.Debian +# dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit +# dh_installcron + dh_installman debian/ajtex.1 debian/ajlatex.1 debian/ptexjtexconfig.1 +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here. +# dh_suidregister +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do here. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure