aboutsummaryrefslogtreecommitdiff
path: root/www/quixote
diff options
context:
space:
mode:
authorJohann Visagie <wjv@FreeBSD.org>2001-10-22 15:27:13 +0000
committerJohann Visagie <wjv@FreeBSD.org>2001-10-22 15:27:13 +0000
commitb99c7138ac1b7fee6e57ea58176212d3e8508808 (patch)
tree1d7f971ef37fd7405c36353eca0ed283d0687149 /www/quixote
parent78124b0bb431a0967d7b3eec93c704672e592b90 (diff)
downloadports-b99c7138ac1b7fee6e57ea58176212d3e8508808.tar.gz
ports-b99c7138ac1b7fee6e57ea58176212d3e8508808.zip
Notes
Diffstat (limited to 'www/quixote')
-rw-r--r--www/quixote/Makefile14
-rw-r--r--www/quixote/pkg-plist2
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