summaryrefslogtreecommitdiff
path: root/editors/rox-edit/Makefile
blob: 17fb064fe958d206a0f6f1ec1747c60ece2e0e13 (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
# $NetBSD: Makefile,v 1.2 2006/02/05 23:08:57 joerg Exp $
#

DISTNAME=	edit-2.0
PKGNAME=	rox-${DISTNAME}
PKGREVISION=	1
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=rox/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	rxg@NetBSD.org
HOMEPAGE=	http://rox.sourceforge.net/desktop/node/20
COMMENT=	Simple text editor for ROX

DEPENDS+=	rox-lib>=2.0.2nb2:../../devel/rox-lib

WRKSRC=		${WRKDIR}/${DISTNAME}/Edit
DIST_SUBDIR=	rox

NO_BUILD=	yes

PYTHON_PATCH_SCRIPTS=	AppRun tests/testreplace.py

INSTALLATION_DIRS=	share/rox/Edit

SUBST_CLASSES+=		lib
SUBST_MESSAGE.lib=	Fixing hardcoded paths for ROX-Lib.
SUBST_STAGE.lib=	post-patch
SUBST_FILES.lib=	findrox.py
SUBST_SED.lib=		-e 's,/usr/local/lib,${PREFIX}/share/rox,g'

post-patch:
	@${FIND} ${WRKSRC} -name 'CVS' -print | ${XARGS} ${RM} -rf
	@${RM} -f ${WRKSRC}/.cvsignore

do-install:
	cd ${WRKSRC} && ${PAX} -rw . ${PREFIX}/share/rox/Edit

.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"