aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/lookup-emacs21/Makefile
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>1999-09-27 21:42:05 +0800
committertaoka <taoka@FreeBSD.org>1999-09-27 21:42:05 +0800
commite8287d6dc3565bf4fa72b3fe8a045a2f0e503c17 (patch)
tree3c33c967de3175f1f1059a2d43a57302ac7fe20e /japanese/lookup-emacs21/Makefile
parent2bff6ea5da180c70621a6098f52721a6a014bf23 (diff)
downloadfreebsd-ports-gnome-e8287d6dc3565bf4fa72b3fe8a045a2f0e503c17.tar.gz
freebsd-ports-gnome-e8287d6dc3565bf4fa72b3fe8a045a2f0e503c17.tar.zst
freebsd-ports-gnome-e8287d6dc3565bf4fa72b3fe8a045a2f0e503c17.zip
Changed a lookup port for XEmacs to XEmacs's package style
Diffstat (limited to 'japanese/lookup-emacs21/Makefile')
-rw-r--r--japanese/lookup-emacs21/Makefile27
1 files changed, 22 insertions, 5 deletions
diff --git a/japanese/lookup-emacs21/Makefile b/japanese/lookup-emacs21/Makefile
index 825eb9f9fc35..2440ef06218a 100644
--- a/japanese/lookup-emacs21/Makefile
+++ b/japanese/lookup-emacs21/Makefile
@@ -20,20 +20,26 @@ FILESDIR= ${.CURDIR}/../lookup-mule/files
PKGDIR= ${.CURDIR}/../lookup-mule/pkg
PLIST= ${.CURDIR}/pkg/PLIST
PATCHDIR= ${.CURDIR}/patches
-ELISPDIR?= ${PREFIX}/share/emacs/site-lisp/lookup
-PORTINFODIR?= ${PREFIX}/info
EMACS?= mule
.if (${EMACS} == "xemacs")
-BUILD_DEPENDS+= xemacs:${PORTSDIR}/japanese/xemacs
+BUILD_DEPENDS+= xemacs:${PORTSDIR}/japanese/xemacs \
+ ${PREFIX}/lib/xemacs/xemacs-packages/pkginfo/MANIFEST.zenirc:${PORTSDIR}/editors/xemacs-sumo-packages
+EMACSDIR= ${PREFIX}/lib/xemacs/site-packages
+ELISPDIR= ${EMACSDIR}/lisp/lookup
+PORTINFODIR= ${EMACSDIR}/info
+MANIFEST= MANIFEST.lookup
DO_MAKEINFO= ${SETENV} LANG=ja_JP.EUC xemacs -no-site-file -no-init-file \
- -batch lookup.texi -e texinfo-format-buffer -f save-buffer; \
+ -batch -l texinfmt -f batch-texinfo-format lookup.texi; \
${ECHO} "INFO-DIR-SECTION The Emacs editor and associated tools" >> lookup.info; \
${ECHO} "START-INFO-DIR-ENTRY" >> lookup.info; \
${ECHO} "* Lookup: (lookup). Lookup, a Search Interface." >> lookup.info; \
${ECHO} "END-INFO-DIR-ENTRY" >> lookup.info
.else
DO_MAKEINFO= makeinfo --no-split --no-validate lookup.texi
+EMACSDIR= ${PREFIX}/share/emacs/site-lisp
+ELISPDIR= ${EMACSDIR}/lookup
+PORTINFODIR= ${PREFIX}/info
.endif
do-build:
@@ -45,7 +51,7 @@ do-build:
)
do-install:
- ${MKDIR} ${ELISPDIR}
+ ${MKDIR} ${ELISPDIR} ${PORTINFODIR};
${INSTALL_DATA} ${WRKSRC}/lisp/*.el ${ELISPDIR}
${INSTALL_DATA} ${WRKSRC}/texi/lookup.info* ${PORTINFODIR}
${RM} ${ELISPDIR}/lookup-compile.el
@@ -54,4 +60,15 @@ do-install:
install-info ${PORTINFODIR}/lookup.info ${PORTINFODIR}/dir
${SED} -e 's,%%ELISPDIR%%,${ELISPDIR},' ${FILESDIR}/lookup-startup.el.tmpl > ${ELISPDIR}/../lookup-startup.el
+.if (${EMACS} == "xemacs")
+post-install:
+ ${RM} -f ${WRKDIR}/${MANIFEST}
+ emacsdir=`${ECHO} ${EMACSDIR} | ${SED} -e "s;^${PREFIX}/;;"`; \
+ ${CAT} ${PLIST} | ${GREP} -e "^$${emacsdir}" | \
+ ${SED} -e "s;^${EMACSDIR}/;;" > ${WRKDIR}/${MANIFEST}
+ ${MKDIR} ${EMACSDIR}/pkginfo
+ ${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
+ ${EMACSDIR}/pkginfo/
+.endif
+
.include <bsd.port.mk>