aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorkoobs <koobs@FreeBSD.org>2013-06-30 21:44:49 +0800
committerkoobs <koobs@FreeBSD.org>2013-06-30 21:44:49 +0800
commitdd955c47c861a749389ccf521fe381dba75440d4 (patch)
tree4d45e418825600e4489485cfdec50c734e7430fc /www
parentabf70a84fff412c105b4990fd45931853d9da68e (diff)
downloadfreebsd-ports-gnome-dd955c47c861a749389ccf521fe381dba75440d4.tar.gz
freebsd-ports-gnome-dd955c47c861a749389ccf521fe381dba75440d4.tar.zst
freebsd-ports-gnome-dd955c47c861a749389ccf521fe381dba75440d4.zip
www/py-praw: Python Reddit API Wrapper [NEW PORT]
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to reddit's API. PRAW aims to be as easy to use as possible and is designed to follow all of reddit's API rules. You have to give a useragent that follows the rules, everything else is handled by PRAW so you needn't worry about violating them. WWW: http://praw.readthedocs.org
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/py-praw/Makefile29
-rw-r--r--www/py-praw/distinfo2
-rw-r--r--www/py-praw/pkg-descr8
-rw-r--r--www/py-praw/pkg-plist44
5 files changed, 84 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 959c0020c1aa..80e663a3ac57 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1629,6 +1629,7 @@
SUBDIR += py-plonetheme.sunburst
SUBDIR += py-poster
SUBDIR += py-postmarkup
+ SUBDIR += py-praw
SUBDIR += py-prewikka
SUBDIR += py-py-restclient
SUBDIR += py-pylons
diff --git a/www/py-praw/Makefile b/www/py-praw/Makefile
new file mode 100644
index 000000000000..0724d5594951
--- /dev/null
+++ b/www/py-praw/Makefile
@@ -0,0 +1,29 @@
+# Created by: Kubilay Kocak <koobs@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= praw
+PORTVERSION= 2.1.3
+CATEGORIES= www python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= koobs@FreeBSD.org
+COMMENT= Python Reddit API Wrapper
+
+LICENSE= GPLv3
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=1.2.0:${PORTSDIR}/www/py-requests \
+ ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six
+TEST_DEPENDS:= ${RUN_DEPENDS}
+
+USE_GITHUB= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS= easy_install
+
+GH_ACCOUNT= praw-dev
+GH_TAGNAME= v${DISTVERSION}
+GH_COMMIT= 8687d58
+
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+
+.include <bsd.port.mk>
diff --git a/www/py-praw/distinfo b/www/py-praw/distinfo
new file mode 100644
index 000000000000..85a3789f43b9
--- /dev/null
+++ b/www/py-praw/distinfo
@@ -0,0 +1,2 @@
+SHA256 (praw-2.1.3.tar.gz) = f21a10f50bb93a111546fc0ce22420475104ff49221777a3f00d691ec344a980
+SIZE (praw-2.1.3.tar.gz) = 145249
diff --git a/www/py-praw/pkg-descr b/www/py-praw/pkg-descr
new file mode 100644
index 000000000000..58dac3783e58
--- /dev/null
+++ b/www/py-praw/pkg-descr
@@ -0,0 +1,8 @@
+PRAW, an acronym for "Python Reddit API Wrapper", is a python package
+that allows for simple access to reddit's API. PRAW aims to be as easy
+to use as possible and is designed to follow all of reddit's API rules.
+
+You have to give a useragent that follows the rules, everything else is
+handled by PRAW so you needn't worry about violating them.
+
+WWW: http://praw.readthedocs.org
diff --git a/www/py-praw/pkg-plist b/www/py-praw/pkg-plist
new file mode 100644
index 000000000000..a27188ec6985
--- /dev/null
+++ b/www/py-praw/pkg-plist
@@ -0,0 +1,44 @@
+@comment $FreeBSD$
+bin/praw-multiprocess
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/decorators.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/decorators.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/decorators.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/errors.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/errors.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/errors.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/handlers.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/handlers.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/handlers.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/helpers.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/helpers.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/helpers.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/internal.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/internal.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/internal.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/multiprocess.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/multiprocess.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/multiprocess.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/objects.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/objects.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/objects.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/praw.ini
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/settings.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/settings.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/settings.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/tests/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/tests/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/tests/__init__.pyo
+@dirrmtry %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw/tests
+@dirrmtry %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/praw
+@dirrmtry %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrmtry %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%