pkgsrc/devel/js2-mode/Makefile
uebayasi 34004f51e0 Move mk/emacs.mk to editors/emacs/modules.mk.
Don't call pkg_info to get the installed Emacs version; always use the
version matching EMACS_TYPE set by users.  Be DEPENDS to it.  This should
address pkg/37146 by Aleksey Cheusov.

While here convert some emacs lisp packages to user-destdir.
2008-10-11 09:31:54 +00:00

31 lines
919 B
Makefile

# $NetBSD: Makefile,v 1.2 2008/10/11 09:31:55 uebayasi Exp $
#
DISTNAME= js2-20080406
CATEGORIES= devel
MASTER_SITES= http://js2-mode.googlecode.com/files/
EXTRACT_SUFX= .el
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://code.google.com/p/js2-mode/
COMMENT= Improved JavaScript mode for GNU Emacs
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
USE_LANGUAGES= # none
MESSAGE_SUBST+= LISPDIR=${EMACS_LISPPREFIX:Q}
# no xemacs at all; emacs21 doesn't support full functionality
EMACS_VERSIONS_ACCEPTED= emacs22 emacs22nox
do-build:
cd ${WRKSRC} && ${EMACS_BIN} -batch -f batch-byte-compile ${DISTNAME}.el
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.el ${DESTDIR}${EMACS_LISPPREFIX}/js2.el
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.elc ${DESTDIR}${EMACS_LISPPREFIX}/js2.elc
.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"