diff options
author | wjv <wjv@FreeBSD.org> | 2001-10-22 23:27:13 +0800 |
---|---|---|
committer | wjv <wjv@FreeBSD.org> | 2001-10-22 23:27:13 +0800 |
commit | bc63b896c6566d0527ecc14806b3414da715bc99 (patch) | |
tree | 6a609f7957185c6c0f625878527dce6129df707e /www/quixote/Makefile | |
parent | 4c7c2891388719f0e1359406bc3c1df555190116 (diff) | |
download | freebsd-ports-gnome-bc63b896c6566d0527ecc14806b3414da715bc99.tar.gz freebsd-ports-gnome-bc63b896c6566d0527ecc14806b3414da715bc99.tar.zst freebsd-ports-gnome-bc63b896c6566d0527ecc14806b3414da715bc99.zip |
- After installation, compile the two installed template (.ptl) files (to
.ptlc). This ensures clean deinstallation in the (hopefully unusual)
instance where a Quixote package was run by root.
- Bump PORTREVISION
Diffstat (limited to 'www/quixote/Makefile')
-rw-r--r-- | www/quixote/Makefile | 14 |
1 files changed, 10 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 |