aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2007-04-16 04:51:46 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2007-04-16 04:51:46 +0000
commit4226d961678f94361b8d95f31e1e450b04e91043 (patch)
tree38df384cef5460b67a8ead7c983b5e71f909ddaa /www
parent4dae121dcedaab0103d60a1fcc99bb84e4eb7c2f (diff)
downloadports-4226d961678f94361b8d95f31e1e450b04e91043.tar.gz
ports-4226d961678f94361b8d95f31e1e450b04e91043.zip
Notes
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-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
5 files changed, 66 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index dd56555a61be..cdf13c1fb83a 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1004,6 +1004,7 @@
SUBDIR += py-pysearch
SUBDIR += py-qp
SUBDIR += py-qpy
+ SUBDIR += py-restclient
SUBDIR += py-scgi
SUBDIR += py-scriptaculous
SUBDIR += py-slimmer
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%%