aboutsummaryrefslogtreecommitdiff
path: root/editors/py-room/Makefile
blob: 767bf07f2b5a83911536bc993a4d114d944479a2 (plain) (blame)
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
# New ports collection makefile for:	py-room
# Date created:		2009-11-11
# Whom:			Alexander Best
#
# $FreeBSD$
#

PORTNAME=	room
PORTVERSION=	0.4.1
PORTREVISION=	5
CATEGORIES=	editors python
MASTER_SITES=	https://launchpad.net/pyroom/${PORTVERSION:R}/${PORTVERSION}/+download/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	py${PORTNAME}-${PORTVERSION}

MAINTAINER=	arundel@FreeBSD.org
COMMENT=	PyRoom is a clone of WriteRoom and features "distraction-free writing"

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg

FETCH_ARGS=
USE_GETTEXT=	yes
USE_PYTHON=	yes
USE_GNOME=	pygtk2
USE_PYDISTUTILS=	yes
PYDISTUTILS_PKGNAME=	PyRoom

post-patch:
	@${REINPLACE_CMD} -e \
		's|%%PREFIX%%|${PREFIX}|g' \
			${WRKSRC}/setup.py ${WRKSRC}/PyRoom/preferences.py \
			${WRKSRC}/PyRoom/gui.py ${WRKSRC}/pyroom.desktop

.include <bsd.port.mk>