Import editors/rox-edit version 2.2_1
[dports.git] / editors / rox-edit / Makefile
1 # Ports collection Makefile for:        rox-edit
2 # Date created:                         Jan 13 2003
3 # Whom:                                 olgeni@FreeBSD.org
4 #
5 # $FreeBSD: ports/editors/rox-edit/Makefile,v 1.25 2012/11/17 05:57:18 svnexp Exp $
6 #
7
8 PORTNAME=       rox-edit
9 PORTVERSION=    2.2
10 PORTREVISION=   1
11 CATEGORIES=     editors
12 MASTER_SITES=   SF/rox/Edit/${PORTVERSION}
13 DISTNAME=       edit-${PORTVERSION}
14
15 MAINTAINER=     olgeni@FreeBSD.org
16 COMMENT=        Text editor for the ROX desktop
17
18 RUN_DEPENDS=    ${LOCALBASE}/bin/rox:${PORTSDIR}/x11-fm/rox-filer \
19                 ${LOCALBASE}/lib/ROX-Lib2/python/rox/__init__.py:${PORTSDIR}/devel/py-roxlib
20
21 USE_PYTHON=     yes
22 USE_BZIP2=      yes
23
24 post-extract:
25         @${FIND} ${WRKSRC} -name .cvsignore | ${XARGS} ${RM}
26         @${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf
27
28 do-build:
29         @${PYTHON_CMD} -m compileall ${WRKSRC}
30         @${PYTHON_CMD} -O -m compileall ${WRKSRC}
31
32 pre-install:
33         @${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
34                         ${WRKSRC}/Edit/findrox.py
35         @${FIND} ${WRKSRC} -name *.bak | ${XARGS} ${RM}
36
37 do-install:
38         @${MKDIR} ${PREFIX}/apps
39         @${CP} -r ${WRKSRC}/Edit ${PREFIX}/apps/
40         @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/apps/Edit
41
42 .include <bsd.port.mk>