aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-11-09 19:51:55 +0800
committermarino <marino@FreeBSD.org>2014-11-09 19:51:55 +0800
commitb1ffc4b53f851f83dd64fb867914b4f8f7990078 (patch)
treedad80ee5f76ca2915768876c6d485897ff6d5042 /www
parent41545cf02b0a4b38bd80c23b149c9f73e88825b0 (diff)
downloadfreebsd-ports-gnome-b1ffc4b53f851f83dd64fb867914b4f8f7990078.tar.gz
freebsd-ports-gnome-b1ffc4b53f851f83dd64fb867914b4f8f7990078.tar.zst
freebsd-ports-gnome-b1ffc4b53f851f83dd64fb867914b4f8f7990078.zip
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.
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/py-bottle-cork/Makefile43
-rw-r--r--www/py-bottle-cork/distinfo2
-rw-r--r--www/py-bottle-cork/pkg-descr4
4 files changed, 50 insertions, 0 deletions
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 <bsd.port.options.mk>
+
+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 <bsd.port.mk>
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/