summaryrefslogtreecommitdiff
path: root/devel/boa-constructor/Makefile
blob: d3b787a85db21c363d6266fb2a47891fc5fd3d7a (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
41
42
43
44
45
# $NetBSD: Makefile,v 1.8 2011/01/13 13:37:20 wiz Exp $
#

VERSION=		0.6.1
DISTNAME=		boa-constructor-${VERSION}.src
PKGNAME=		boa-constructor-${VERSION}
PKGREVISION=		6
CATEGORIES=		devel
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=boa-constructor/}
EXTRACT_SUFX=		.zip

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://boa-constructor.sourceforge.net/
COMMENT=		Python IDE

DEPENDS+=		${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat

PKG_DESTDIR_SUPPORT=	user-destdir
PREV_PKGPATH=		devel/boaconstructor

WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}
BOADIR=			${PREFIX}/share/boa-constructor-${VERSION}
INSTALLATION_DIRS+=	${BOADIR}

SEDSUBSTS=	-e "s|@PYTHONBIN@|${PYTHONBIN}|"
SEDSUBSTS+=	-e "s|@PREFIX@|${PREFIX}|"
SEDSUBSTS+=	-e "s|@VERSION@|${VERSION}|"

REPLACE_PYTHON+=	ExternalLib/pylint.py

INSTALLATION_DIRS=	bin

USE_TOOLS+=	pax

do-build:
	${SED} ${SEDSUBSTS} < ${FILESDIR}/Boa.sh > ${WRKDIR}/Boa

do-install:
	cd ${WRKSRC} && pax -rw . ${DESTDIR}${BOADIR}
	${CHMOD} -R go-w ${DESTDIR}${BOADIR}
	${INSTALL_SCRIPT} ${WRKDIR}/Boa ${DESTDIR}${PREFIX}/bin

.include "../../lang/python/application.mk"
.include "../../x11/py-wxWidgets/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"