aboutsummaryrefslogtreecommitdiffstats
path: root/www/pyjamas/Makefile
blob: 7e8ba432a5677733d80fe0ec8e1ed4c0debdf62e (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
35
36
37
38
39
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$

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

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

USE_PYTHON= yes
# install/require some libraries in sys.prefix
USE_PYTHON_PREFIX=  yes
USE_PYDISTUTILS=    easy_install

PYDISTUTILS_PKGNAME=    Pyjamas

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

NO_STAGE=   yes
post-patch:
    ${FIND} ${WRKSRC}/examples -type f -name "build.sh" -print0 | ${XARGS} -0 ${REINPLACE_CMD}

post-install:
.if !defined(NOPORTEXAMPLES)
    ${MV} ${PYTHONPREFIX_SITELIBDIR}/${PYEASYINSTALL_EGG}/share/pyjamas/examples ${EXAMPLESDIR}
.endif  
    ${MV} ${PYTHONPREFIX_SITELIBDIR}/${PYEASYINSTALL_EGG}/share/pyjamas ${DATADIR}
    ${RMDIR} ${PYTHONPREFIX_SITELIBDIR}/${PYEASYINSTALL_EGG}/share

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}/img
    cd ${WRKSRC}/doc && ${CP} *.html ${DOCSDIR} && ${CP} img/* ${DOCSDIR}/img
.endif

.include <bsd.port.mk>