1999-09-06 12:34:46 +00:00
|
|
|
# New ports collection makefile for: lookup for Mule 2.3
|
|
|
|
# Version required: 1.0
|
|
|
|
# Date created: 98/11/19
|
1999-09-08 15:21:53 +00:00
|
|
|
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
|
1999-09-06 12:34:46 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= lookup-1.0
|
|
|
|
PKGNAME?= ja-lookup-mule-1.0
|
|
|
|
CATEGORIES= japanese elisp
|
|
|
|
MASTER_SITES= http://openlab.ring.gr.jp/lookup/DIST/
|
|
|
|
|
1999-09-08 15:21:53 +00:00
|
|
|
MAINTAINER= taoka@FreeBSD.org
|
1999-09-06 12:34:46 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
|
|
|
|
RUN_DEPENDS+= eblook:${PORTSDIR}/japanese/eblook
|
|
|
|
|
|
|
|
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
|
|
|
|
DO_MAKEINFO= ${SETENV} LANG=ja_JP.EUC xemacs -no-site-file -no-init-file \
|
|
|
|
-batch lookup.texi -e texinfo-format-buffer -f save-buffer; \
|
|
|
|
${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
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
${RM} ${WRKSRC}/texi/lookup.info*
|
|
|
|
nkf -e ${WRKSRC}/texi/lookup.texi > ${WRKSRC}/texi/lookup.euc.texi
|
|
|
|
${CP} ${WRKSRC}/texi/lookup.euc.texi ${WRKSRC}/texi/lookup.texi
|
|
|
|
(cd ${WRKSRC}/texi/ ; \
|
|
|
|
${DO_MAKEINFO} || ${TRUE} ; \
|
|
|
|
)
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${ELISPDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lisp/*.el ${ELISPDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/texi/lookup.info* ${PORTINFODIR}
|
|
|
|
${RM} ${ELISPDIR}/lookup-compile.el
|
|
|
|
${SED} -e 's,@VERSION@,1.0,' -e 's,@pkgemacsdir@,${ELISPDIR},' \
|
|
|
|
${WRKSRC}/lisp/lookup-vars.el.in > ${ELISPDIR}/lookup-vars.el
|
|
|
|
install-info ${PORTINFODIR}/lookup.info ${PORTINFODIR}/dir
|
|
|
|
${SED} -e 's,%%ELISPDIR%%,${ELISPDIR},' ${FILESDIR}/lookup-startup.el.tmpl > ${ELISPDIR}/../lookup-startup.el
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|