1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

- Fix shebangs

- Add NO_ARCH
- Switch to options helpers

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2018-07-09 15:07:49 +00:00
parent 1e6df29ff0
commit 197821ddbb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474265

View File

@ -3,7 +3,7 @@
PORTNAME= pyjamas
PORTVERSION= 0.5
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www python
MASTER_SITES= SF/${PORTNAME}/OldFiles
DISTNAME= Pyjamas-${PORTVERSION}
@ -12,8 +12,14 @@ MAINTAINER= nivit@FreeBSD.org
COMMENT= Port of Google Web Toolkit to Python
# install/require some libraries in sys.prefix
USES= python:2.7
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,'
@ -21,10 +27,10 @@ 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}
@${FIND} ${WRKSRC}/examples -type f -name "build.sh" -print0 | ${XARGS} -0 ${REINPLACE_CMD}
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}/img
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/img
cd ${WRKSRC}/doc && ${CP} *.html ${STAGEDIR}${DOCSDIR} && \
${CP} img/* ${STAGEDIR}${DOCSDIR}/img