[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / python-mode

File: [cvs.NetBSD.org] / pkgsrc / devel / python-mode / Makefile (download)

Revision 1.28, Sun Sep 3 08:53:08 2017 UTC (2 months, 2 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-
Changes since 1.27: +2 -2 lines

Follow some redirects.

# $NetBSD: Makefile,v 1.28 2017/09/03 08:53:08 wiz Exp $
#

DISTNAME=	python-mode-1.0
PKGNAME=	${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION=	2
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=python-mode/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://sourceforge.net/projects/python-mode/
COMMENT=	Emacs mode for editing python files

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=	emacs24 emacs24nox \
				emacs23 emacs23nox \
				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"