blob: e67473d3043e8bd7615206260e782e9e6371a675 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $NetBSD: Makefile,v 1.21 2008/10/11 09:31:55 uebayasi Exp $
#
DISTNAME= python-mode-1.0
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-mode/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/python-mode/
COMMENT= Emacs mode for editing python files
PKG_DESTDIR_SUPPORT= user-destdir
ELISP_FILES= python-mode.el
# Could be installed as well, but what about pycomplete.py?
#ELISP_FILES+= doctest-mode.el pycomplete.el
# 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= emacs22 emacs22nox emacs21 emacs21nox emacs20
.include "../../editors/emacs/modules.mk"
INSTALLATION_DIRS= ${EMACS_LISPPREFIX:S/^${PREFIX}\///}
do-build:
for file in ${ELISP_FILES}; do \
${EMACS_BIN} --no-init-file -batch \
-f batch-byte-compile ${WRKSRC}/$${file}; \
done
do-install:
for file in ${ELISP_FILES}; do \
${INSTALL_DATA} ${WRKSRC}/$${file} \
${DESTDIR}${EMACS_LISPPREFIX}; \
${INSTALL_DATA} ${WRKSRC}/$${file}c \
${DESTDIR}${EMACS_LISPPREFIX}; \
done
# ${INSTALL_DATA} ${WRKSRC}/pycomplete.py ${DESTDIR}${EMACS_LISPPREFIX}
.include "../../mk/bsd.pkg.mk"
|