import py-quizote

Quixote is a framework for developing Web applications in Python.
Quixote is based on a simple, flexible design, making it possible to
write applications quickly and to benefit from the wide range of
available third-party Python modules.  Deployed appropriately, Quixote
has excellent performance that allows you to put Quixote-based
applications into large-scale production use.

from Will Maier

ok merdely
This commit is contained in:
okan 2008-01-15 02:00:56 +00:00
parent d7569cb59c
commit d093d22c13
8 changed files with 218 additions and 0 deletions

37
www/py-quixote/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/01/15 02:00:56 okan Exp $
COMMENT= simple Python framework for web-based applications
V= 2.5
DISTNAME= Quixote-$V
PKGNAME= py-quixote-$V
CATEGORIES= www
HOMEPAGE= http://www.quixote.ca/
MASTER_SITES= ${HOMEPAGE}releases/
MAINTAINER= Will Maier <willmaier@ml1.net>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/python
MODPY_SETUPTOOLS= Yes
REGRESS_DEPENDS= ::www/twill \
::devel/py-nose
# Clean up root-owned files.
post-install:
rm -fr ${WRKSRC}/Quixote.egg-info
rm -fr ${WRKSRC}/Quixote-$V.egg-info
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-quixote
.for i in LICENSE.txt doc/*txt
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/py-quixote
.endfor
.include <bsd.port.mk>

5
www/py-quixote/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (Quixote-2.5.tar.gz) = pWBScMK1OWTS6QyGGCLoyg==
RMD160 (Quixote-2.5.tar.gz) = Y2XhOdD9sqTzjtBqals5mCXkgOk=
SHA1 (Quixote-2.5.tar.gz) = SL37kcJtAfHn4qoql5H81n1lEEo=
SHA256 (Quixote-2.5.tar.gz) = A87cJfP17oXMPaY8TramlOBun8QAZ3l3SNP7QAX5ntE=
SIZE (Quixote-2.5.tar.gz) = 176192

View File

@ -0,0 +1,27 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2008/01/15 02:00:56 okan Exp $
--- setup.py.orig Sun Jan 13 13:22:59 2008
+++ setup.py Sun Jan 13 13:23:04 2008
@@ -1,9 +1,9 @@
#!/usr/bin/env python
-#try:
-# from setuptools import setup
-#except ImportError:
-# print '(WARNING: importing distutils, not setuptools!)'
-# from distutils.core import setup
+try:
+ from setuptools import setup
+except ImportError:
+ print '(WARNING: importing distutils, not setuptools!)'
+ from distutils.core import setup
# Setup script for Quixote
@@ -49,7 +49,7 @@ kw = {'name': "Quixote",
'cmdclass': {'build_py': qx_build_py},
-# 'test_suite' : 'nose.collector'
+ 'test_suite' : 'nose.collector'
}

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-tests_qx_testlib_py,v 1.1.1.1 2008/01/15 02:00:56 okan Exp $
--- tests/qx_testlib.py.orig Mon Jan 14 08:20:48 2008
+++ tests/qx_testlib.py Mon Jan 14 08:21:20 2008
@@ -56,7 +56,8 @@ def run_server(create_fn, PORT=None):
print 'STARTING:', sys.executable, 'tests/qx_testserver.py', os.getcwd()
process = subprocess.Popen([sys.executable, '-u', 'qx_testserver.py'],
stderr=subprocess.STDOUT,
- stdout=outfd)
+ stdout=outfd,
+ env={'PYTHONPATH': '../'})
time.sleep(1)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-tests_qx_testserver_py,v 1.1.1.1 2008/01/15 02:00:56 okan Exp $
--- tests/qx_testserver.py.orig Sun Jan 13 13:23:51 2008
+++ tests/qx_testserver.py Sun Jan 13 13:23:53 2008
@@ -4,7 +4,7 @@ A simple test server for testing Quixote functionality
import os
import quixote
-assert quixote.__version__ == '2.5a1'
+#assert quixote.__version__ == '2.5a1'
from quixote.publish import Publisher
from quixote.directory import Directory

6
www/py-quixote/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
Quixote is a framework for developing Web applications in Python.
Quixote is based on a simple, flexible design, making it possible to
write applications quickly and to benefit from the wide range of
available third-party Python modules. Deployed appropriately, Quixote
has excellent performance that allows you to put Quixote-based
applications into large-scale production use.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/01/15 02:00:56 okan Exp $
lib/python${MODPY_VERSION}/site-packages/quixote/html/_c_htmltext.so
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/cimport.so

115
www/py-quixote/pkg/PLIST Normal file
View File

@ -0,0 +1,115 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/01/15 02:00:56 okan Exp $
%%SHARED%%
lib/python${MODPY_VERSION}/site-packages/Quixote-${MODPY_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/Quixote-${MODPY_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/Quixote-${MODPY_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/Quixote-${MODPY_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/Quixote-${MODPY_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/quixote/
lib/python${MODPY_VERSION}/site-packages/quixote/__init__.py
lib/python${MODPY_VERSION}/site-packages/quixote/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/config.py
lib/python${MODPY_VERSION}/site-packages/quixote/config.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/demo/
lib/python${MODPY_VERSION}/site-packages/quixote/demo/__init__.py
lib/python${MODPY_VERSION}/site-packages/quixote/demo/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/demo/altdemo.py
lib/python${MODPY_VERSION}/site-packages/quixote/demo/altdemo.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/demo/extras.ptl
lib/python${MODPY_VERSION}/site-packages/quixote/demo/forms.ptl
lib/python${MODPY_VERSION}/site-packages/quixote/demo/integers.ptl
lib/python${MODPY_VERSION}/site-packages/quixote/demo/mini_demo.py
lib/python${MODPY_VERSION}/site-packages/quixote/demo/mini_demo.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/demo/root.ptl
lib/python${MODPY_VERSION}/site-packages/quixote/directory.py
lib/python${MODPY_VERSION}/site-packages/quixote/directory.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/errors.py
lib/python${MODPY_VERSION}/site-packages/quixote/errors.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/form/
lib/python${MODPY_VERSION}/site-packages/quixote/form/__init__.py
lib/python${MODPY_VERSION}/site-packages/quixote/form/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/form/compatibility.py
lib/python${MODPY_VERSION}/site-packages/quixote/form/compatibility.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/form/css.py
lib/python${MODPY_VERSION}/site-packages/quixote/form/css.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/form/form.py
lib/python${MODPY_VERSION}/site-packages/quixote/form/form.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/form/widget.py
lib/python${MODPY_VERSION}/site-packages/quixote/form/widget.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/html/
lib/python${MODPY_VERSION}/site-packages/quixote/html/__init__.py
lib/python${MODPY_VERSION}/site-packages/quixote/html/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/html/_py_htmltext.py
lib/python${MODPY_VERSION}/site-packages/quixote/html/_py_htmltext.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/html/qpy_templateio.py
lib/python${MODPY_VERSION}/site-packages/quixote/html/qpy_templateio.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/http_request.py
lib/python${MODPY_VERSION}/site-packages/quixote/http_request.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/http_response.py
lib/python${MODPY_VERSION}/site-packages/quixote/http_response.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/logger.py
lib/python${MODPY_VERSION}/site-packages/quixote/logger.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/__init__.py
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/install.py
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/install.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/ptl_compile.py
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/ptl_compile.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/ptl_import.py
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/ptl_import.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/ptlrun.py
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/ptlrun.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/qx_distutils.py
lib/python${MODPY_VERSION}/site-packages/quixote/ptl/qx_distutils.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/publish.py
lib/python${MODPY_VERSION}/site-packages/quixote/publish.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/publish1.py
lib/python${MODPY_VERSION}/site-packages/quixote/publish1.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/sendmail.py
lib/python${MODPY_VERSION}/site-packages/quixote/sendmail.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/server/
lib/python${MODPY_VERSION}/site-packages/quixote/server/__init__.py
lib/python${MODPY_VERSION}/site-packages/quixote/server/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/server/_fcgi.py
lib/python${MODPY_VERSION}/site-packages/quixote/server/_fcgi.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/server/cgi_server.py
lib/python${MODPY_VERSION}/site-packages/quixote/server/cgi_server.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/server/fastcgi_server.py
lib/python${MODPY_VERSION}/site-packages/quixote/server/fastcgi_server.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/server/medusa_server.py
lib/python${MODPY_VERSION}/site-packages/quixote/server/medusa_server.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/server/mod_python_handler.py
lib/python${MODPY_VERSION}/site-packages/quixote/server/mod_python_handler.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/server/scgi_server.py
lib/python${MODPY_VERSION}/site-packages/quixote/server/scgi_server.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/server/simple_server.py
lib/python${MODPY_VERSION}/site-packages/quixote/server/simple_server.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/server/twisted_server.py
lib/python${MODPY_VERSION}/site-packages/quixote/server/twisted_server.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/server/util.py
lib/python${MODPY_VERSION}/site-packages/quixote/server/util.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/session.py
lib/python${MODPY_VERSION}/site-packages/quixote/session.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/util.py
lib/python${MODPY_VERSION}/site-packages/quixote/util.pyc
lib/python${MODPY_VERSION}/site-packages/quixote/wsgi.py
lib/python${MODPY_VERSION}/site-packages/quixote/wsgi.pyc
share/doc/py-quixote/
share/doc/py-quixote/CHANGES_24.txt
share/doc/py-quixote/INSTALL.txt
share/doc/py-quixote/LICENSE.txt
share/doc/py-quixote/LICENSE_24.txt
share/doc/py-quixote/PTL.txt
share/doc/py-quixote/demo.txt
share/doc/py-quixote/form2conversion.txt
share/doc/py-quixote/multi-threaded.txt
share/doc/py-quixote/programming.txt
share/doc/py-quixote/session-mgmt.txt
share/doc/py-quixote/static-files.txt
share/doc/py-quixote/upgrading.txt
share/doc/py-quixote/web-server.txt
share/doc/py-quixote/web-services.txt
share/doc/py-quixote/widgets.txt
share/doc/py-quixote/win32.txt
share/doc/py-quixote/wsgi.txt