aboutsummaryrefslogtreecommitdiffstats
path: root/print/yatex
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>1998-08-14 08:16:07 +0800
committerkuriyama <kuriyama@FreeBSD.org>1998-08-14 08:16:07 +0800
commita0239e5b2eccab0be508adc1ad7e2218afd0973c (patch)
tree642a34fa9bff34da978e932c040665bc2444e358 /print/yatex
parent6d192a7f677501004075b4a8b8405980bd7c7aef (diff)
downloadfreebsd-ports-gnome-a0239e5b2eccab0be508adc1ad7e2218afd0973c.tar.gz
freebsd-ports-gnome-a0239e5b2eccab0be508adc1ad7e2218afd0973c.tar.zst
freebsd-ports-gnome-a0239e5b2eccab0be508adc1ad7e2218afd0973c.zip
Yet Another LaTeX mode on Emacs (including another html-mode)
PR: ports/4412 Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
Diffstat (limited to 'print/yatex')
-rw-r--r--print/yatex/Makefile147
-rw-r--r--print/yatex/distinfo1
-rw-r--r--print/yatex/files/DEINSTALL.tmpl32
-rw-r--r--print/yatex/files/INSTALL.tmpl66
-rw-r--r--print/yatex/pkg-comment1
-rw-r--r--print/yatex/pkg-descr32
6 files changed, 279 insertions, 0 deletions
diff --git a/print/yatex/Makefile b/print/yatex/Makefile
new file mode 100644
index 000000000000..f54ac884010d
--- /dev/null
+++ b/print/yatex/Makefile
@@ -0,0 +1,147 @@
+# New ports collection makefile for: YaTeX
+# Version required: 1.65.6
+# Date created: 18 Feb. 1998
+# Whom: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
+#
+# $Id$
+#
+
+DISTNAME= yatex9805062331
+PKGNAME?= yatex-1.65.6
+CATEGORIES?= print
+MASTER_SITES= http://www.comp.ae.keio.ac.jp/~yuuji/yatex/ \
+ http://www.comp.ae.keio.ac.jp/~yuuji/tmp/
+
+MAINTAINER= taoka@infonets.hiroshima-u.ac.jp
+
+PATCHDIR= ${.CURDIR}/../../print/yatex/patches
+FILESDIR= ${.CURDIR}/../../print/yatex/files
+PKGDIR= ${.CURDIR}/../../print/yatex/pkg
+PLIST= ${.CURDIR}/pkg/PLIST
+WRKSRC= ${WRKDIR}/yatex${VERSION}
+.if defined(XEMACS-MULE)
+BUILD_DEPENDS= xemacs:${PORTSDIR}/editors/xemacs-mule \
+ nkf:${PORTSDIR}/japanese/nkf
+.endif
+
+VERSION= 1.65.6
+TARGETNAME= YaTeX
+DIRSECTION= The Emacs editor and associated tools
+# Note that 'INFODIR' is defined in bsd.info.mk
+.if !defined(XEMACS-MULE)
+INFODIR= ${PREFIX}/info
+.endif
+# The value of ADDSITESTART should follow a format of printf(1)
+ADDSITESTART= (setq load-path (append (list \\n\
+ \\t\\"${ELISPDIR}/yatex\\"\\n\
+ \\t) load-path))\\n
+.if defined(MULE)
+EMACSDIR= ${PREFIX}/lib/mule
+.endif
+.if defined(XEMACS-MULE)
+EMACS= xemacs
+EMACSDIR= ${PREFIX}/lib/xemacs
+#
+INFODIR= ${EMACSDIR}/info
+ADDSITESTART=
+.endif
+.if defined(MULE) || defined(XEMACS-MULE)
+NEW= yatex.new
+HELP= help/YATEXHLP.jp help/YATEXHLP.eng
+DOCSRC= docs/yatexj.tex \
+ docs/yatex.ref \
+ docs/yatexadd.doc docs/yatexgen.doc \
+ docs/qanda
+INFOFILES= yatexj:yatexe
+INFONODES= YaTeX-jp:YaTeX
+INFONODEEXPS= Yet Another tex-mode for Emacs. (Japanese):Yet Another tex-mode for Emacs.
+.endif
+.if !defined(MULE) && !defined(XEMACS-MULE)
+EMACSDIR= ${PREFIX}/share/emacs
+NEW=
+HELP= help/YATEXHLP.eng
+INFOFILES= yatexe
+INFONODES= YaTeX
+INFONODEEXPS= Yet Another tex-mode for Emacs.
+.endif
+DOCSRC+= docs/yatexe.tex \
+ docs/yatexref.eng \
+ docs/qanda.eng
+ELISPDIR= ${EMACSDIR}/site-lisp
+PORTSDOCDIR= ${PREFIX}/share/doc/yatex
+EL_FILES= comment.el yatex.el yatexadd.el yatexgen.el \
+ yatexenv.el yatexlib.el \
+ yatexmth.el yatexhks.el yatexhlp.el yatexprc.el \
+ yatexm-o.el yatexsec.el yatexhie.el yahtml.el \
+ yatex19.el
+
+do-build:
+ for file in user-install INSTALL DEINSTALL; do \
+ ${SED} -e 's,%TARGETNAME%,${TARGETNAME},g' \
+ -e 's,%VERSION%,${VERSION},g' \
+ -e 's,%PREFIX%,${PREFIX},g' \
+ -e 's,%BASENAME%,${BASENAME},g' \
+ -e 's,%CAT%,${CAT},g' \
+ -e 's,%CP%,${CP},g' \
+ -e 's,%ECHO%,${ECHO},g' \
+ -e 's,%GREP%,${GREP},g' \
+ -e 's,%RM%,${RM},g' \
+ -e 's,%SED%,${SED},g' \
+ -e 's,%TOUCH%,${TOUCH},g' \
+ -e 's,%DO_NADA%,${DO_NADA},g' \
+ -e 's,%INFODIR%,${INFODIR},g' \
+ -e 's,%ELISPDIR%,${ELISPDIR},g' \
+ -e 's,%INFOFILES%,${INFOFILES},g' \
+ -e 's,%INFONODES%,${INFONODES},g' \
+ -e 's,%INFONODEEXPS%,${INFONODEEXPS},g' \
+ -e 's,%DIRSECTION%,${DIRSECTION},g' \
+ -e 's,%ADDSITESTART%,${ADDSITESTART},g' \
+ < ${FILESDIR}/$${file}.tmpl > ${FILESDIR}/$${file}; \
+ done
+ ${CP} ${FILESDIR}/INSTALL ${FILESDIR}/DEINSTALL ${PKGDIR}
+# For XEmacs-mule 20.4, yatexj.info (in Japanese) should be remade
+# after Kanji code of yatexj.tex is convert from shift jis (MS-Kanji)
+# to EUC.
+.if defined(XEMACS-MULE)
+ (cd ${WRKSRC}/docs; \
+ ${MV} yatexj.tex yatexj.tex.org; \
+ nkf -e yatexj.tex.org > yatexj.tex; \
+ ${SETENV} LANG=ja_JP.EUC ${EMACS} -no-site-file -no-init-file \
+ -batch yatexj.tex -e texinfo-format-buffer -f save-buffer; \
+ )
+.endif
+
+do-install:
+ (cd ${WRKSRC}; \
+ ${MKDIR} ${ELISPDIR}/yatex; \
+ ${INSTALL_DATA} ${EL_FILES} ${ELISPDIR}/yatex; \
+ ${INSTALL_DATA} ${HELP} ${ELISPDIR}; \
+ ${MKDIR} ${INFODIR}; \
+ for file in `${ECHO} ${INFOFILES} | ${SED} "s,:, ,g"`; do \
+ ${INSTALL_DATA} ${WRKSRC}/docs/$${file} ${INFODIR}; \
+ done; \
+ )
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PORTSDOCDIR}
+ cd ${WRKSRC}; ${INSTALL_DATA} ${NEW} ${DOCSRC} ${PORTSDOCDIR}
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${INSTALL_SCRIPT} ${FILESDIR}/user-install ${PORTSDOCDIR}
+.endif
+ if [ ! -f ${INFODIR}/dir ]; then \
+ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${INFODIR}/dir; \
+ fi
+ @${SETENV} TOUCH=${TOUCH} INFODIR=${INFODIR} \
+ ELISPDIR=${ELISPDIR} DIRSECTION="${DIRSECTION}" \
+ INFOFILES="${INFOFILES}" \
+ ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
+ @${CAT} ${PKGDIR}/MESSAGE
+
+pre-clean:
+ @${RM} -f ${FILESDIR}/user-install \
+ ${FILESDIR}/INSTALL ${FILESDIR}/DEINSTALL \
+ ${PKGDIR}/INSTALL ${PKGDIR}/DEINSTALL
+
+.include <bsd.port.mk>
diff --git a/print/yatex/distinfo b/print/yatex/distinfo
new file mode 100644
index 000000000000..66a3a4afcc86
--- /dev/null
+++ b/print/yatex/distinfo
@@ -0,0 +1 @@
+MD5 (yatex9805062331.tar.gz) = d3043e678e4b919e1f5795b422dac5b9
diff --git a/print/yatex/files/DEINSTALL.tmpl b/print/yatex/files/DEINSTALL.tmpl
new file mode 100644
index 000000000000..f81af13e6413
--- /dev/null
+++ b/print/yatex/files/DEINSTALL.tmpl
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+pkgname=$1
+
+CP=${CP:-%CP%}
+ECHO=${ECHO:-%ECHO%}
+GREP=${GREP:-%GREP%}
+RM=${RM:-%RM%}
+SED=${SED:-%SED%}
+
+infodir=${INFODIR:-%INFODIR%}
+infofiles=${INFOFILES:-%INFOFILES%}
+elispdir=${ELISPDIR:-%ELISPDIR%}
+
+OptionStart=";;; configuration options for ${pkgname}"
+OptionEnd=";;; End of configuration options for ${pkgname}"
+
+if [ "X$2" = X"DEINSTALL" ]; then
+ ${ECHO} "Deleting entry for \"${pkgname}\" from ${infodir}/dir"
+ for file in `echo ${infofiles} | ${SED} "s,:, ,g"`; do
+ install-info --delete ${infodir}/${file} ${infodir}/dir
+ done
+ if [ "`grep \"^${OptionStart}\" ${elispdir}/site-start.el`" ]; then
+ ${ECHO} "Deleting entry for \"${pkgname}\" from ${elispdir}/site-start.el"
+ ${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
+ ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak
+ ${CP} ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
+ ${RM} ${elispdir}/site-start.el.bak
+ fi
+else
+ exit 0
+fi
diff --git a/print/yatex/files/INSTALL.tmpl b/print/yatex/files/INSTALL.tmpl
new file mode 100644
index 000000000000..7ecae01e18fc
--- /dev/null
+++ b/print/yatex/files/INSTALL.tmpl
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+pkgname=$1
+
+BASENAME=${BASENAME:-%BASENAME%}
+CP=${CP:-%CP%}
+ECHO=${ECHO:-%ECHO%}
+GREP=${GREP:-%GREP%}
+SED=${SED:-%SED%}
+TOUCH=${TOUCH:-%TOUCH%}
+DO_NADA=${DO_NADA:-%DO_NADA%}
+
+infodir=${INFODIR:-%INFODIR%}
+infofiles=${INFOFILES:-%INFOFILES%}
+infonodes=${INFONODES:-%INFONODES%}
+infonodeexps=${INFONODEEXPS:-%INFONODEEXPS%}
+elispdir=${ELISPDIR:-%ELISPDIR%}
+dirsection=${DIRSECTION:-%DIRSECTION%}
+
+OptionStart=";;; configuration options for ${pkgname}"
+OptionEnd=";;; End of configuration options for ${pkgname}"
+
+if [ "X$2" = X"POST-INSTALL" ]; then
+ if [ ! -f ${elispdir}/site-start.el ]; then
+ ${TOUCH} ${elispdir}/site-start.el
+ fi
+ count=1
+ # For example, the result of `cut ttt -d : -f 2` is ttt. Why?
+ infofiles=${infofiles}:
+ while ${DO_NADA}; do
+ if [ X`${ECHO} ${infofiles} | cut -d : -f $count` = X ]; then
+ break
+ fi
+ file=`${ECHO} ${infofiles} | cut -d : -f $count`
+ nodename=`${ECHO} ${infonodes} | cut -d : -f $count`
+ nodeexp=`${ECHO} ${infonodeexps} | cut -d : -f $count`
+ if [ ! "`${GREP} \"START-INFO-DIR-ENTRY\" ${infodir}/${file}`" ]; then
+ ${ECHO} "INFO-DIR-SECTION ${dirsection}" \
+ >> ${infodir}/${file}
+ ${ECHO} "START-INFO-DIR-ENTRY" >> ${infodir}/${file}
+ ${ECHO} "* ${nodename}: (`${BASENAME} ${file}`). ${nodeexp}" \
+ >> ${infodir}/${file}
+ ${ECHO} "END-INFO-DIR-ENTRY" >> ${infodir}/${file}
+ fi
+ count=`expr $count + 1`
+ done
+ ${ECHO} "Adding entry for \"${pkgname}\" to ${infodir}/dir"
+ for file in `${ECHO} ${infofiles} | ${SED} "s,:, ,g"`; do
+ install-info ${infodir}/${file} ${infodir}/dir
+ done
+ if [ X'%ADDSITESTART%' != X ]; then
+ if [ "`${GREP} \"^${OptionStart}\" ${elispdir}/site-start.el`" ]; then
+ ${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
+ ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak
+ ${CP} ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
+ fi
+ ${ECHO} "Adding entry for \"${pkgname}\" to ${elispdir}/site-start.el"
+ ${ECHO} "${OptionStart}" >> ${elispdir}/site-start.el
+ /usr/bin/printf "%ADDSITESTART%" | \
+ ${SED} "s/^ //" >> ${elispdir}/site-start.el
+ ${ECHO} "${OptionEnd}" >> ${elispdir}/site-start.el
+ fi
+ exit 0
+else
+ exit 0
+fi
diff --git a/print/yatex/pkg-comment b/print/yatex/pkg-comment
new file mode 100644
index 000000000000..04b958dd25a1
--- /dev/null
+++ b/print/yatex/pkg-comment
@@ -0,0 +1 @@
+Yet Another LaTeX mode on Emacs (including another html-mode)
diff --git a/print/yatex/pkg-descr b/print/yatex/pkg-descr
new file mode 100644
index 000000000000..f1c03d26fe50
--- /dev/null
+++ b/print/yatex/pkg-descr
@@ -0,0 +1,32 @@
+******************************
+** About YaTeX **
+******************************
+YaTeX automates typesetting and previewing of LaTeX and enables
+completing input of LaTeX mark-up command such as `\begin{}'..`\end{}'.
+
+YaTeX also supports Demacs which runs on MS-DOS(386), Mule (Multi
+Language Enhancement to GNU Emacs), and latex on DOS.
+
+You need to adjust your init file, ~/.emacs. This port has a setup
+script 'user-install'. Please execute it as the following:
+
+sh /usr/local/share/doc/yatex/user-install
+
+and check ~/.emacs. To get more setup information, see the info file
+of YaTeX,
+
+Installation::
+Customizations => Lisp variables::
+
+******************************
+** About yahtml **
+******************************
+Yahtml is a brand new package for writing HTML files with Emacs. It is
+very far from html-mode, html-helper-mode or other existing HTML modes.
+It is a good successor of YaTeX in HTML world.
+
+To install yahtml, see the guidance in the beginning of
+site-lisp/yatex/yahtml.el.
+
+- S. Taoka
+taoka@infonets.hiroshima-u.ac.jp