summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-04-28 17:31:16 +0000
committerPatrick Li <pat@FreeBSD.org>2002-04-28 17:31:16 +0000
commit30d497d51f645ad3d4d1bd86a221ec53ae508a04 (patch)
treeccf8bb5bece19afa839ac273ccf923fffda7db86 /net
parentadd 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')
-rw-r--r--net/Makefile1
-rw-r--r--net/py-google/Makefile44
-rw-r--r--net/py-google/distinfo1
-rw-r--r--net/py-google/pkg-comment1
-rw-r--r--net/py-google/pkg-descr5
-rw-r--r--net/py-google/pkg-message10
-rw-r--r--net/py-google/pkg-plist10
7 files changed, 72 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 01c894e08262..ad1cdfa73650 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -385,6 +385,7 @@
SUBDIR += pxe
SUBDIR += py-adns
SUBDIR += py-fngrab
+ SUBDIR += py-google
SUBDIR += py-ipy
SUBDIR += py-jabber
SUBDIR += py-ldap1
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