summaryrefslogtreecommitdiffstats
path: root/devel/pymacs/Makefile
blob: f096792627c02cf8a7d4ce13055372c0c88b681d (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
# New ports collection makefile for: pymacs
# Date created:		23 July 2005
# Whom:			mwm@mired.org
#
# $FreeBSD$
#

PORTNAME=	Pymacs
PORTVERSION=	0.22
PORTREVISION=	5
CATEGORIES=	devel editors python elisp
MASTER_SITES=	http://pymacs.progiciels-bpi.ca/archives/ \
		${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR=	distfiles

MAINTAINER=	mwm@mired.org
COMMENT=	A Python package for scripting emacs

USE_PYTHON=	yes
USE_PYDISTUTILS=yes
USE_PYTHON_PREFIX=	yes
USE_EMACS=	yes

.if !defined(EMACS_PORT_NAME)
EMACS_PORT_NAME=xemacs21
.endif

post-patch:
.for f in __init__.py pymacs.py
	${REINPLACE_CMD} -e 's,# Copyright,# coding:latin1 Copyright,g' \
		${WRKSRC}/Pymacs/$f
.endfor

# Install the emacs side of things
post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/pymacs.el ${PREFIX}/${EMACS_SITE_LISPDIR}
	${EMACS_NAME} -batch -f batch-byte-compile \
		${PREFIX}/${EMACS_SITE_LISPDIR}/pymacs.el

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