aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-qp
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-11-15 22:14:55 +0800
committermiwi <miwi@FreeBSD.org>2006-11-15 22:14:55 +0800
commitc9e40d5956f6bb3cc2a5aeeabf42e267723fbf9a (patch)
treef083f4ee5f5a5f3b54f691c5a70fda680657ca1b /www/py-qp
parent2ed8bf49e3fa4e776ba009f870c064fc01c6907e (diff)
downloadfreebsd-ports-gnome-c9e40d5956f6bb3cc2a5aeeabf42e267723fbf9a.tar.gz
freebsd-ports-gnome-c9e40d5956f6bb3cc2a5aeeabf42e267723fbf9a.tar.zst
freebsd-ports-gnome-c9e40d5956f6bb3cc2a5aeeabf42e267723fbf9a.zip
This is QP, a package for defining and running multiple web
applications based on Durus for persistence, standard persistent Session and User classes, easy interactive database sessions, qpy for assembling html, and Quixote2-style forms and path traversal. QP makes it easier than ever to use these tools together. WWW: http://www.mems-exchange.org/software/qp/ PR: ports/105503 Submitted by: Dryice Liu <dryice at dryice.name>
Diffstat (limited to 'www/py-qp')
-rw-r--r--www/py-qp/Makefile45
-rw-r--r--www/py-qp/distinfo3
-rw-r--r--www/py-qp/files/pkg-message.in14
-rw-r--r--www/py-qp/pkg-descr7
-rw-r--r--www/py-qp/pkg-plist134
5 files changed, 203 insertions, 0 deletions
diff --git a/www/py-qp/Makefile b/www/py-qp/Makefile
new file mode 100644
index 000000000000..26d3b5f32399
--- /dev/null
+++ b/www/py-qp/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: py-qp
+# Date created: 14 Nov 2006
+# Whom: Dryice Liu <dryice@dryice.name>
+#
+# $FreeBSD$
+#
+
+PORTNAME= qp
+PORTVERSION= 1.8
+CATEGORIES= www python
+MASTER_SITES= http://www.mems-exchange.org/software/qp/ \
+ http://dryice.name/computer/FreeBSD/distfiles/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= dryice@dryice.name
+COMMENT= A python web framework to use qpy and durus together
+
+BUILD_DEPENDS+= qpcheck.py:${PORTSDIR}/www/py-qpy
+BUILD_DEPENDS+= durus:${PORTSDIR}/devel/py-durus
+BUILD_DEPENDS+= pythoni:${PORTSDIR}/devel/py-repl
+RUN_DEPENDS+= ${BUILD_DEPENDS}
+
+USE_PYTHON= 2.4+
+USE_PYDISTUTILS= yes
+SUB_FILES+= pkg-message
+SUB_LIST+= PYTHON_VERSION=${PYTHON_VERSION}
+
+.include <bsd.port.pre.mk>
+
+post-install:
+ @ PYTHONPATH=${PREFIX}/lib/${PYTHON_VERSION}/site-packages \
+ ${PYTHON_CMD} -c "import qp.fill"; \
+ cd ${WRKSRC}; \
+ ${PYTHON_CMD} setup.py install_demo_sites ${EXAMPLESDIR}
+
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${DOCSDIR}
+.for docfile in CHANGES.txt LICENSE.txt README.txt
+ @ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
+.endfor
+.endif
+
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/www/py-qp/distinfo b/www/py-qp/distinfo
new file mode 100644
index 000000000000..58096235f552
--- /dev/null
+++ b/www/py-qp/distinfo
@@ -0,0 +1,3 @@
+MD5 (qp-1.8.tar.gz) = 6181c2335068ac5ae3801c9c30715c84
+SHA256 (qp-1.8.tar.gz) = 8b72e14d905e96442bcba4f60b36195dd404d5d1db70cf1671efb32ad25df766
+SIZE (qp-1.8.tar.gz) = 84397
diff --git a/www/py-qp/files/pkg-message.in b/www/py-qp/files/pkg-message.in
new file mode 100644
index 000000000000..3f47bf6b1dbe
--- /dev/null
+++ b/www/py-qp/files/pkg-message.in
@@ -0,0 +1,14 @@
+******************************************************************
+To run the demo:
+
+1. copy %%EXAMPLESDIR%% to ~/qp_sites
+2. link %%PREFIX%%/lib/%%PYTHON_VERSION%%/site-packages/qp/sites to
+ ~/qp_sites
+3. run "qp start"
+4. point you browser to
+ http://localhost:8000
+ http://localhost:8001
+ http://localhost:8002
+
+Read %%DOCSDIR%%/README.txt for more info.
+******************************************************************
diff --git a/www/py-qp/pkg-descr b/www/py-qp/pkg-descr
new file mode 100644
index 000000000000..8369fd0f5b44
--- /dev/null
+++ b/www/py-qp/pkg-descr
@@ -0,0 +1,7 @@
+This is QP, a package for defining and running multiple web
+applications based on Durus for persistence, standard persistent
+Session and User classes, easy interactive database sessions, qpy for
+assembling html, and Quixote2-style forms and path traversal. QP makes
+it easier than ever to use these tools together.
+
+WWW: http://www.mems-exchange.org/software/qp/
diff --git a/www/py-qp/pkg-plist b/www/py-qp/pkg-plist
new file mode 100644
index 000000000000..bf4146f9816c
--- /dev/null
+++ b/www/py-qp/pkg-plist
@@ -0,0 +1,134 @@
+bin/qp
+bin/qpcensus.py
+%%PYTHON_SITELIBDIR%%/qp/__init__.py
+%%PYTHON_SITELIBDIR%%/qp/__init__.pyc
+%%PYTHON_SITELIBDIR%%/qp/__init__.pyo
+%%PYTHON_SITELIBDIR%%/qp/fill/__init__.py
+%%PYTHON_SITELIBDIR%%/qp/fill/__init__.pyc
+%%PYTHON_SITELIBDIR%%/qp/fill/__init__.pyo
+%%PYTHON_SITELIBDIR%%/qp/fill/css.py
+%%PYTHON_SITELIBDIR%%/qp/fill/css.pyc
+%%PYTHON_SITELIBDIR%%/qp/fill/css.pyo
+%%PYTHON_SITELIBDIR%%/qp/fill/directory.py
+%%PYTHON_SITELIBDIR%%/qp/fill/directory.pyc
+%%PYTHON_SITELIBDIR%%/qp/fill/directory.pyo
+%%PYTHON_SITELIBDIR%%/qp/fill/durus_directory.pyc
+%%PYTHON_SITELIBDIR%%/qp/fill/durus_directory.qpy
+%%PYTHON_SITELIBDIR%%/qp/fill/form.pyc
+%%PYTHON_SITELIBDIR%%/qp/fill/form.qpy
+%%PYTHON_SITELIBDIR%%/qp/fill/html.pyc
+%%PYTHON_SITELIBDIR%%/qp/fill/html.qpy
+%%PYTHON_SITELIBDIR%%/qp/fill/static.pyc
+%%PYTHON_SITELIBDIR%%/qp/fill/static.qpy
+%%PYTHON_SITELIBDIR%%/qp/fill/widget.pyc
+%%PYTHON_SITELIBDIR%%/qp/fill/widget.qpy
+%%PYTHON_SITELIBDIR%%/qp/http/__init__.py
+%%PYTHON_SITELIBDIR%%/qp/http/__init__.pyc
+%%PYTHON_SITELIBDIR%%/qp/http/__init__.pyo
+%%PYTHON_SITELIBDIR%%/qp/http/request.py
+%%PYTHON_SITELIBDIR%%/qp/http/request.pyc
+%%PYTHON_SITELIBDIR%%/qp/http/request.pyo
+%%PYTHON_SITELIBDIR%%/qp/http/response.py
+%%PYTHON_SITELIBDIR%%/qp/http/response.pyc
+%%PYTHON_SITELIBDIR%%/qp/http/response.pyo
+%%PYTHON_SITELIBDIR%%/qp/hub/__init__.py
+%%PYTHON_SITELIBDIR%%/qp/hub/__init__.pyc
+%%PYTHON_SITELIBDIR%%/qp/hub/__init__.pyo
+%%PYTHON_SITELIBDIR%%/qp/hub/dispatcher.py
+%%PYTHON_SITELIBDIR%%/qp/hub/dispatcher.pyc
+%%PYTHON_SITELIBDIR%%/qp/hub/dispatcher.pyo
+%%PYTHON_SITELIBDIR%%/qp/hub/passfd.so
+%%PYTHON_SITELIBDIR%%/qp/hub/scgi_util.py
+%%PYTHON_SITELIBDIR%%/qp/hub/scgi_util.pyc
+%%PYTHON_SITELIBDIR%%/qp/hub/scgi_util.pyo
+%%PYTHON_SITELIBDIR%%/qp/hub/test_passfd.py
+%%PYTHON_SITELIBDIR%%/qp/hub/test_passfd.pyc
+%%PYTHON_SITELIBDIR%%/qp/hub/test_passfd.pyo
+%%PYTHON_SITELIBDIR%%/qp/hub/web.py
+%%PYTHON_SITELIBDIR%%/qp/hub/web.pyc
+%%PYTHON_SITELIBDIR%%/qp/hub/web.pyo
+%%PYTHON_SITELIBDIR%%/qp/lib/__init__.py
+%%PYTHON_SITELIBDIR%%/qp/lib/__init__.pyc
+%%PYTHON_SITELIBDIR%%/qp/lib/__init__.pyo
+%%PYTHON_SITELIBDIR%%/qp/lib/delegation.py
+%%PYTHON_SITELIBDIR%%/qp/lib/delegation.pyc
+%%PYTHON_SITELIBDIR%%/qp/lib/delegation.pyo
+%%PYTHON_SITELIBDIR%%/qp/lib/keep.py
+%%PYTHON_SITELIBDIR%%/qp/lib/keep.pyc
+%%PYTHON_SITELIBDIR%%/qp/lib/keep.pyo
+%%PYTHON_SITELIBDIR%%/qp/lib/profiler.py
+%%PYTHON_SITELIBDIR%%/qp/lib/profiler.pyc
+%%PYTHON_SITELIBDIR%%/qp/lib/profiler.pyo
+%%PYTHON_SITELIBDIR%%/qp/lib/site.py
+%%PYTHON_SITELIBDIR%%/qp/lib/site.pyc
+%%PYTHON_SITELIBDIR%%/qp/lib/site.pyo
+%%PYTHON_SITELIBDIR%%/qp/lib/spec.py
+%%PYTHON_SITELIBDIR%%/qp/lib/spec.pyc
+%%PYTHON_SITELIBDIR%%/qp/lib/spec.pyo
+%%PYTHON_SITELIBDIR%%/qp/lib/util.py
+%%PYTHON_SITELIBDIR%%/qp/lib/util.pyc
+%%PYTHON_SITELIBDIR%%/qp/lib/util.pyo
+%%PYTHON_SITELIBDIR%%/qp/mail/__init__.py
+%%PYTHON_SITELIBDIR%%/qp/mail/__init__.pyc
+%%PYTHON_SITELIBDIR%%/qp/mail/__init__.pyo
+%%PYTHON_SITELIBDIR%%/qp/mail/rfc822_mailbox.py
+%%PYTHON_SITELIBDIR%%/qp/mail/rfc822_mailbox.pyc
+%%PYTHON_SITELIBDIR%%/qp/mail/rfc822_mailbox.pyo
+%%PYTHON_SITELIBDIR%%/qp/mail/send.py
+%%PYTHON_SITELIBDIR%%/qp/mail/send.pyc
+%%PYTHON_SITELIBDIR%%/qp/mail/send.pyo
+%%PYTHON_SITELIBDIR%%/qp/pub/__init__.py
+%%PYTHON_SITELIBDIR%%/qp/pub/__init__.pyc
+%%PYTHON_SITELIBDIR%%/qp/pub/__init__.pyo
+%%PYTHON_SITELIBDIR%%/qp/pub/common.py
+%%PYTHON_SITELIBDIR%%/qp/pub/common.pyc
+%%PYTHON_SITELIBDIR%%/qp/pub/common.pyo
+%%PYTHON_SITELIBDIR%%/qp/pub/hit.py
+%%PYTHON_SITELIBDIR%%/qp/pub/hit.pyc
+%%PYTHON_SITELIBDIR%%/qp/pub/hit.pyo
+%%PYTHON_SITELIBDIR%%/qp/pub/publish.py
+%%PYTHON_SITELIBDIR%%/qp/pub/publish.pyc
+%%PYTHON_SITELIBDIR%%/qp/pub/publish.pyo
+%%PYTHON_SITELIBDIR%%/qp/pub/session.py
+%%PYTHON_SITELIBDIR%%/qp/pub/session.pyc
+%%PYTHON_SITELIBDIR%%/qp/pub/session.pyo
+%%PYTHON_SITELIBDIR%%/qp/pub/user.py
+%%PYTHON_SITELIBDIR%%/qp/pub/user.pyc
+%%PYTHON_SITELIBDIR%%/qp/pub/user.pyo
+%%PYTHON_SITELIBDIR%%/qp/setup.py
+%%PYTHON_SITELIBDIR%%/qp/setup.pyc
+%%PYTHON_SITELIBDIR%%/qp/setup.pyo
+%%EXAMPLESDIR%%/__init__.py
+%%EXAMPLESDIR%%/echo/slash.qpy
+%%EXAMPLESDIR%%/echo/__init__.py
+%%EXAMPLESDIR%%/echo/var/here.txt
+%%EXAMPLESDIR%%/hello/slash.py
+%%EXAMPLESDIR%%/hello/__init__.py
+%%EXAMPLESDIR%%/hello/var/here.txt
+%%EXAMPLESDIR%%/proto/forms.qpy
+%%EXAMPLESDIR%%/proto/qwiki.qpy
+%%EXAMPLESDIR%%/proto/slash.qpy
+%%EXAMPLESDIR%%/proto/__init__.py
+%%EXAMPLESDIR%%/proto/static/all.css
+%%EXAMPLESDIR%%/proto/static/favicon.png
+%%EXAMPLESDIR%%/proto/static/proto.js
+%%EXAMPLESDIR%%/proto/var/here.txt
+@dirrm %%EXAMPLESDIR%%/echo/var
+@dirrm %%EXAMPLESDIR%%/echo
+@dirrm %%EXAMPLESDIR%%/hello/var
+@dirrm %%EXAMPLESDIR%%/hello
+@dirrm %%EXAMPLESDIR%%/proto/static
+@dirrm %%EXAMPLESDIR%%/proto/var
+@dirrm %%EXAMPLESDIR%%/proto
+@dirrm %%EXAMPLESDIR%%
+@dirrm %%PYTHON_SITELIBDIR%%/qp/pub
+@dirrm %%PYTHON_SITELIBDIR%%/qp/mail
+@dirrm %%PYTHON_SITELIBDIR%%/qp/lib
+@dirrm %%PYTHON_SITELIBDIR%%/qp/hub
+@dirrm %%PYTHON_SITELIBDIR%%/qp/http
+@dirrm %%PYTHON_SITELIBDIR%%/qp/fill
+@dirrm %%PYTHON_SITELIBDIR%%/qp
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
+%%PORTDOCS%%%%DOCSDIR%%/README.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%