aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-restclient
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2007-04-16 12:51:46 +0800
committerlwhsu <lwhsu@FreeBSD.org>2007-04-16 12:51:46 +0800
commit67d1bd17f0c912f97a3c8c97c360a27aa141df0e (patch)
treea4a8dafeb4b687214810bb5faf02121354a4c3ff /www/py-restclient
parent87c273966de71045e111fe91cc060e92a75c8680 (diff)
downloadfreebsd-ports-gnome-67d1bd17f0c912f97a3c8c97c360a27aa141df0e.tar.gz
freebsd-ports-gnome-67d1bd17f0c912f97a3c8c97c360a27aa141df0e.tar.zst
freebsd-ports-gnome-67d1bd17f0c912f97a3c8c97c360a27aa141df0e.zip
Add py-restclient 0.9.8, convenient library for writing REST clients.
Approved by: clsung (mentor)
Diffstat (limited to 'www/py-restclient')
-rw-r--r--www/py-restclient/Makefile39
-rw-r--r--www/py-restclient/distinfo3
-rw-r--r--www/py-restclient/pkg-descr3
-rw-r--r--www/py-restclient/pkg-plist20
4 files changed, 65 insertions, 0 deletions
diff --git a/www/py-restclient/Makefile b/www/py-restclient/Makefile
new file mode 100644
index 000000000000..32a320949dab
--- /dev/null
+++ b/www/py-restclient/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: py-restclient
+# Date created: Apr. 15, 2007
+# Whom: Li-Wen Hsu <lwhsu@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= restclient
+PORTVERSION= 0.9.8
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= lwhsu@FreeBSD.org
+COMMENT= Convenient library for writing REST clients
+
+BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
+RUN_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \
+ ${PYTHON_SITELIBDIR}/httplib2/__init__.py:${PORTSDIR}/www/py-httplib2
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+EASY_INSTALL_CMD?= easy_install-${PYTHON_VER}
+
+PYDISTUTILS_BUILD_TARGET= bdist_egg
+PYDISTUTILS_INSTALL_TARGET= easy_install
+PYDISTUTILS_INSTALLARGS= -O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${PYRESTCLIENT_EGG}
+
+PYRESTCLIENT_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg
+
+PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
+ PYRESTCLIENT_EGG=${PYRESTCLIENT_EGG} \
+ PYRESTCLIENT_EGG_VER="${PORTNAME}==${PORTVERSION}"
+
+post-patch:
+ ${REINPLACE_CMD} -e 's,install_requires.*,,' ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
diff --git a/www/py-restclient/distinfo b/www/py-restclient/distinfo
new file mode 100644
index 000000000000..d86001fe6da6
--- /dev/null
+++ b/www/py-restclient/distinfo
@@ -0,0 +1,3 @@
+MD5 (restclient-0.9.8.tar.gz) = c4a29fa7c548bcb069fedf79d7a49fba
+SHA256 (restclient-0.9.8.tar.gz) = 2a8a34a3203ebb3aaae804bd5078ca9a0e6045ea7758f3218c24fd980c18a1e2
+SIZE (restclient-0.9.8.tar.gz) = 454146
diff --git a/www/py-restclient/pkg-descr b/www/py-restclient/pkg-descr
new file mode 100644
index 000000000000..3a4d65f0527b
--- /dev/null
+++ b/www/py-restclient/pkg-descr
@@ -0,0 +1,3 @@
+A helper library to make writing REST clients in python extremely simple.
+
+WWW: http://microapps.sourceforge.net/restclient/
diff --git a/www/py-restclient/pkg-plist b/www/py-restclient/pkg-plist
new file mode 100644
index 000000000000..b0d7671f2ffe
--- /dev/null
+++ b/www/py-restclient/pkg-plist
@@ -0,0 +1,20 @@
+@unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%PYRESTCLIENT_EGG_VER%%
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/test_everything.py
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/test_everything.pyc
+%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/test_everything.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%
+@exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%PYRESTCLIENT_EGG_VER%%