(1) Fixed a problem hunging up the package-making system on bento
Pointed out: asami (2) Modified to use variables defined in Mk/bsd.emacs.mk as many as possible.
This commit is contained in:
parent
6848777e4b
commit
17450f8b83
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32795
9 changed files with 40 additions and 49 deletions
|
@ -7,9 +7,8 @@
|
||||||
|
|
||||||
PKGNAMESUFFIX= -mule
|
PKGNAMESUFFIX= -mule
|
||||||
|
|
||||||
MULE= yes
|
|
||||||
|
|
||||||
MASTERDIR= ${.CURDIR}/../yatex
|
MASTERDIR= ${.CURDIR}/../yatex
|
||||||
COMMENT= ${.CURDIR}/pkg/COMMENT
|
COMMENT= ${.CURDIR}/pkg/COMMENT
|
||||||
|
EMACS_PORT_NAME=mule
|
||||||
|
|
||||||
.include "${MASTERDIR}/Makefile"
|
.include "${MASTERDIR}/Makefile"
|
||||||
|
|
|
@ -7,9 +7,8 @@
|
||||||
|
|
||||||
PKGNAMESUFFIX= -xemacs-mule
|
PKGNAMESUFFIX= -xemacs-mule
|
||||||
|
|
||||||
XEMACS-MULE= yes
|
|
||||||
|
|
||||||
MASTERDIR= ${.CURDIR}/../yatex
|
MASTERDIR= ${.CURDIR}/../yatex
|
||||||
COMMENT= ${.CURDIR}/pkg/COMMENT
|
COMMENT= ${.CURDIR}/pkg/COMMENT
|
||||||
|
EMACS_PORT_NAME=xemacs21-mule
|
||||||
|
|
||||||
.include "${MASTERDIR}/Makefile"
|
.include "${MASTERDIR}/Makefile"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Yet Another LaTeX mode and html mode on Emacs (for XEmacs-mule)
|
Yet Another LaTeX mode and html mode on Emacs (for XEmacs21-mule)
|
||||||
|
|
|
@ -7,9 +7,8 @@
|
||||||
|
|
||||||
PKGNAMESUFFIX= -xemacs
|
PKGNAMESUFFIX= -xemacs
|
||||||
|
|
||||||
XEMACS= yes
|
|
||||||
|
|
||||||
MASTERDIR= ${.CURDIR}/../yatex
|
MASTERDIR= ${.CURDIR}/../yatex
|
||||||
COMMENT= ${.CURDIR}/pkg/COMMENT
|
COMMENT= ${.CURDIR}/pkg/COMMENT
|
||||||
|
EMACS_PORT_NAME=xemacs21
|
||||||
|
|
||||||
.include "${MASTERDIR}/Makefile"
|
.include "${MASTERDIR}/Makefile"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Yet Another LaTeX mode and html mode on Emacs (for XEmacs19, XEmacs20)
|
Yet Another LaTeX mode and html mode on Emacs (for XEmacs21)
|
||||||
|
|
|
@ -13,43 +13,46 @@ DISTNAME= ${PORTNAME}${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= taoka@FreeBSD.org
|
MAINTAINER= taoka@FreeBSD.org
|
||||||
|
|
||||||
.if defined(XEMACS-MULE)
|
|
||||||
BUILD_DEPENDS= xemacs:${PORTSDIR}/japanese/xemacs21-canna \
|
|
||||||
{LOCALBASE}/${EMACS_PACKAGESDIR}/../xemacs-packages/lisp/texinfo/texinfmt.el:${PORTSDIR}/editors/xemacs-packages \
|
|
||||||
nkf:${PORTSDIR}/japanese/nkf
|
|
||||||
.endif
|
|
||||||
PKGINSTALL= ${WRKDIR}/INSTALL
|
PKGINSTALL= ${WRKDIR}/INSTALL
|
||||||
PKGDEINSTALL= ${WRKDIR}/DEINSTALL
|
PKGDEINSTALL= ${WRKDIR}/DEINSTALL
|
||||||
PKGMESSAGE= ${WRKDIR}/MESSAGE
|
PKGMESSAGE= ${WRKDIR}/MESSAGE
|
||||||
VERSION= 1.67
|
VERSION= 1.67
|
||||||
TARGETNAME= YaTeX
|
TARGETNAME= YaTeX
|
||||||
DIRSECTION= The Emacs editor and associated tools
|
DIRSECTION= The Emacs editor and associated tools
|
||||||
|
EMACS_PORT_NAME?=emacs20
|
||||||
|
.if (${EMACS_PORT_NAME} == xemacs21-mule)
|
||||||
|
BUILD_DEPENDS= xemacs:${PORTSDIR}/japanese/xemacs21-canna \
|
||||||
|
{LOCALBASE}/${EMACS_PACKAGESDIR}/../xemacs-packages/lisp/texinfo/texinfmt.el:${PORTSDIR}/editors/xemacs-packages \
|
||||||
|
nkf:${PORTSDIR}/japanese/nkf
|
||||||
|
.endif
|
||||||
|
|
||||||
|
EMACS_PACKAGESDIR=${EMACS_LIBDIR}/site-packages
|
||||||
# Note that 'INFODIR' is defined in bsd.info.mk
|
# Note that 'INFODIR' is defined in bsd.info.mk
|
||||||
.if defined(XEMACS)
|
.if (${EMACS_PORT_NAME} == xemacs21)
|
||||||
EMACS= xemacs
|
INFODIR= ${PREFIX}/${EMACS_PACKAGESDIR}/info
|
||||||
EMACSDIR= ${PREFIX}/lib/xemacs/site-packages
|
ELISPDIR= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp
|
||||||
INFODIR= ${EMACSDIR}/info
|
HELPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
||||||
PLIST= ${PKGDIR}/PLIST.xemacs
|
PLIST= ${PKGDIR}/PLIST.xemacs
|
||||||
MANIFEST= MANIFEST.yatex
|
MANIFEST= MANIFEST.yatex
|
||||||
.elif defined(XEMACS-MULE)
|
.elif (${EMACS_PORT_NAME} == xemacs21-mule)
|
||||||
EMACS= xemacs
|
INFODIR= ${PREFIX}/${EMACS_PACKAGESDIR}/info
|
||||||
EMACSDIR= ${PREFIX}/lib/xemacs/site-packages
|
ELISPDIR= ${PREFIX}/${EMACS_PACKAGESDIR}/lisp
|
||||||
INFODIR= ${EMACSDIR}/info
|
HELPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
||||||
PLIST= ${PKGDIR}/PLIST.xemacs-mule
|
PLIST= ${PKGDIR}/PLIST.xemacs-mule
|
||||||
MANIFEST= MANIFEST.yatex
|
MANIFEST= MANIFEST.yatex
|
||||||
.elif defined(MULE)
|
.elif (${EMACS_PORT_NAME} == mule)
|
||||||
EMACS= mule
|
|
||||||
EMACSDIR= ${PREFIX}/share/mule
|
|
||||||
INFODIR= ${PREFIX}/info
|
INFODIR= ${PREFIX}/info
|
||||||
PLIST= ${PKGDIR}/PLIST.mule
|
PLIST= ${PKGDIR}/PLIST.mule
|
||||||
|
ELISPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
||||||
|
HELPDIR= ${ELISPDIR}
|
||||||
.else
|
.else
|
||||||
EMACS= emacs
|
|
||||||
EMACSDIR= ${PREFIX}/share/emacs
|
|
||||||
INFODIR= ${PREFIX}/info
|
INFODIR= ${PREFIX}/info
|
||||||
PLIST= ${PKGDIR}/PLIST.emacs
|
PLIST= ${PKGDIR}/PLIST.emacs
|
||||||
|
ELISPDIR= ${PREFIX}/${EMACS_LIBDIR}/site-lisp
|
||||||
|
HELPDIR= ${ELISPDIR}
|
||||||
.endif
|
.endif
|
||||||
.if defined(XEMACS)
|
PORTSDOCDIR= ${PREFIX}/share/doc/yatex
|
||||||
|
.if (${EMACS_PORT_NAME} == xemacs21)
|
||||||
NEW=
|
NEW=
|
||||||
HELP= help/YATEXHLP.eng
|
HELP= help/YATEXHLP.eng
|
||||||
INFOFILES= yatexe
|
INFOFILES= yatexe
|
||||||
|
@ -70,14 +73,6 @@ INFONODEEXPS= Yet Another tex-mode for Emacs. (Japanese):Yet Another tex-mode fo
|
||||||
DOCSRC+= docs/yatexe.tex \
|
DOCSRC+= docs/yatexe.tex \
|
||||||
docs/yatexref.eng \
|
docs/yatexref.eng \
|
||||||
docs/qanda.eng
|
docs/qanda.eng
|
||||||
.if defined(XEMACS) || defined(XEMACS-MULE)
|
|
||||||
ELISPDIR= ${EMACSDIR}/lisp
|
|
||||||
HELPDIR= ${EMACSDIR}/../site-lisp
|
|
||||||
.else
|
|
||||||
ELISPDIR= ${EMACSDIR}/site-lisp
|
|
||||||
HELPDIR= ${ELISPDIR}
|
|
||||||
.endif
|
|
||||||
PORTSDOCDIR= ${PREFIX}/share/doc/yatex
|
|
||||||
EL_FILES= comment.el yatex.el yatexadd.el yatexgen.el \
|
EL_FILES= comment.el yatex.el yatexadd.el yatexgen.el \
|
||||||
yatexenv.el yatexlib.el \
|
yatexenv.el yatexlib.el \
|
||||||
yatexmth.el yatexhks.el yatexhlp.el yatexprc.el \
|
yatexmth.el yatexhks.el yatexhlp.el yatexprc.el \
|
||||||
|
@ -104,17 +99,17 @@ do-build:
|
||||||
-e 's,%%INFONODES%%,${INFONODES},g' \
|
-e 's,%%INFONODES%%,${INFONODES},g' \
|
||||||
-e 's,%%INFONODEEXPS%%,${INFONODEEXPS},g' \
|
-e 's,%%INFONODEEXPS%%,${INFONODEEXPS},g' \
|
||||||
-e 's,%%DIRSECTION%%,${DIRSECTION},g' \
|
-e 's,%%DIRSECTION%%,${DIRSECTION},g' \
|
||||||
-e 's,%%EMACS%%,${EMACS},g' \
|
-e 's,%%EMACS_NAME%%,${EMACS_NAME},g' \
|
||||||
< ${FILESDIR}/$${file}.tmpl > ${WRKDIR}/$${file}; \
|
< ${FILESDIR}/$${file}.tmpl > ${WRKDIR}/$${file}; \
|
||||||
done
|
done
|
||||||
# For XEmacs-mule 20.4, yatexj.info (in Japanese) should be remade
|
# 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)
|
# after Kanji code of yatexj.tex is convert from shift jis (MS-Kanji)
|
||||||
# to EUC.
|
# to EUC.
|
||||||
.if defined(XEMACS-MULE)
|
.if (${EMACS_PORT_NAME} == xemacs21-mule)
|
||||||
(cd ${WRKSRC}/docs; \
|
(cd ${WRKSRC}/docs; \
|
||||||
${MV} yatexj.tex yatexj.tex.org; \
|
${MV} yatexj.tex yatexj.tex.org; \
|
||||||
nkf -e yatexj.tex.org > yatexj.tex; \
|
nkf -e yatexj.tex.org > yatexj.tex; \
|
||||||
${SETENV} LANG=ja_JP.EUC ${EMACS} -no-site-file -no-init-file \
|
${SETENV} LANG=ja_JP.EUC ${EMACS_CMD} -no-site-file -no-init-file \
|
||||||
-batch -l texinfmt -f batch-texinfo-format yatexj.tex; \
|
-batch -l texinfmt -f batch-texinfo-format yatexj.tex; \
|
||||||
)
|
)
|
||||||
.endif
|
.endif
|
||||||
|
@ -126,7 +121,7 @@ do-install:
|
||||||
${INSTALL_DATA} ${EL_FILES} ${ELISPDIR}/yatex; \
|
${INSTALL_DATA} ${EL_FILES} ${ELISPDIR}/yatex; \
|
||||||
${INSTALL_DATA} ${HELP} ${HELPDIR}; \
|
${INSTALL_DATA} ${HELP} ${HELPDIR}; \
|
||||||
${MKDIR} ${INFODIR}
|
${MKDIR} ${INFODIR}
|
||||||
.if defined(XEMACS) || defined(XEMACS-MULE)
|
.if (${EMACS_PORT_NAME} == xemacs21) || (${EMACS_PORT_NAME} == xemacs21-mule)
|
||||||
cd ${WRKSRC}; \
|
cd ${WRKSRC}; \
|
||||||
for file in `${ECHO} ${INFOFILES} | ${SED} "s,:, ,g"`; do \
|
for file in `${ECHO} ${INFOFILES} | ${SED} "s,:, ,g"`; do \
|
||||||
${INSTALL_DATA} ${WRKSRC}/docs/$${file} ${INFODIR}/$${file}.info; \
|
${INSTALL_DATA} ${WRKSRC}/docs/$${file} ${INFODIR}/$${file}.info; \
|
||||||
|
@ -149,14 +144,13 @@ post-install:
|
||||||
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||||
@${INSTALL_DATA} ${WRKDIR}/yatex-startup.el ${ELISPDIR}
|
@${INSTALL_DATA} ${WRKDIR}/yatex-startup.el ${ELISPDIR}
|
||||||
@${CAT} ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
.if defined(XEMACS) || defined(XEMACS-MULE)
|
.if (${EMACS_PORT_NAME} == xemacs21) || (${EMACS_PORT_NAME} == xemacs21-mule)
|
||||||
${RM} -f ${WRKDIR}/${MANIFEST}
|
${RM} -f ${WRKDIR}/${MANIFEST}
|
||||||
emacsdir=`${ECHO} ${EMACSDIR} | ${SED} -e "s;^${PREFIX}/;;"`; \
|
${CAT} ${PLIST} | ${GREP} -e "^${EMACS_LIBDIR}" | \
|
||||||
${CAT} ${PLIST} | ${GREP} -e "^$${emacsdir}" | \
|
${SED} -e "s;^${EMACS_LIBDIR}/;;" > ${WRKDIR}/${MANIFEST}
|
||||||
${SED} -e "s;^$${emacsdir}/;;" > ${WRKDIR}/${MANIFEST}
|
${MKDIR} ${PREFIX}/${EMACS_LIBDIR}/site-packages/pkginfo
|
||||||
${MKDIR} ${EMACSDIR}/pkginfo
|
|
||||||
${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
|
${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
|
||||||
${EMACSDIR}/pkginfo/
|
${PREFIX}/${EMACS_LIBDIR}/site-packages/pkginfo/
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -11,7 +11,7 @@ SED=${SED:-%%SED%%}
|
||||||
infodir=${INFODIR:-%%INFODIR%%}
|
infodir=${INFODIR:-%%INFODIR%%}
|
||||||
infofiles=${INFOFILES:-%%INFOFILES%%}
|
infofiles=${INFOFILES:-%%INFOFILES%%}
|
||||||
|
|
||||||
if [ "X$2" = X"DEINSTALL" -a %%EMACS%% != xemacs ]; then
|
if [ "X$2" = X"DEINSTALL" -a %%EMACS_NAME%% != xemacs ]; then
|
||||||
${ECHO} "Deleting entry for \"${pkgname}\" from ${infodir}/dir"
|
${ECHO} "Deleting entry for \"${pkgname}\" from ${infodir}/dir"
|
||||||
for file in `echo ${infofiles} | ${SED} "s,:, ,g"`; do
|
for file in `echo ${infofiles} | ${SED} "s,:, ,g"`; do
|
||||||
install-info --delete ${infodir}/${file} ${infodir}/dir
|
install-info --delete ${infodir}/${file} ${infodir}/dir
|
||||||
|
|
|
@ -28,7 +28,7 @@ if [ "X$2" = X"POST-INSTALL" ]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
file=`${ECHO} ${infofiles} | ${CUT} -d : -f $count`
|
file=`${ECHO} ${infofiles} | ${CUT} -d : -f $count`
|
||||||
if [ X%%EMACS%% = Xxemacs ]; then
|
if [ X%%EMACS_NAME%% = Xxemacs ]; then
|
||||||
file=${file}.info
|
file=${file}.info
|
||||||
fi
|
fi
|
||||||
nodename=`${ECHO} ${infonodes} | ${CUT} -d : -f $count`
|
nodename=`${ECHO} ${infonodes} | ${CUT} -d : -f $count`
|
||||||
|
@ -43,7 +43,7 @@ if [ "X$2" = X"POST-INSTALL" ]; then
|
||||||
fi
|
fi
|
||||||
count=`${EXPR} $count + 1`
|
count=`${EXPR} $count + 1`
|
||||||
done
|
done
|
||||||
if [ X%%EMACS%% != Xxemacs ]; then
|
if [ X%%EMACS_NAME%% != Xxemacs ]; then
|
||||||
${ECHO} "Adding entry for \"${pkgname}\" to ${infodir}/dir"
|
${ECHO} "Adding entry for \"${pkgname}\" to ${infodir}/dir"
|
||||||
for file in `${ECHO} ${infofiles} | ${SED} "s,:, ,g"`; do
|
for file in `${ECHO} ${infofiles} | ${SED} "s,:, ,g"`; do
|
||||||
install-info ${infodir}/${file} ${infodir}/dir
|
install-info ${infodir}/${file} ${infodir}/dir
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Yet Another LaTeX mode and html mode on Emacs (for Emacs19, Emacs20)
|
Yet Another LaTeX mode and html mode on Emacs (for Emacs{19,20} and XEmacs{19,20})
|
||||||
|
|
Loading…
Reference in a new issue