From f8567e7642331cb2313decd0374d756da7e41415 Mon Sep 17 00:00:00 2001 From: jasper Date: Wed, 24 Nov 2010 08:25:57 +0000 Subject: [PATCH] import py-twitter 1.4.2 The Minimalist Twitter API for Python is a Python API for Twitter, everyone's favorite Web 2.0 Facebook-style status updater for people on the go. from Mark Peoples, with tweaks by me ok sthen@ --- net/py-twitter/Makefile | 30 +++++++++++++++++ net/py-twitter/distinfo | 5 +++ net/py-twitter/patches/patch-setup_py | 15 +++++++++ .../patch-twitter_ett-info__requires_txt | 6 ++++ net/py-twitter/pkg/DESCR | 3 ++ net/py-twitter/pkg/PLIST | 32 +++++++++++++++++++ 6 files changed, 91 insertions(+) create mode 100644 net/py-twitter/Makefile create mode 100644 net/py-twitter/distinfo create mode 100644 net/py-twitter/patches/patch-setup_py create mode 100644 net/py-twitter/patches/patch-twitter_ett-info__requires_txt create mode 100644 net/py-twitter/pkg/DESCR create mode 100644 net/py-twitter/pkg/PLIST diff --git a/net/py-twitter/Makefile b/net/py-twitter/Makefile new file mode 100644 index 00000000000..07823b44be4 --- /dev/null +++ b/net/py-twitter/Makefile @@ -0,0 +1,30 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/11/24 08:25:57 jasper Exp $ + +COMMENT= twitter python module + +MODPY_EGG_VERSION= 1.4.2 +DISTNAME= twitter-${MODPY_EGG_VERSION} +PKGNAME= py-twitter-${MODPY_EGG_VERSION} + +CATEGORIES= net www + +HOMEPAGE= http://mike.verdone.ca/twitter/ + +# MIT +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${MASTER_SITE_PYPI:=t/twitter/} + +MODULES= lang/python + +MODPY_SETUPTOOLS= Yes + +RUN_DEPENDS= devel/py-dateutil +BUILD_DEPENDS= ${RUN_DEPENDS} + +NO_REGRESS= Yes + +.include diff --git a/net/py-twitter/distinfo b/net/py-twitter/distinfo new file mode 100644 index 00000000000..7342f56e136 --- /dev/null +++ b/net/py-twitter/distinfo @@ -0,0 +1,5 @@ +MD5 (twitter-1.4.2.tar.gz) = yL0z6f9J6pxRtqHMa/y/ew== +RMD160 (twitter-1.4.2.tar.gz) = Fbfnxda7osDUVSw0vm8+24q+qhg= +SHA1 (twitter-1.4.2.tar.gz) = 7Tn9bdTd79v0a0KaGD1XYCX80TE= +SHA256 (twitter-1.4.2.tar.gz) = FqQZzwK6EkXMUyV8/JbOVkY5kzhblDH6+w2cRv0qQPY= +SIZE (twitter-1.4.2.tar.gz) = 15987 diff --git a/net/py-twitter/patches/patch-setup_py b/net/py-twitter/patches/patch-setup_py new file mode 100644 index 00000000000..8924aae8d1e --- /dev/null +++ b/net/py-twitter/patches/patch-setup_py @@ -0,0 +1,15 @@ +$OpenBSD: patch-setup_py,v 1.1.1.1 2010/11/24 08:25:57 jasper Exp $ +--- setup.py.orig Tue Aug 3 18:27:08 2010 ++++ setup.py Tue Nov 23 10:00:34 2010 +@@ -3,10 +3,7 @@ import sys, os + + version = '1.4.2' + +-install_requires = [ +- # -*- Extra requirements: -*- +- "python-dateutil>=1.1", +- ] ++install_requires = [] + + def _py26OrGreater(): + return sys.hexversion > 0x20600f0 diff --git a/net/py-twitter/patches/patch-twitter_ett-info__requires_txt b/net/py-twitter/patches/patch-twitter_ett-info__requires_txt new file mode 100644 index 00000000000..09e031ad510 --- /dev/null +++ b/net/py-twitter/patches/patch-twitter_ett-info__requires_txt @@ -0,0 +1,6 @@ +$OpenBSD: patch-twitter_ett-info__requires_txt,v 1.1.1.1 2010/11/24 08:25:57 jasper Exp $ +--- twitter.egg-info/requires.txt.orig Sat Nov 20 16:56:01 2010 ++++ twitter.egg-info/requires.txt Sat Nov 20 16:56:12 2010 +@@ -1 +0,0 @@ +-python-dateutil>=1.1 +\ No newline at end of file diff --git a/net/py-twitter/pkg/DESCR b/net/py-twitter/pkg/DESCR new file mode 100644 index 00000000000..e803a1d5fc2 --- /dev/null +++ b/net/py-twitter/pkg/DESCR @@ -0,0 +1,3 @@ +The Minimalist Twitter API for Python is a Python API for Twitter, +everyone's favorite Web 2.0 Facebook-style status updater for people on +the go. diff --git a/net/py-twitter/pkg/PLIST b/net/py-twitter/pkg/PLIST new file mode 100644 index 00000000000..dcc43cf19a0 --- /dev/null +++ b/net/py-twitter/pkg/PLIST @@ -0,0 +1,32 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/11/24 08:25:57 jasper Exp $ +bin/twitter +bin/twitterbot +lib/python${MODPY_VERSION}/site-packages/twitter/ +lib/python${MODPY_VERSION}/site-packages/twitter-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/twitter-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/twitter-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/twitter-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/twitter-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt +@comment lib/python${MODPY_VERSION}/site-packages/twitter-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt.orig +lib/python${MODPY_VERSION}/site-packages/twitter-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/twitter-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/zip-safe +lib/python${MODPY_VERSION}/site-packages/twitter/__init__.py +lib/python${MODPY_VERSION}/site-packages/twitter/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/twitter/ansi.py +lib/python${MODPY_VERSION}/site-packages/twitter/ansi.pyc +lib/python${MODPY_VERSION}/site-packages/twitter/api.py +lib/python${MODPY_VERSION}/site-packages/twitter/api.pyc +lib/python${MODPY_VERSION}/site-packages/twitter/auth.py +lib/python${MODPY_VERSION}/site-packages/twitter/auth.pyc +lib/python${MODPY_VERSION}/site-packages/twitter/cmdline.py +lib/python${MODPY_VERSION}/site-packages/twitter/cmdline.pyc +lib/python${MODPY_VERSION}/site-packages/twitter/ircbot.py +lib/python${MODPY_VERSION}/site-packages/twitter/ircbot.pyc +lib/python${MODPY_VERSION}/site-packages/twitter/oauth.py +lib/python${MODPY_VERSION}/site-packages/twitter/oauth.pyc +lib/python${MODPY_VERSION}/site-packages/twitter/oauth_dance.py +lib/python${MODPY_VERSION}/site-packages/twitter/oauth_dance.pyc +lib/python${MODPY_VERSION}/site-packages/twitter/twitter_globals.py +lib/python${MODPY_VERSION}/site-packages/twitter/twitter_globals.pyc +lib/python${MODPY_VERSION}/site-packages/twitter/util.py +lib/python${MODPY_VERSION}/site-packages/twitter/util.pyc