diff options
-rw-r--r-- | www/quixote/Makefile | 14 | ||||
-rw-r--r-- | www/quixote/pkg-plist | 2 |
2 files changed, 12 insertions, 4 deletions
diff --git a/www/quixote/Makefile b/www/quixote/Makefile index 0ee5d0181340..f9df205afd76 100644 --- a/www/quixote/Makefile +++ b/www/quixote/Makefile @@ -7,6 +7,7 @@ PORTNAME= quixote PORTVERSION= 0.4.1 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= http://www.mems-exchange.org/software/files/quixote/ DISTNAME= Quixote-${PORTVERSION} @@ -17,19 +18,24 @@ BUILD_DEPENDS= ${PYDISTUTILS} RUN_DEPENDS= ${PYTHON_SITELIBDIR}/compiler/__init__.py:${PORTSDIR}/lang/py-compiler USE_PYTHON= yes +PYTHON_SETUP= ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py +EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME} do-build: - @ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \ - setup.py build + @ cd ${WRKSRC} && ${PYTHON_SETUP} build pre-install: @ ${SH} ${PKGREQ} INSTALL do-install: - @ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \ - setup.py install -c -O1 --prefix=${PREFIX} + @ cd ${WRKSRC} && ${PYTHON_SETUP} install -c -O1 --prefix=${PREFIX} post-install: + @ ${PYTHON_CMD} ${SCRIPTDIR}/compile_ptl.py \ + ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/${PORTNAME}/demo/pages.ptl \ + ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/${PORTNAME}/form/form_templates.ptl + @ ${MKDIR} ${EXAMPLESDIR} + @ ${INSTALL_DATA} ${WRKSRC}/demo/demo.* ${EXAMPLESDIR} .if !defined(NOPORTDOCS) @ ${MKDIR} ${DOCSDIR} .for docfile in ACKS CHANGES LICENSE README TODO doc/*.txt diff --git a/www/quixote/pkg-plist b/www/quixote/pkg-plist index 630cdc62b4bd..bf9f21f85450 100644 --- a/www/quixote/pkg-plist +++ b/www/quixote/pkg-plist @@ -24,6 +24,7 @@ lib/%%PYTHON_VERSION%%/site-packages/quixote/demo/integer_ui.py lib/%%PYTHON_VERSION%%/site-packages/quixote/demo/integer_ui.pyc lib/%%PYTHON_VERSION%%/site-packages/quixote/demo/integer_ui.pyo lib/%%PYTHON_VERSION%%/site-packages/quixote/demo/pages.ptl +lib/%%PYTHON_VERSION%%/site-packages/quixote/demo/pages.ptlc lib/%%PYTHON_VERSION%%/site-packages/quixote/errors.py lib/%%PYTHON_VERSION%%/site-packages/quixote/errors.pyc lib/%%PYTHON_VERSION%%/site-packages/quixote/errors.pyo @@ -37,6 +38,7 @@ lib/%%PYTHON_VERSION%%/site-packages/quixote/form/form.py lib/%%PYTHON_VERSION%%/site-packages/quixote/form/form.pyc lib/%%PYTHON_VERSION%%/site-packages/quixote/form/form.pyo lib/%%PYTHON_VERSION%%/site-packages/quixote/form/form_templates.ptl +lib/%%PYTHON_VERSION%%/site-packages/quixote/form/form_templates.ptlc lib/%%PYTHON_VERSION%%/site-packages/quixote/form/widget.py lib/%%PYTHON_VERSION%%/site-packages/quixote/form/widget.pyc lib/%%PYTHON_VERSION%%/site-packages/quixote/form/widget.pyo |