From 5179554511bb519be1b9dac98356a66b1085f603 Mon Sep 17 00:00:00 2001 From: nivit Date: Mon, 22 Jan 2007 22:05:34 +0000 Subject: A pluggable command-line frontend, including commands to setup package file layouts. This is a pluggable command-line tool. It includes some built-in features; * Create file layouts for packages. For instance, paste create --template=basic_package MyPackage will create a setuptools-ready file layout. * Serving up web applications, with configuration based on paste.deploy. Author: Ian Bicking WWW: http://pythonpaste.org/script/ PR: ports/106759 Submitted by: Dryice Liu Approved by: alexbl (mentor, implicit) --- www/Makefile | 1 + www/py-pastescript/Makefile | 48 +++++++++++++ www/py-pastescript/distinfo | 3 + www/py-pastescript/files/pkg-deinstall.in | 17 +++++ www/py-pastescript/files/pkg-install.in | 16 +++++ www/py-pastescript/pkg-descr | 16 +++++ www/py-pastescript/pkg-plist | 114 ++++++++++++++++++++++++++++++ 7 files changed, 215 insertions(+) create mode 100644 www/py-pastescript/Makefile create mode 100644 www/py-pastescript/distinfo create mode 100644 www/py-pastescript/files/pkg-deinstall.in create mode 100644 www/py-pastescript/files/pkg-install.in create mode 100644 www/py-pastescript/pkg-descr create mode 100644 www/py-pastescript/pkg-plist diff --git a/www/Makefile b/www/Makefile index 87eb19e1b0ee..00b0c777b6f7 100644 --- a/www/Makefile +++ b/www/Makefile @@ -946,6 +946,7 @@ SUBDIR += py-openssl-proxy SUBDIR += py-paste SUBDIR += py-pastedeploy + SUBDIR += py-pastescript SUBDIR += py-prewikka SUBDIR += py-pullparser SUBDIR += py-qp diff --git a/www/py-pastescript/Makefile b/www/py-pastescript/Makefile new file mode 100644 index 000000000000..c40a1b4f9b5c --- /dev/null +++ b/www/py-pastescript/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: py-pastescript +# Date created: 15 December 2006 +# Whom: Dryice Liu +# +# $FreeBSD$ +# + +PORTNAME= PasteScript +PORTVERSION= 1.0 +CATEGORIES= www python +MASTER_SITES= http://cheeseshop.python.org/packages/source/P/PasteScript/ \ + http://dryice.name/computer/FreeBSD/distfiles/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dryice@FreeBSD.org +COMMENT= A pluggable command-line frontend + +BUILD_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools +RUN_DEPENDS= ${BUILD_DEPENDS} +RUN_DEPENDS+= cheetah:${PORTSDIR}/devel/py-cheetah \ + ${PYTHON_SITELIBDIR}/${PYFLUP_EGG}/flup/__init__.py:${PORTSDIR}/www/py-flup \ + ${PYTHON_SITELIBDIR}/${PYPASTE_EGG}/paste/__init__.py:${PORTSDIR}/www/py-paste \ + ${PYTHON_SITELIBDIR}/${PYPASTEDEPLOY_EGG}/paste/deploy/__init__.py:${PORTSDIR}/www/py-pastedeploy \ + ${PYTHON_SITELIBDIR}/${PYWSGIUTILS_EGG}:${PORTSDIR}/devel/py-wsgiutils \ + ${PYTHON_SITELIBDIR}/twisted/plugins/twisted_web2.py:${PORTSDIR}/www/py-twistedWeb2 + +# due to devel/py-cheetah +NO_PACKAGE= no, not yet + +USE_PYTHON= 2.3+ +USE_PYDISTUTILS= yes + +SUB_FILES+= pkg-deinstall pkg-install +SUB_LIST+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \ + EGG="${PORTNAME}==${PORTVERSION}" + +PLIST_SUB= PYPASTESCRIPT_EGG=${PYPASTESCRIPT_EGG} + +PYPASTESCRIPT_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg + +.include + +PYFLUP_EGG!= ${MAKE} -f ${PORTSDIR}/www/py-flup/Makefile -V PYFLUP_EGG +PYPASTE_EGG!= ${MAKE} -f ${PORTSDIR}/www/py-paste/Makefile -V PYPASTE_EGG +PYPASTEDEPLOY_EGG!= ${MAKE} -f ${PORTSDIR}/www/py-pastedeploy/Makefile -V PYPASTEDEPLOY_EGG +PYWSGIUTILS_EGG!= ${MAKE} -f ${PORTSDIR}/devel/py-wsgiutils/Makefile -V PYWSGIUTILS_EGG + +.include diff --git a/www/py-pastescript/distinfo b/www/py-pastescript/distinfo new file mode 100644 index 000000000000..921a85bf9827 --- /dev/null +++ b/www/py-pastescript/distinfo @@ -0,0 +1,3 @@ +MD5 (PasteScript-1.0.tar.gz) = 5ea4a56bc757685aaadddafbe0d64244 +SHA256 (PasteScript-1.0.tar.gz) = df88cfc18853a09dec6ed57d19c61d8b67a29d4bc7494eabe3f00ad1beb2af46 +SIZE (PasteScript-1.0.tar.gz) = 80048 diff --git a/www/py-pastescript/files/pkg-deinstall.in b/www/py-pastescript/files/pkg-deinstall.in new file mode 100644 index 000000000000..c2a4012d7b2e --- /dev/null +++ b/www/py-pastescript/files/pkg-deinstall.in @@ -0,0 +1,17 @@ +#!/bin/sh +# $FreeBSD$ +PKGNAME=$1 +# +case $2 in + DEINSTALL) + easy_install -q -N -m -x -S %%PYTHON_SITELIBDIR%% %%EGG%% + ;; + POST-DEINSTALL) + exit 0 + ;; + *) + echo "Unexpected Argument $2!!!" + exit 1 + ;; +esac +exit 0 diff --git a/www/py-pastescript/files/pkg-install.in b/www/py-pastescript/files/pkg-install.in new file mode 100644 index 000000000000..f0a2e7a6e3f7 --- /dev/null +++ b/www/py-pastescript/files/pkg-install.in @@ -0,0 +1,16 @@ +#!/bin/sh +# $FreeBSD$ +PKGNAME=$1 +# +case $2 in + POST-INSTALL) + easy_install -q -x -N -S %%PYTHON_SITELIBDIR%% %%EGG%% + ;; + PRE-INSTALL) + ;; + *) + echo "Unexpected Argument $2!!!" + exit 1 + ;; +esac +exit 0 diff --git a/www/py-pastescript/pkg-descr b/www/py-pastescript/pkg-descr new file mode 100644 index 000000000000..78fd3df0d241 --- /dev/null +++ b/www/py-pastescript/pkg-descr @@ -0,0 +1,16 @@ +A pluggable command-line frontend, including commands to setup package +file layouts. + +This is a pluggable command-line tool. + +It includes some built-in features; + +* Create file layouts for packages. For instance, paste create + --template=basic_package MyPackage will create a setuptools-ready + file layout. + +* Serving up web applications, with configuration based on + paste.deploy. + +Author: Ian Bicking +WWW: http://pythonpaste.org/script/ diff --git a/www/py-pastescript/pkg-plist b/www/py-pastescript/pkg-plist new file mode 100644 index 000000000000..ccd288ae7cf2 --- /dev/null +++ b/www/py-pastescript/pkg-plist @@ -0,0 +1,114 @@ +bin/paster +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO/scripts/paster +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO/dependency_links.txt +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO/entry_points.txt +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO/namespace_packages.txt +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO/not-zip-safe +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO/PKG-INFO +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO/requires.txt +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO/SOURCES.txt +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO/top_level.txt +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates/basic_package/setup.cfg +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates/basic_package/setup.py_tmpl +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates/basic_package/+package+/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates/basic_package/+package+/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates/basic_package/+package+/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/secret.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/secret.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/secret.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/string24.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/string24.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/string24.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/subprocess24.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/subprocess24.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/subprocess24.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/uuid.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/uuid.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/uuid.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/appinstall.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/appinstall.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/appinstall.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/bool_optparse.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/bool_optparse.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/bool_optparse.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/cgi_server.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/cgi_server.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/cgi_server.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/checkperms.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/checkperms.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/checkperms.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/cherrypy_server.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/cherrypy_server.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/cherrypy_server.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/command.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/command.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/command.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/copydir.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/copydir.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/copydir.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/create_distro.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/create_distro.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/create_distro.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/default_sysconfig.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/default_sysconfig.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/default_sysconfig.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/entrypoints.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/entrypoints.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/entrypoints.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/epdesc.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/epdesc.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/epdesc.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/exe.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/exe.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/exe.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/filemaker.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/filemaker.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/filemaker.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/flup_server.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/flup_server.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/flup_server.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/grep.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/grep.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/grep.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/help.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/help.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/help.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/interfaces.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/interfaces.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/interfaces.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/pluginlib.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/pluginlib.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/pluginlib.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/serve.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/serve.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/serve.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/testapp.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/testapp.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/testapp.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/twisted_web2_server.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/twisted_web2_server.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/twisted_web2_server.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/wsgiutils_server.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/wsgiutils_server.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/wsgiutils_server.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/__init__.pyo +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates/basic_package/+package+ +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates/basic_package +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/templates +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script/util +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste/script +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO/scripts +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/EGG-INFO +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%%/paste +@dirrm %%PYTHON_SITELIBDIR%%/%%PYPASTESCRIPT_EGG%% -- cgit