diff options
author | Patrick Li <pat@FreeBSD.org> | 2002-04-28 17:31:16 +0000 |
---|---|---|
committer | Patrick Li <pat@FreeBSD.org> | 2002-04-28 17:31:16 +0000 |
commit | 30d497d51f645ad3d4d1bd86a221ec53ae508a04 (patch) | |
tree | ccf8bb5bece19afa839ac273ccf923fffda7db86 /net/py-google | |
parent | add py-istring 1.0.1 (diff) |
Add new port py-google, Python module for Google Web API
PR: 37328
Submitted by: Hye-Shik Chang <perky@akaraka.yonsei.ac.kr>
Notes
Notes:
svn path=/head/; revision=58268
Diffstat (limited to 'net/py-google')
-rw-r--r-- | net/py-google/Makefile | 44 | ||||
-rw-r--r-- | net/py-google/distinfo | 1 | ||||
-rw-r--r-- | net/py-google/pkg-comment | 1 | ||||
-rw-r--r-- | net/py-google/pkg-descr | 5 | ||||
-rw-r--r-- | net/py-google/pkg-message | 10 | ||||
-rw-r--r-- | net/py-google/pkg-plist | 10 |
6 files changed, 71 insertions, 0 deletions
diff --git a/net/py-google/Makefile b/net/py-google/Makefile new file mode 100644 index 000000000000..5c2116e04df9 --- /dev/null +++ b/net/py-google/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: py-google +# Date created: 22 April 2002 +# Whom: Hye-Shik Chang <perky@fallin.lv> +# +# $FreeBSD$ +# + +PORTNAME= google +PORTVERSION= 0.5.2 +CATEGORIES= net python +MASTER_SITES= http://diveintomark.org/projects/pygoogle/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pygoogle-${PORTVERSION} + +MAINTAINER= perky@fallin.lv + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_xmlplus/sax/__init__.py:${PORTSDIR}/textproc/py-xml + +USE_PYTHON= yes +USE_ZIP= yes +USE_PYDISTUTILS= yes +EXTRACT_BEFORE_ARGS= -q -aa + +WRKSRC= ${WRKDIR}/pygoogle +EXAMPLESDIR= ${PREFIX}/share/examples/py-google + +post-patch: +# www/py-websvcs has an incompatible version of SOAP.py + @${MV} ${WRKSRC}/SOAP.py ${WRKSRC}/SOAPgoogle.py + @cd ${WRKSRC}; for f in *.py; do \ + ${PERL} -pi -e 's,import SOAP,import SOAPgoogle as SOAP,g' $$f; \ + done + @${MKDIR} ${WRKSRC}/tests + @${MV} ${WRKSRC}/*test*.py ${WRKSRC}/tests + @${PERL} -pi -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_SCRIPT} ${WRKSRC}/tests/*.py ${EXAMPLESDIR} +.endif + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/net/py-google/distinfo b/net/py-google/distinfo new file mode 100644 index 000000000000..ed9ce1e3be7b --- /dev/null +++ b/net/py-google/distinfo @@ -0,0 +1 @@ +MD5 (pygoogle-0.5.2.zip) = 766a590648cab76039f850f7c4118c50 diff --git a/net/py-google/pkg-comment b/net/py-google/pkg-comment new file mode 100644 index 000000000000..cfb3b881c867 --- /dev/null +++ b/net/py-google/pkg-comment @@ -0,0 +1 @@ +Python wrapper for the Google web API diff --git a/net/py-google/pkg-descr b/net/py-google/pkg-descr new file mode 100644 index 000000000000..213f4925ae56 --- /dev/null +++ b/net/py-google/pkg-descr @@ -0,0 +1,5 @@ +This module allows you to access Google's web APIs through SOAP, +to do things like search Google and get the results programmatically. +This API is described here: http://www.google.com/apis/ + +WWW: http://diveintomark.org/projects/#pygoogle diff --git a/net/py-google/pkg-message b/net/py-google/pkg-message new file mode 100644 index 000000000000..88d8141f8abc --- /dev/null +++ b/net/py-google/pkg-message @@ -0,0 +1,10 @@ +================================================================== + You need a Google-provided license key to use these services. + Go http://www.google.com/apis/ to get one. This module will look + in several places (in this order) for the license key: + + - the module-level LICENSE_KEY variable + - an environment variable called GOOGLE_LICENSE_KEY + - a file called ".googlekey" in the current directory + - a file called ".googlekey" in your home directory +================================================================== diff --git a/net/py-google/pkg-plist b/net/py-google/pkg-plist new file mode 100644 index 000000000000..e806010b64ef --- /dev/null +++ b/net/py-google/pkg-plist @@ -0,0 +1,10 @@ +lib/%%PYTHON_VERSION%%/site-packages/SOAPgoogle.py +lib/%%PYTHON_VERSION%%/site-packages/SOAPgoogle.pyc +lib/%%PYTHON_VERSION%%/site-packages/SOAPgoogle.pyo +lib/%%PYTHON_VERSION%%/site-packages/google.py +lib/%%PYTHON_VERSION%%/site-packages/google.pyc +lib/%%PYTHON_VERSION%%/site-packages/google.pyo +%%PORTDOCS%%share/examples/py-google/googletest.py +%%PORTDOCS%%share/examples/py-google/testclient.py +%%PORTDOCS%%share/examples/py-google/testserver.py +%%PORTDOCS%%@dirrm share/examples/py-google |