diff options
author | perky <perky@FreeBSD.org> | 2003-07-25 00:56:16 +0000 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-07-25 00:56:16 +0000 |
commit | 0e7c8a4207512f1fdfdd77ed5f21fa85d8c6cde4 (patch) | |
tree | 6643bd7b2b6620c6152666a8947e2d1552d23200 /www | |
parent | 8be7637b69bc8afd5baf8d7916f47ef891479be1 (diff) | |
download | FreeBSD-ports-0e7c8a4207512f1fdfdd77ed5f21fa85d8c6cde4.zip FreeBSD-ports-0e7c8a4207512f1fdfdd77ed5f21fa85d8c6cde4.tar.gz |
Compile python byte codes on the correct directory.
PR: 54820
Submitted by: Rui Lopes <rui@ruilopes.com>
Diffstat (limited to 'www')
-rw-r--r-- | www/py-websvcs/Makefile | 16 | ||||
-rw-r--r-- | www/py-websvcs/pkg-plist | 7 |
2 files changed, 12 insertions, 11 deletions
diff --git a/www/py-websvcs/Makefile b/www/py-websvcs/Makefile index 3c9c57f..580bf16 100644 --- a/www/py-websvcs/Makefile +++ b/www/py-websvcs/Makefile @@ -7,6 +7,7 @@ PORTNAME= websvcs PORTVERSION= 0.9.7 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= py${PORTNAME} @@ -20,24 +21,25 @@ COMMENT= Web service libraries includes SOAP, WSDL, UDDI, etc USE_PYTHON= yes EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} -PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \ - EXAMPLESDIR=${EXAMPLESDIR:S,^${PREFIX}/,,g} \ +PLIST_SUB+= EXAMPLESDIR=${EXAMPLESDIR:S,^${PREFIX}/,,g} \ DOCSDIR=${DOCSDIR:S,^${PREFIX}/,,g} +NO_BUILD= yes TOOLS= interop2html +PY_FILES= SOAP do-patch: .for i in ${TOOLS} @${MV} ${WRKSRC}/tools/$i.py ${WRKSRC}/tools/$i .endfor -do-build: - @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} - @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} - do-install: ${MKDIR} ${EXAMPLESDIR} ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/SOAP.py* ${PYTHON_SITELIBDIR} +.for f in ${PY_FILES} + ${INSTALL_DATA} ${WRKSRC}/${f}.py ${PYTHON_SITELIBDIR} + @${PYTHON_CMD} -c "import py_compile; py_compile.compile('${PYTHON_SITELIBDIR}/${f}.py')" + @${PYTHON_CMD} -O -c "import py_compile; py_compile.compile('${PYTHON_SITELIBDIR}/${f}.py')" +.endfor .for i in ${TOOLS} ${INSTALL_SCRIPT} ${WRKSRC}/tools/$i ${PREFIX}/bin .endfor diff --git a/www/py-websvcs/pkg-plist b/www/py-websvcs/pkg-plist index 6f923f0..6e985e0 100644 --- a/www/py-websvcs/pkg-plist +++ b/www/py-websvcs/pkg-plist @@ -1,4 +1,7 @@ bin/interop2html +%%PYTHON_SITELIBDIR%%/SOAP.py +%%PYTHON_SITELIBDIR%%/SOAP.pyc +%%PYTHON_SITELIBDIR%%/SOAP.pyo %%PORTDOCS%%%%EXAMPLESDIR%%/alanbushTest.py %%PORTDOCS%%%%EXAMPLESDIR%%/cardClient.py %%PORTDOCS%%%%EXAMPLESDIR%%/cardServer.py @@ -18,7 +21,3 @@ bin/interop2html %%PORTDOCS%%%%DOCSDIR%%/quickstart.txt %%PORTDOCS%%%%DOCSDIR%%/simpleTypes.txt %%PORTDOCS%%@dirrm %%DOCSDIR%% -@cwd %%LOCALBASE%% -%%PYTHON_SITELIBDIR%%/SOAP.py -%%PYTHON_SITELIBDIR%%/SOAP.pyc -%%PYTHON_SITELIBDIR%%/SOAP.pyo |