aa8e85bcfd
1) Simplify the way how an emacs version is picked when no emacs is installed, but a user try to install an Emacs Lisp package. Just pick up the version set as EMACS_TYPE than searching for versions already installed etc. If the EMACS_TYPE version is not supported by the Emacs Lisp Package, just fail. EMACS_TYPE be default to GNU Emacs 21. (In other words, users should set EMACS_TYPE as they want. Otherwise GNU Emacs 21 is used.) 2) All Emacs Lisp Packages *must* prepend EMACS_PKGNAME_PREFIX to a) the PKGNAME itself, and b) PKGNAME in its dependency lines. EMACS_PKGNAME_PREFIX is expanded to "xemacs-" when XEmacs is used. This keeps dependency graph of Emacs-Lisp-packages- installed-for-XEmacs consistent. 3) Document EMACS_* variables as much as possible. 4) Provide more cookies for PLIST. Maybe utilized later. Note that the 2) change doesn't affect the default, GNU Emacs 21 behaviour. So no version / revision bumps in this commit.
36 lines
1 KiB
Makefile
36 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.13 2005/08/28 04:25:29 uebayasi Exp $
|
|
#
|
|
|
|
DISTNAME= python-mode-4.54
|
|
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-mode/}
|
|
DISTFILES= python-mode.el
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://www.sourceforge.net/project/python-mode/
|
|
COMMENT= Emacs mode for editing python files
|
|
|
|
# Note that XEmacs >=21.4.4 includes a python-mode in the prog-modes
|
|
# package. Also, python-mode does not appear to work as is with XEmacs 21.1
|
|
EMACS_VERSIONS_ACCEPTED= emacs21 emacs21nox emacs20
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
DIST_SUBDIR= python-mode-20041204
|
|
|
|
.include "../../mk/emacs.mk"
|
|
|
|
INSTALLATION_DIRS= ${EMACS_LISPPREFIX:S/^${PREFIX}\///}
|
|
|
|
do-extract:
|
|
${CP} ${DISTDIR}/${DIST_SUBDIR}/python-mode.el ${WRKDIR}
|
|
|
|
do-build:
|
|
${EMACS_BIN} --no-init-file -batch \
|
|
-f batch-byte-compile ${WRKDIR}/python-mode.el
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKDIR}/python-mode.el ${EMACS_LISPPREFIX}
|
|
${INSTALL_DATA} ${WRKDIR}/python-mode.elc ${EMACS_LISPPREFIX}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|