From 55fc05e6a9bd01697ca19abf28fdb1bc89a86f11 Mon Sep 17 00:00:00 2001 From: Cheng-Lung Sung Date: Wed, 2 Mar 2011 10:04:17 +0000 Subject: [PATCH] net/py-oauth2 was originally forked from Leah Culver and Andy Smith's oauth.py code (see net/py-oauth). A number of notable differences exist between this code and its forefathers: * 100% unit test coverage. * The DataStore object has been completely ripped out. * Classes are no longer prefixed with OAuth. * The Request class now extends from dict. * The library is likely no longer compatible with Python 2.3. * The Client class works and extends from httplib2. WWW: http://github.com/simplegeo/python-oauth2 --- net/Makefile | 1 + net/py-oauth2/Makefile | 23 +++++++++++++++++++++++ net/py-oauth2/distinfo | 2 ++ net/py-oauth2/pkg-descr | 14 ++++++++++++++ net/py-oauth2/pkg-plist | 1 + 5 files changed, 41 insertions(+) create mode 100644 net/py-oauth2/Makefile create mode 100644 net/py-oauth2/distinfo create mode 100644 net/py-oauth2/pkg-descr create mode 100644 net/py-oauth2/pkg-plist diff --git a/net/Makefile b/net/Makefile index caaabc80fca5..11c6272818d9 100644 --- a/net/Makefile +++ b/net/Makefile @@ -870,6 +870,7 @@ SUBDIR += py-netifaces SUBDIR += py-netstring SUBDIR += py-oauth + SUBDIR += py-oauth2 SUBDIR += py-pcap SUBDIR += py-pcapy SUBDIR += py-pcs diff --git a/net/py-oauth2/Makefile b/net/py-oauth2/Makefile new file mode 100644 index 000000000000..183158a5c83b --- /dev/null +++ b/net/py-oauth2/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: py-oauth2 +# Date created: 02 Mar,2011 +# Whom: Cheng-Lung Sung +# +# $FreeBSD$ +# + +PORTNAME= oauth2 +PORTVERSION= 1.5.167 +CATEGORIES= net python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= clsung@FreeBSD.org +COMMENT= Python library for OAuth version 1.0 + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httplib2>0:${PORTSDIR}/www/py-httplib2 +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_PYTHON= yes +USE_PYDISTUTILS= easy_install + +.include diff --git a/net/py-oauth2/distinfo b/net/py-oauth2/distinfo new file mode 100644 index 000000000000..c8e3f0a0074e --- /dev/null +++ b/net/py-oauth2/distinfo @@ -0,0 +1,2 @@ +SHA256 (oauth2-1.5.167.tar.gz) = 3e0414e3cdc9e62c202768f0cec468615c8d03f948fcbff59b80a0a8cfc2aaf4 +SIZE (oauth2-1.5.167.tar.gz) = 18278 diff --git a/net/py-oauth2/pkg-descr b/net/py-oauth2/pkg-descr new file mode 100644 index 000000000000..497cc054916f --- /dev/null +++ b/net/py-oauth2/pkg-descr @@ -0,0 +1,14 @@ +This code was originally forked from Leah Culver and Andy Smith's +oauth.py code (see net/py-oauth). + +A number of notable differences exist between this code and its +forefathers: + +* 100% unit test coverage. +* The DataStore object has been completely ripped out. +* Classes are no longer prefixed with OAuth. +* The Request class now extends from dict. +* The library is likely no longer compatible with Python 2.3. +* The Client class works and extends from httplib2. + +WWW: http://github.com/simplegeo/python-oauth2 diff --git a/net/py-oauth2/pkg-plist b/net/py-oauth2/pkg-plist new file mode 100644 index 000000000000..ddf68a1c022f --- /dev/null +++ b/net/py-oauth2/pkg-plist @@ -0,0 +1 @@ +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%