summaryrefslogtreecommitdiffstats
path: root/www/pyjamas/Makefile
blob: 65459f0793632df15d540c7835e9bb0ce1e11347 (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
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$

PORTNAME=	pyjamas
PORTVERSION=	0.5
PORTREVISION=	1
CATEGORIES=	www python
MASTER_SITES=	SF/${PORTNAME}/OldFiles
DISTNAME=	Pyjamas-${PORTVERSION}

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	Port of Google Web Toolkit to Python

# install/require some libraries in sys.prefix
USES=		python
USE_PYTHON=	distutils autoplist pythonprefix

REINPLACE_ARGS=	-i '' -e 's,../../bin,${PREFIX}/bin,'

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/share/pyjamas|${DATADIR}|' ${WRKSRC}/setup.py
	${FIND} ${WRKSRC}/examples -type f -name "build.sh" -print0 | ${XARGS} -0 ${REINPLACE_CMD}

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}/img
	cd ${WRKSRC}/doc && ${CP} *.html ${STAGEDIR}${DOCSDIR} && \
		${CP} img/* ${STAGEDIR}${DOCSDIR}/img

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