Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2002 10:43:49 +0900 (KST)
From:      Hye-Shik Chang <perky@akaraka.yonsei.ac.kr>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/37328: New port: net/py-google
Message-ID:  <200204220143.g3M1hnCU022818@akaraka.yonsei.ac.kr>

next in thread | raw e-mail | index | archive | help

>Number:         37328
>Category:       ports
>Synopsis:       New port: net/py-google
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 21 18:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hye-Shik Chang
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Yonsei University
>Environment:
System: FreeBSD akaraka.yonsei.ac.kr 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Mon Apr 15 01:05:17 KST 2002 root@akaraka.yonsei.ac.kr:/usr/src/sys/i386/compile/JOARRA i386

>Description:
Python module for Google Web API

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-google
#	py-google/pkg-message
#	py-google/pkg-comment
#	py-google/Makefile
#	py-google/pkg-plist
#	py-google/pkg-descr
#	py-google/distinfo
#
echo c - py-google
mkdir -p py-google > /dev/null 2>&1
echo x - py-google/pkg-message
sed 's/^X//' >py-google/pkg-message << 'END-of-py-google/pkg-message'
X==================================================================
X You need a Google-provided license key to use these services.
X Go http://www.google.com/apis/ to get one. This module will look
X in several places (in this order) for the license key:
X
X  - the module-level LICENSE_KEY variable
X  - an environment variable called GOOGLE_LICENSE_KEY
X  - a file called ".googlekey" in the current directory
X  - a file called ".googlekey" in your home directory
X==================================================================
END-of-py-google/pkg-message
echo x - py-google/pkg-comment
sed 's/^X//' >py-google/pkg-comment << 'END-of-py-google/pkg-comment'
XPython wrapper for the Google web API
END-of-py-google/pkg-comment
echo x - py-google/Makefile
sed 's/^X//' >py-google/Makefile << 'END-of-py-google/Makefile'
X# New ports collection makefile for:	py-google
X# Date created:		22 April 2002
X# Whom:			Hye-Shik Chang <perky@fallin.lv>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	google
XPORTVERSION=	0.5.2
XCATEGORIES=	net python
XMASTER_SITES=	http://diveintomark.org/projects/pygoogle/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
XDISTNAME=	pygoogle-${PORTVERSION}
X
XMAINTAINER=	perky@fallin.lv
X
XRUN_DEPENDS=	${PYTHON_SITELIBDIR}/_xmlplus/sax/__init__.py:${PORTSDIR}/textproc/py-xml
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS= yes
XUSE_ZIP=	yes
XEXTRACT_BEFORE_ARGS= -q -aa
X
XWRKSRC=		${WRKDIR}/pygoogle
XEXAMPLESDIR=	${PREFIX}/share/examples/py-google
X
Xpost-patch:
X	@# www/py-websvcs has an incompatible version of SOAP.py
X	@${MV} ${WRKSRC}/SOAP.py ${WRKSRC}/SOAPgoogle.py
X	@cd ${WRKSRC}; for f in *.py; do \
X		${PERL} -pi -e 's,import SOAP,import SOAPgoogle as SOAP,g' $$f; \
X	 done
X	@${MKDIR} ${WRKSRC}/tests
X	@${MV} ${WRKSRC}/*test*.py ${WRKSRC}/tests
X
X	@${PERL} -pi -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_SCRIPT} ${WRKSRC}/tests/*.py ${EXAMPLESDIR}
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-py-google/Makefile
echo x - py-google/pkg-plist
sed 's/^X//' >py-google/pkg-plist << 'END-of-py-google/pkg-plist'
Xlib/%%PYTHON_VERSION%%/site-packages/SOAPgoogle.py
Xlib/%%PYTHON_VERSION%%/site-packages/SOAPgoogle.pyc
Xlib/%%PYTHON_VERSION%%/site-packages/SOAPgoogle.pyo
Xlib/%%PYTHON_VERSION%%/site-packages/google.py
Xlib/%%PYTHON_VERSION%%/site-packages/google.pyc
Xlib/%%PYTHON_VERSION%%/site-packages/google.pyo
X%%PORTDOCS%%share/examples/py-google/googletest.py
X%%PORTDOCS%%share/examples/py-google/testclient.py
X%%PORTDOCS%%share/examples/py-google/testserver.py
X%%PORTDOCS%%@dirrm share/examples/py-google
END-of-py-google/pkg-plist
echo x - py-google/pkg-descr
sed 's/^X//' >py-google/pkg-descr << 'END-of-py-google/pkg-descr'
XThis module allows you to access Google's web APIs through SOAP,
Xto do things like search Google and get the results programmatically.
XThis API is described here: http://www.google.com/apis/
X
XWWW: http://diveintomark.org/projects/#pygoogle
END-of-py-google/pkg-descr
echo x - py-google/distinfo
sed 's/^X//' >py-google/distinfo << 'END-of-py-google/distinfo'
XMD5 (pygoogle-0.5.2.zip) = 766a590648cab76039f850f7c4118c50
END-of-py-google/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204220143.g3M1hnCU022818>