1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00

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>
This commit is contained in:
Martin Wilke 2006-11-15 14:14:55 +00:00
parent e31d414746
commit 70b6a81a0d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177315
6 changed files with 204 additions and 0 deletions

View File

@ -920,6 +920,7 @@
SUBDIR += py-openssl-proxy
SUBDIR += py-prewikka
SUBDIR += py-pullparser
SUBDIR += py-qp
SUBDIR += py-qpy
SUBDIR += py-scgi
SUBDIR += py-slimmer

45
www/py-qp/Makefile Normal file
View File

@ -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>

3
www/py-qp/distinfo Normal file
View File

@ -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

View File

@ -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.
******************************************************************

7
www/py-qp/pkg-descr Normal file
View File

@ -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/

134
www/py-qp/pkg-plist Normal file
View File

@ -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%%