diff options
author | Johann Visagie <wjv@FreeBSD.org> | 2001-09-18 10:51:37 +0000 |
---|---|---|
committer | Johann Visagie <wjv@FreeBSD.org> | 2001-09-18 10:51:37 +0000 |
commit | 66d13f418fc8a3dec54584ded154748903d1ca41 (patch) | |
tree | 30633d67565b1cccb28a1e6ad24b81c5084f0f68 /www/quixote | |
parent | Add support for Socket6-0.11. (diff) |
Add quixote 0.3, a framework for developing web applications in Python.
Notes
Notes:
svn path=/head/; revision=47950
Diffstat (limited to 'www/quixote')
-rw-r--r-- | www/quixote/Makefile | 39 | ||||
-rw-r--r-- | www/quixote/distinfo | 1 | ||||
-rw-r--r-- | www/quixote/pkg-comment | 1 | ||||
-rw-r--r-- | www/quixote/pkg-descr | 24 | ||||
-rw-r--r-- | www/quixote/pkg-plist | 84 | ||||
-rw-r--r-- | www/quixote/pkg-req | 17 |
6 files changed, 166 insertions, 0 deletions
diff --git a/www/quixote/Makefile b/www/quixote/Makefile new file mode 100644 index 000000000000..54f41386e862 --- /dev/null +++ b/www/quixote/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: quixote +# Date created: 18 September 2001 +# Whom: Johann Visagie <wjv@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= quixote +PORTVERSION= 0.3 +CATEGORIES= www python +MASTER_SITES= http://www.mems-exchange.org/software/files/quixote/ +DISTNAME= Quixote-${PORTVERSION} + +MAINTAINER= wjv@FreeBSD.org + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/compiler/__init__.py:${PORTSDIR}/lang/py-compiler + +USE_PYTHON= yes + +do-build: + @ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \ + setup.py build + +pre-install: + @ ${SH} ${PKGREQ} INSTALL + +do-install: + @ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \ + setup.py install -c -O1 --prefix=${PREFIX} + +post-install: +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${DOCSDIR} +.for docfile in CHANGES LICENSE README TODO doc/ACKS doc/*.txt + @ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/www/quixote/distinfo b/www/quixote/distinfo new file mode 100644 index 000000000000..fb1114a31fdf --- /dev/null +++ b/www/quixote/distinfo @@ -0,0 +1 @@ +MD5 (Quixote-0.3.tar.gz) = 7a2c052e3bfb2aec00e49144633a8645 diff --git a/www/quixote/pkg-comment b/www/quixote/pkg-comment new file mode 100644 index 000000000000..2863ab400548 --- /dev/null +++ b/www/quixote/pkg-comment @@ -0,0 +1 @@ +A framework for developing web applications in Python diff --git a/www/quixote/pkg-descr b/www/quixote/pkg-descr new file mode 100644 index 000000000000..af7b7c2d2cf2 --- /dev/null +++ b/www/quixote/pkg-descr @@ -0,0 +1,24 @@ +Quixote is yet another framework for developing Web applications in +Python. The design goals were: + +- To make the templating language as similar to Python in semantics as + possible. The aim is to make as many of the skills and structural + techniques used in writing regular Python code applicable to Web + applications built using Quixote. +- To allow easy development of Web applications where the accent is more on + complicated programming logic than complicated templating. +- The entire system should be implementable in a week or two. +- No magical behaviour. When it's not obvious what to do in a certain case, + Quixote refuses to guess. + +Quixote works by using a Python package to store all the code and HTML for a +Web-based application. There's a simple framework for publishing code and +objects on the Web, and the publishing loop can be customized by subclassing +the Publisher class. You can think of it as a toolkit to build your own +smaller, simpler version of Zope, specialized for your application. + +Author: A.M. Kuchling <akuchlin@mems-exchange.org> +WWW: http://www.mems-exchange.org/software/quixote/ +See also: http://www.amk.ca/python/writing/mx-architecture/ + +-- Johann Visagie <wjv@FreeBSD.org> diff --git a/www/quixote/pkg-plist b/www/quixote/pkg-plist new file mode 100644 index 000000000000..0082c9ecd94f --- /dev/null +++ b/www/quixote/pkg-plist @@ -0,0 +1,84 @@ +%%PORTDOCS%%share/doc/quixote/ACKS +%%PORTDOCS%%share/doc/quixote/CHANGES +%%PORTDOCS%%share/doc/quixote/LICENSE +%%PORTDOCS%%share/doc/quixote/PTL.txt +%%PORTDOCS%%share/doc/quixote/README +%%PORTDOCS%%share/doc/quixote/TODO +%%PORTDOCS%%share/doc/quixote/ZPL.txt +%%PORTDOCS%%share/doc/quixote/programming.txt +lib/%%PYTHON_VERSION%%/site-packages/quixote/TemplateIO.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/TemplateIO.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/TemplateIO.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/__init__.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/compile_template.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/compile_template.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/compile_template.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/config.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/config.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/config.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/demo/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/demo/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/demo/__init__.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/dumpptlc.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/dumpptlc.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/dumpptlc.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/errors.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/errors.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/errors.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/imphooks.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/imphooks.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/imphooks.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/init.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/init.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/init.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/myconfig.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/publish.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/publish.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/publish.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/session.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/session.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/session.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/__init__.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/code_coverage.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/code_coverage.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/code_coverage.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/indented_file.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/indented_file.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/indented_file.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/run_tests.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/run_tests.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/run_tests.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/unittest.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/unittest.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/test/unittest.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/util/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/util/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/util/__init__.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/util/fcgi.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/util/fcgi.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/util/fcgi.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/BaseRequest.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/BaseRequest.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/BaseRequest.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/BaseResponse.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/BaseResponse.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/BaseResponse.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/HTTPRequest.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/HTTPRequest.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/HTTPRequest.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/HTTPResponse.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/HTTPResponse.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/HTTPResponse.pyo +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/quixote/zope/__init__.pyo +@dirrm lib/%%PYTHON_VERSION%%/site-packages/quixote/zope +@dirrm lib/%%PYTHON_VERSION%%/site-packages/quixote/util +@dirrm lib/%%PYTHON_VERSION%%/site-packages/quixote/test +@dirrm lib/%%PYTHON_VERSION%%/site-packages/quixote/demo +@dirrm lib/%%PYTHON_VERSION%%/site-packages/quixote +%%PORTDOCS%%@dirrm share/doc/quixote diff --git a/www/quixote/pkg-req b/www/quixote/pkg-req new file mode 100644 index 000000000000..f714eed3b2b3 --- /dev/null +++ b/www/quixote/pkg-req @@ -0,0 +1,17 @@ +#!/bin/sh + +PATH=$PATH:/usr/local/bin + +if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then + PYTHON_GT=`python -c 'import string, sys; \ + print string.split(sys.version)[0] >= "2.0"'` + if [ "x${PYTHON_GT}" = "x1" ]; then + exit 0 + else + echo "-----------------------------------------------------------" + echo "Quixote requires Python version 2.0 or greater -" + echo " please update your Python installation before proceeding." + echo "-----------------------------------------------------------" + exit 1 + fi +fi |