2001-09-18 10:51:37 +00:00
|
|
|
# New ports collection makefile for: quixote
|
|
|
|
# Date created: 18 September 2001
|
|
|
|
# Whom: Johann Visagie <wjv@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= quixote
|
2002-04-24 07:39:23 +00:00
|
|
|
PORTVERSION= 0.4.7
|
2001-09-18 10:51:37 +00:00
|
|
|
CATEGORIES= www python
|
|
|
|
MASTER_SITES= http://www.mems-exchange.org/software/files/quixote/
|
|
|
|
DISTNAME= Quixote-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= wjv@FreeBSD.org
|
|
|
|
|
2001-09-18 13:27:46 +00:00
|
|
|
BUILD_DEPENDS= ${PYDISTUTILS}
|
2001-09-18 10:51:37 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
2001-10-22 15:27:13 +00:00
|
|
|
PYTHON_SETUP= ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py
|
2002-01-09 14:49:55 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PYTHON_REL} < 220
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/compiler/__init__.py:${PORTSDIR}/lang/py-compiler
|
|
|
|
.endif
|
2001-09-18 10:51:37 +00:00
|
|
|
|
|
|
|
do-build:
|
2001-10-22 15:27:13 +00:00
|
|
|
@ cd ${WRKSRC} && ${PYTHON_SETUP} build
|
2001-09-18 10:51:37 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@ ${SH} ${PKGREQ} INSTALL
|
|
|
|
|
|
|
|
do-install:
|
2001-10-22 15:27:13 +00:00
|
|
|
@ cd ${WRKSRC} && ${PYTHON_SETUP} install -c -O1 --prefix=${PREFIX}
|
2001-09-18 10:51:37 +00:00
|
|
|
|
|
|
|
post-install:
|
2001-11-14 09:30:05 +00:00
|
|
|
@ PYTHONPATH=${PREFIX}/lib/${PYTHON_VERSION}/site-packages \
|
|
|
|
${PYTHON_CMD} ${SCRIPTDIR}/compile_ptl.py \
|
2001-10-22 15:27:13 +00:00
|
|
|
${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}
|
2001-09-18 10:51:37 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
2001-10-11 08:46:13 +00:00
|
|
|
.for docfile in ACKS CHANGES LICENSE README TODO doc/*.txt
|
2001-09-18 10:51:37 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2002-01-09 14:49:55 +00:00
|
|
|
.include <bsd.port.post.mk>
|