diff --git a/www/Makefile b/www/Makefile index e04660650dc0..13e77d70a82a 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1009,6 +1009,7 @@ SUBDIR += py-qp SUBDIR += py-qpy SUBDIR += py-restclient + SUBDIR += py-routes SUBDIR += py-scgi SUBDIR += py-scriptaculous SUBDIR += py-slimmer diff --git a/www/py-routes/Makefile b/www/py-routes/Makefile new file mode 100644 index 000000000000..8a878a90c60c --- /dev/null +++ b/www/py-routes/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: py-routes +# Date created: April 24 2007 +# Whom: Dryice Liu +# +# $FreeBSD$ +# + +PORTNAME= routes +PORTVERSION= 1.6.3 +CATEGORIES= www python +MASTER_SITES= ${MASTER_SITE_CHEESESHOP} \ + http://dryice.name/computer/FreeBSD/distfiles/ +MASTER_SITE_SUBDIR= source/R/Routes +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= Routes-${PORTVERSION} + +MAINTAINER= dryice@FreeBSD.org +COMMENT= A Routing package for Python that matches URLs to dicts and vice versa + +BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools +RUN_DEPENDS+= ${BUILD_DEPENDS} + +USE_PYTHON= yes +USE_PYDISTUTILS= yes + +PYROUTES_EGG= Routes-${PORTVERSION}-py${PYTHON_VER}.egg + +PLIST_SUB= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \ + PYROUTES_EGG=${PYROUTES_EGG} + +EASY_INSTALL_CMD?= easy_install-${PYTHON_VER} + +.include diff --git a/www/py-routes/distinfo b/www/py-routes/distinfo new file mode 100644 index 000000000000..5569d731d5a8 --- /dev/null +++ b/www/py-routes/distinfo @@ -0,0 +1,3 @@ +MD5 (Routes-1.6.3.tar.gz) = aac5f71e3b83a29159636f715a0921c8 +SHA256 (Routes-1.6.3.tar.gz) = 8241b68f1329c35fad10df66f04545e0e89bbb5ccba342758a719618cfe93498 +SIZE (Routes-1.6.3.tar.gz) = 59405 diff --git a/www/py-routes/pkg-descr b/www/py-routes/pkg-descr new file mode 100644 index 000000000000..66165e633c8c --- /dev/null +++ b/www/py-routes/pkg-descr @@ -0,0 +1,9 @@ +Routes is a Python re-implementation of the Rails routes system for mapping +URL's to Controllers/Actions and generating URL's. Routes makes it easy to +create pretty and concise URL's that are RESTful with little effort. + +Speedy and dynamic URL generation means you get a URL with minimal cruft +(no big dangling query args). Shortcut features like Named Routes cut down +on repetitive typing. + +WWW: http://routes.groovie.org/ diff --git a/www/py-routes/pkg-plist b/www/py-routes/pkg-plist new file mode 100644 index 000000000000..9026491e47bf --- /dev/null +++ b/www/py-routes/pkg-plist @@ -0,0 +1,25 @@ +@unexec %%EASY_INSTALL_CMD%% -N -m %D/%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%% +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/EGG-INFO/dependency_links.txt +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/EGG-INFO/not-zip-safe +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/EGG-INFO/PKG-INFO +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/EGG-INFO/SOURCES.txt +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/EGG-INFO/top_level.txt +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/base.py +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/base.pyc +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/base.pyo +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/middleware.py +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/middleware.pyc +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/middleware.pyo +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/threadinglocal.py +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/threadinglocal.pyc +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/threadinglocal.pyo +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/util.py +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/util.pyc +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/util.pyo +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes/__init__.pyo +@dirrm %%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/routes +@dirrm %%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%%/EGG-INFO +@dirrm %%PYTHON_SITELIBDIR%%/%%PYROUTES_EGG%% +@exec %%EASY_INSTALL_CMD%% -N %D/%%PYTHON_SITELIBDIR%%/PYROUTES_EGG%%