From 389b439e91293ce0390c8ce58f06680a94b64aeb Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 9 Nov 2014 11:51:55 +0000 Subject: [PATCH] Add new port www/py-bottle-cork PR: 194192 Submitted by: Olivier (cochard.me) bottle-cork provides a simple set of methods to implement Authentication and Authorization in web applications based on Bottle. --- www/Makefile | 1 + www/py-bottle-cork/Makefile | 43 ++++++++++++++++++++++++++++++++++++ www/py-bottle-cork/distinfo | 2 ++ www/py-bottle-cork/pkg-descr | 4 ++++ 4 files changed, 50 insertions(+) create mode 100644 www/py-bottle-cork/Makefile create mode 100644 www/py-bottle-cork/distinfo create mode 100644 www/py-bottle-cork/pkg-descr diff --git a/www/Makefile b/www/Makefile index a00d74ab5bfe..abb0deef827a 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1454,6 +1454,7 @@ SUBDIR += py-bleach SUBDIR += py-blogofile SUBDIR += py-bottle + SUBDIR += py-bottle-cork SUBDIR += py-cherrypy SUBDIR += py-cherrypy-old SUBDIR += py-clientform diff --git a/www/py-bottle-cork/Makefile b/www/py-bottle-cork/Makefile new file mode 100644 index 000000000000..d73617667c3b --- /dev/null +++ b/www/py-bottle-cork/Makefile @@ -0,0 +1,43 @@ +# $FreeBSD$ + +PORTNAME= bottle-cork +PORTVERSION= 0.10 +CATEGORIES= www python +MASTER_SITES= GH +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= olivier@cochard.me +COMMENT= Bottle authentication and authorization module + +LICENSE= LGPL3 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bottle>0:${PORTSDIR}/www/py-bottle \ + ${PYTHON_PKGNAMEPREFIX}beaker>0:${PORTSDIR}/www/py-beaker + +USE_GITHUB= yes +GH_ACCOUNT= FedericoCeratto +GH_PROJECT= bottle-cork +GH_COMMIT= c881fae +GH_TAGNAME= v${PORTVERSION} + +USES= python +USE_PYTHON= distutils autoplist +EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} +PORTEXAMPLES= * + +OPTIONS_DEFINE= SQLITE MONGODB SQLALCHEMY EXAMPLES + +.include + +SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 +MONGODB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymongo>0:${PORTSDIR}/databases/pymongo +SQLALCHEMY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlalchemy>0:${PORTSDIR}/databases/py-sqlalchemy + +.if ${PORT_OPTIONS:MEXAMPLES} +post-install: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) +.endif + +.include diff --git a/www/py-bottle-cork/distinfo b/www/py-bottle-cork/distinfo new file mode 100644 index 000000000000..cbd233f1f83e --- /dev/null +++ b/www/py-bottle-cork/distinfo @@ -0,0 +1,2 @@ +SHA256 (bottle-cork-0.10.tar.gz) = a4bed8e0756fa774406611f662bf95ea5aa93eb4f8515c60acf3e4b1db810d61 +SIZE (bottle-cork-0.10.tar.gz) = 59221 diff --git a/www/py-bottle-cork/pkg-descr b/www/py-bottle-cork/pkg-descr new file mode 100644 index 000000000000..f32e10f7ebcc --- /dev/null +++ b/www/py-bottle-cork/pkg-descr @@ -0,0 +1,4 @@ +bottle-cork provides a simple set of methods to implement Authentication +and Authorization in web applications based on Bottle. + +WWW: http://cork.firelet.net/