From bcabb1d3ecdb5d806a3334c4c1cdf4f431840fa8 Mon Sep 17 00:00:00 2001
From: pat <pat@FreeBSD.org>
Date: Sun, 28 Apr 2002 17:31:16 +0000
Subject: Add new port py-google, Python module for Google Web API

PR:		37328
Submitted by:	Hye-Shik Chang <perky@akaraka.yonsei.ac.kr>
---
 net/py-google/Makefile    | 44 ++++++++++++++++++++++++++++++++++++++++++++
 net/py-google/distinfo    |  1 +
 net/py-google/pkg-comment |  1 +
 net/py-google/pkg-descr   |  5 +++++
 net/py-google/pkg-message | 10 ++++++++++
 net/py-google/pkg-plist   | 10 ++++++++++
 6 files changed, 71 insertions(+)
 create mode 100644 net/py-google/Makefile
 create mode 100644 net/py-google/distinfo
 create mode 100644 net/py-google/pkg-comment
 create mode 100644 net/py-google/pkg-descr
 create mode 100644 net/py-google/pkg-message
 create mode 100644 net/py-google/pkg-plist

(limited to 'net/py-google')

diff --git a/net/py-google/Makefile b/net/py-google/Makefile
new file mode 100644
index 0000000..5c2116e
--- /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 0000000..ed9ce1e
--- /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 0000000..cfb3b88
--- /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 0000000..213f4925
--- /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 0000000..88d8141
--- /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 0000000..e806010
--- /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
-- 
cgit v1.1