1998-08-14 00:16:07 +00:00
|
|
|
# New ports collection makefile for: YaTeX
|
1998-11-20 18:19:10 +00:00
|
|
|
# Date created: 98/11/17
|
1999-05-01 04:03:48 +00:00
|
|
|
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
|
1998-08-14 00:16:07 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1998-08-14 00:16:07 +00:00
|
|
|
#
|
|
|
|
|
2000-04-13 11:22:38 +00:00
|
|
|
PORTNAME= yatex
|
|
|
|
PORTVERSION= ${VERSION}
|
1998-11-15 12:21:56 +00:00
|
|
|
CATEGORIES?= print elisp
|
1999-09-27 13:48:10 +00:00
|
|
|
MASTER_SITES= http://www.yatex.org/
|
2000-04-13 11:22:38 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
1998-08-14 00:16:07 +00:00
|
|
|
|
1999-05-01 04:03:48 +00:00
|
|
|
MAINTAINER= taoka@FreeBSD.org
|
1998-08-14 00:16:07 +00:00
|
|
|
|
1998-12-13 08:47:43 +00:00
|
|
|
PKGINSTALL= ${WRKDIR}/INSTALL
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/DEINSTALL
|
1999-03-17 06:57:38 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/MESSAGE
|
1999-09-27 13:48:10 +00:00
|
|
|
VERSION= 1.67
|
1998-08-14 00:16:07 +00:00
|
|
|
TARGETNAME= YaTeX
|
|
|
|
DIRSECTION= The Emacs editor and associated tools
|
2000-09-18 02:05:45 +00:00
|
|
|
EMACS_PORT_NAME?=emacs20
|
|
|
|
.if (${EMACS_PORT_NAME} == xemacs21-mule)
|
|
|
|
BUILD_DEPENDS= xemacs:${PORTSDIR}/japanese/xemacs21-canna \
|
2000-11-02 14:46:14 +00:00
|
|
|
${LOCALBASE}/${EMACS_PACKAGESDIR}/../xemacs-packages/lisp/texinfo/texinfmt.el:${PORTSDIR}/editors/xemacs-packages \
|
2000-09-18 02:05:45 +00:00
|
|
|
nkf:${PORTSDIR}/japanese/nkf
|
|
|
|
.endif
|
1999-03-17 06:57:38 +00:00
|
|
|
|
2000-09-18 02:05:45 +00:00
|
|
|
EMACS_PACKAGESDIR=${EMACS_LIBDIR}/site-packages
|
1998-08-14 00:16:07 +00:00
|
|
|
# Note that 'INFODIR' is defined in bsd.info.mk
|
2000-09-18 02:05:45 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == xemacs21)
|
|
|
|
INFODIR= ${PREFIX}/${EMACS_PACKAGESDIR}/info
|
|
|
|
ELISPDIR= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp
|
|
|
|
HELPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
2000-10-08 04:00:10 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.xemacs
|
1999-09-27 13:48:10 +00:00
|
|
|
MANIFEST= MANIFEST.yatex
|
2000-09-18 02:05:45 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == xemacs21-mule)
|
|
|
|
INFODIR= ${PREFIX}/${EMACS_PACKAGESDIR}/info
|
|
|
|
ELISPDIR= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp
|
|
|
|
HELPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
2000-10-08 04:00:10 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.xemacs-mule
|
1999-09-27 13:48:10 +00:00
|
|
|
MANIFEST= MANIFEST.yatex
|
2000-09-18 02:05:45 +00:00
|
|
|
.elif (${EMACS_PORT_NAME} == mule)
|
1999-03-17 06:57:38 +00:00
|
|
|
INFODIR= ${PREFIX}/info
|
2000-10-08 04:00:10 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.mule
|
2000-09-18 02:05:45 +00:00
|
|
|
ELISPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
|
|
|
HELPDIR= ${ELISPDIR}
|
1999-03-17 06:57:38 +00:00
|
|
|
.else
|
|
|
|
INFODIR= ${PREFIX}/info
|
2000-10-08 04:00:10 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.emacs
|
2000-09-18 02:05:45 +00:00
|
|
|
ELISPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
|
|
|
HELPDIR= ${ELISPDIR}
|
1998-08-14 00:16:07 +00:00
|
|
|
.endif
|
2000-09-18 02:05:45 +00:00
|
|
|
PORTSDOCDIR= ${PREFIX}/share/doc/yatex
|
|
|
|
.if (${EMACS_PORT_NAME} == xemacs21)
|
1999-03-17 06:57:38 +00:00
|
|
|
NEW=
|
|
|
|
HELP= help/YATEXHLP.eng
|
|
|
|
INFOFILES= yatexe
|
|
|
|
INFONODES= YaTeX
|
|
|
|
INFONODEEXPS= Yet Another tex-mode for Emacs.
|
|
|
|
.else
|
1998-08-14 00:16:07 +00:00
|
|
|
NEW= yatex.new
|
|
|
|
HELP= help/YATEXHLP.jp help/YATEXHLP.eng
|
|
|
|
DOCSRC= docs/yatexj.tex \
|
|
|
|
docs/yatex.ref \
|
1999-09-27 13:48:10 +00:00
|
|
|
docs/yahtmlj.tex docs/htmlqa \
|
1998-08-14 00:16:07 +00:00
|
|
|
docs/yatexadd.doc docs/yatexgen.doc \
|
|
|
|
docs/qanda
|
1999-09-27 13:48:10 +00:00
|
|
|
INFOFILES= yatexj:yatexe:yahtmlj
|
|
|
|
INFONODES= YaTeX-jp:YaTeX:yahtml-jp
|
|
|
|
INFONODEEXPS= Yet Another tex-mode for Emacs. (Japanese):Yet Another tex-mode for Emacs.:Yet Another HTML mode. (Japanese)
|
1998-08-14 00:16:07 +00:00
|
|
|
.endif
|
|
|
|
DOCSRC+= docs/yatexe.tex \
|
|
|
|
docs/yatexref.eng \
|
|
|
|
docs/qanda.eng
|
|
|
|
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:
|
1999-03-17 06:57:38 +00:00
|
|
|
for file in yatex-startup.el INSTALL DEINSTALL MESSAGE; 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' \
|
2000-09-18 02:05:45 +00:00
|
|
|
-e 's,%%EMACS_NAME%%,${EMACS_NAME},g' \
|
1998-12-13 08:47:43 +00:00
|
|
|
< ${FILESDIR}/$${file}.tmpl > ${WRKDIR}/$${file}; \
|
1998-08-14 00:16:07 +00:00
|
|
|
done
|
|
|
|
# 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.
|
2000-09-18 02:05:45 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == xemacs21-mule)
|
1998-08-14 00:16:07 +00:00
|
|
|
(cd ${WRKSRC}/docs; \
|
|
|
|
${MV} yatexj.tex yatexj.tex.org; \
|
|
|
|
nkf -e yatexj.tex.org > yatexj.tex; \
|
2000-09-18 02:05:45 +00:00
|
|
|
${SETENV} LANG=ja_JP.EUC ${EMACS_CMD} -no-site-file -no-init-file \
|
1999-09-27 13:48:10 +00:00
|
|
|
-batch -l texinfmt -f batch-texinfo-format yatexj.tex; \
|
1998-08-14 00:16:07 +00:00
|
|
|
)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
1999-09-29 07:31:01 +00:00
|
|
|
cd ${WRKSRC}; \
|
1998-08-14 00:16:07 +00:00
|
|
|
${MKDIR} ${ELISPDIR}/yatex; \
|
1999-09-27 13:48:10 +00:00
|
|
|
${MKDIR} ${HELPDIR} ${INFODIR}; \
|
1998-08-14 00:16:07 +00:00
|
|
|
${INSTALL_DATA} ${EL_FILES} ${ELISPDIR}/yatex; \
|
1999-09-27 13:48:10 +00:00
|
|
|
${INSTALL_DATA} ${HELP} ${HELPDIR}; \
|
1999-09-29 07:31:01 +00:00
|
|
|
${MKDIR} ${INFODIR}
|
2000-09-18 02:05:45 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == xemacs21) || (${EMACS_PORT_NAME} == xemacs21-mule)
|
1999-09-29 07:31:01 +00:00
|
|
|
cd ${WRKSRC}; \
|
1999-09-27 13:48:10 +00:00
|
|
|
for file in `${ECHO} ${INFOFILES} | ${SED} "s,:, ,g"`; do \
|
1999-09-30 07:02:27 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/$${file} ${INFODIR}/$${file}.info; \
|
1999-09-29 07:31:01 +00:00
|
|
|
done
|
1999-09-27 13:48:10 +00:00
|
|
|
.else
|
1999-09-29 07:31:01 +00:00
|
|
|
cd ${WRKSRC}; \
|
1998-08-14 00:16:07 +00:00
|
|
|
for file in `${ECHO} ${INFOFILES} | ${SED} "s,:, ,g"`; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/$${file} ${INFODIR}; \
|
1999-09-29 07:31:01 +00:00
|
|
|
done
|
1999-09-27 13:48:10 +00:00
|
|
|
.endif
|
1998-08-14 00:16:07 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PORTSDOCDIR}
|
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} ${NEW} ${DOCSRC} ${PORTSDOCDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${SETENV} TOUCH=${TOUCH} INFODIR=${INFODIR} \
|
|
|
|
ELISPDIR=${ELISPDIR} DIRSECTION="${DIRSECTION}" \
|
|
|
|
INFOFILES="${INFOFILES}" \
|
1998-12-13 08:47:43 +00:00
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1999-03-17 06:57:38 +00:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/yatex-startup.el ${ELISPDIR}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-09-18 02:05:45 +00:00
|
|
|
.if (${EMACS_PORT_NAME} == xemacs21) || (${EMACS_PORT_NAME} == xemacs21-mule)
|
1999-09-27 13:48:10 +00:00
|
|
|
${RM} -f ${WRKDIR}/${MANIFEST}
|
2000-09-18 02:05:45 +00:00
|
|
|
${CAT} ${PLIST} | ${GREP} -e "^${EMACS_LIBDIR}" | \
|
|
|
|
${SED} -e "s;^${EMACS_LIBDIR}/;;" > ${WRKDIR}/${MANIFEST}
|
|
|
|
${MKDIR} ${PREFIX}/${EMACS_LIBDIR}/site-packages/pkginfo
|
1999-09-27 13:48:10 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
|
2000-09-18 02:05:45 +00:00
|
|
|
${PREFIX}/${EMACS_LIBDIR}/site-packages/pkginfo/
|
1999-09-27 13:48:10 +00:00
|
|
|
.endif
|
1998-08-14 00:16:07 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|