mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
197821ddbb
- Add NO_ARCH - Switch to options helpers Approved by: portmgr blanket
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# Created by: Nicola Vitale <nivit@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pyjamas
|
|
PORTVERSION= 0.5
|
|
PORTREVISION= 2
|
|
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:2.7 shebangfix
|
|
SHEBANG_FILES= examples/dynamictable/testjsonservice.py \
|
|
examples/infohierarchy/public/services/EchoService.py \
|
|
examples/jsonrpc/public/services/EchoService.py \
|
|
examples/showcase/compile.py \
|
|
pyjs/tests/test-report.py
|
|
USE_PYTHON= distutils autoplist pythonprefix
|
|
NO_ARCH= yes
|
|
|
|
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-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/img
|
|
cd ${WRKSRC}/doc && ${CP} *.html ${STAGEDIR}${DOCSDIR} && \
|
|
${CP} img/* ${STAGEDIR}${DOCSDIR}/img
|
|
|
|
.include <bsd.port.mk>
|