summaryrefslogtreecommitdiffstats
path: root/devel/pymacs/Makefile
blob: ff475ceead782574078f59e472560a46d59b2188 (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
# Created by: mwm@mired.org
# $FreeBSD$

PORTNAME=	Pymacs
PORTVERSION=	0.25
DISTVERSIONPREFIX=	v
PORTREVISION=	2
CATEGORIES=	devel editors python elisp

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Python package for scripting emacs

LICENSE=	GPLv2

USE_GITHUB=	yes
GH_ACCOUNT=	pinard

USES=		python
USE_EMACS=	yes
USE_PYTHON=	distutils

pre-configure:
	@(cd ${WRKSRC}; \
		${PYTHON_CMD} pppp -C ppppconfig.py Pymacs.py.in \
			pppp.rst.in pymacs.el.in pymacs.rst.in \
			contrib	tests)

post-build:
	(cd ${WRKSRC} && ${EMACS_CMD} -batch -q -no-site-file -no-init-file \
		-f batch-byte-compile pymacs.el)

post-install:
	(cd ${WRKSRC} && ${INSTALL_DATA} pymacs.el pymacs.elc \
		${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR})

.include <bsd.port.mk>
OpenPOWER on IntegriCloud