head	1.7;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2;
locks; strict;
comment	@# @;


1.7
date	2013.03.13.00.41.57;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.11.17.06.03.00;	author svnexp;	state Exp;
branches;
next	1.5;

1.5
date	2012.08.15.20.08.56;	author nivit;	state Exp;
branches;
next	1.4;

1.4
date	2012.05.01.08.41.01;	author nivit;	state Exp;
branches;
next	1.3;

1.3
date	2012.04.30.08.56.32;	author nivit;	state Exp;
branches;
next	1.2;

1.2
date	2011.05.14.14.58.40;	author nivit;	state Exp;
branches;
next	1.1;

1.1
date	2011.04.16.13.51.24;	author nivit;	state Exp;
branches;
next	;


desc
@@


1.7
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313999
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/www/py-google-api-python-client/Makefile 313999 2013-03-12 20:22:03Z nivit $

PORTNAME=	google-api-python-client
PORTVERSION=	1.1
#PORTREVISION=	0
CATEGORIES=	www
MASTER_SITES=	GOOGLE_CODE
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTFILES=	${PORTNAME}-${DISTVERSION}.tar.gz

MAINTAINER=	nivit@@FreeBSD.org
COMMENT=	Google API Client Library for Python

LICENSE=	AL2

RUN_DEPENDS=	${PKGNAMEPREFIX}gflags>=1.4:${PORTSDIR}/devel/py-gflags \
		${PKGNAMEPREFIX}httplib2>=0.6.0:${PORTSDIR}/www/py-httplib2 \
		${PKGNAMEPREFIX}oauth2>=1.5.167:${PORTSDIR}/net/py-oauth2

USE_PYTHON=	-2.7
USE_PYDISTUTILS=	easy_install

# bypass infrastructure bug
OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE=	DOCS DJANGO EXAMPLES GAE WEBTEST

DJANGO_DESC=	Use the library with Django
GAE_DESC=	Use the library with Google App Engine
WEBTEST_DESC=	Use WebTest helper to test WSGI apps (Python 2.6+)

.include <bsd.port.options.mk>

PYDISTUTILS_PKGVERSION=	${DISTVERSION}

.if ${PORT_OPTIONS:MEXAMPLES}
FIND_FILES=	${WRKDIR}/samples
FIND_FILES_BAK=	${WRKDIR}/samples
.endif
FIND_FILES+=	${WRKSRC} -type f -and \( -name "*.py" -or -name "enable-app-engine-project" \) -print0
FIND_FILES_BAK+=	${WRKSRC} -type f -name "*.bak"

REINPLACE_ARGS=	-e 's,/usr/bin/env python,&${PYTHON_VER},' \
		-e 's,/usr/bin/python.*,${PYTHON_CMD},' \
		-e 's,../google_appengine,${LOCALBASE}/share/google-appengine,1' \
		-e "s,'samples/oauth2','${EXAMPLESDIR}',1" -i.bak

DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}

.if ${PORT_OPTIONS:MEXAMPLES}
DISTFILES+=	${PORTNAME}-samples-${DISTVERSION}.tar.gz
.endif

.if ${PORT_OPTIONS:MGAE}
RUN_DEPENDS+=	google-appengine>=1.4.3:${PORTSDIR}/www/google-appengine
.endif

.if ${PORT_OPTIONS:MDJANGO}
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}django>=1.3:${PORTSDIR}/www/py-django
.endif

post-patch:
	${FIND} ${FIND_FILES} | ${XARGS} -0 ${REINPLACE_CMD}
	@@${FIND} ${FIND_FILES_BAK} -delete

post-install:
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/FAQ ${DOCSDIR}/FAQ
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	cd ${WRKDIR}/samples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif

.if ${PORT_OPTIONS:MWEBTEST}
RUN_DEPENDS+=	${PKGNAMEPREFIX}WebTest>=1.3.3:${PORTSDIR}/www/py-WebTest \
		${PKGNAMEPREFIX}openssl>=0.13:${PORTSDIR}/security/py-openssl
.endif

.include <bsd.port.mk>
@


1.6
log
@Switch exporter over
@
text
@d1 1
a1 6
# New ports collection makefile for:	google-api-python-client
# Date created:		2011-04-16
# Whom:			Nicola Vitale <nivit@@FreeBSD.org>
#
# $FreeBSD: head/www/py-google-api-python-client/Makefile 302600 2012-08-15 20:08:56Z nivit $
#
d4 1
a4 1
#PORTVERSION=
a5 1
DISTVERSION=	1.0c2
d9 1
a9 1
DISTFILES+=	${PORTNAME}-${DISTVERSION}.tar.gz
d42 1
a42 3
XARGS_ARGS=	-0

REINPLACE_ARGS=	-i.bak -e 's,/usr/bin/env python,&${PYTHON_VER},' \
d45 1
a45 1
		-e "s,'samples/oauth2','${EXAMPLESDIR}',1"
d63 1
a63 1
	${FIND} ${FIND_FILES} | ${XARGS} ${XARGS_ARGS} ${REINPLACE_CMD}
a71 2
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/runsamples.py ${EXAMPLESDIR}/runsamples.py
d75 1
a75 4
.include <bsd.port.pre.mk>

# www/py-WebTest depends on www/py-webob, which runs only with Python 2.6+
.if ${PORT_OPTIONS:MWEBTEST} && ${PYTHON_VER} >= 2.6
d80 1
a80 5
.if ${PYTHON_VER} <= 2.5
RUN_DEPENDS+=	${PKGNAMEPREFIX}simplejson>=2.5.0:${PORTSDIR}/devel/py-simplejson
.endif

.include <bsd.port.post.mk>
@


1.5
log
@SVN rev 302600 on 2012-08-15 20:08:56Z by nivit

- Update to 1.0.c2
- Add patch files/patch-runsamples
- Convert to the new options framework
- Add security/py-openssl to RUN_DEPENDS
  when option WEBTEST is on
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.4
log
@- Add the option WITH_WEBTEST (default off)
- Define OPTIONSFILE to bypass infrastructure bug
- Include <bsd.port.options.mk>
- Install devel/py-simplejson only when Python version is
  less than 2.6  [1]
- Install the (optional) dependency www/py-WebTest only
  when the Python version is great than 2.5
- Remove all build dependencies  [1]

Suggested by:	rm  [1]
@
text
@d11 1
a11 1
DISTVERSION=	1.0beta8
d15 1
a27 1
USE_ZIP=	yes
a28 3
OPTIONS=	GAE	"Use the library with Google App Engine" off \
		DJANGO	"Use the library with Django" off \
		WEBTEST	"Use WebTest helper to test WSGI apps (Python 2.6+)" off
d31 5
d41 6
a46 2
FIND_FILES=	${WRKSRC} -type f -and \( -name "*.py" -or -name "enable-app-engine-project" \) -print0
FIND_FILES_BAK=	${WRKSRC} -type f -name "*.bak"
d51 3
a53 1
		-e 's,/usr/bin/python.*,${PYTHON_CMD},'
d58 5
a62 1
.if defined(WITH_GAE)
d66 1
a66 1
.if defined(WITH_DJANGO)
d75 1
a75 1
.if !defined(NOPORTDOCS)
d77 1
a77 1
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
d79 1
a79 1
.if !defined(NOPORTEXAMPLES)
d81 2
a82 1
	cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
d88 3
a90 2
.if defined(WITH_WEBTEST) && ${PYTHON_VER} >= 2.6
RUN_DEPENDS+=	${PKGNAMEPREFIX}WebTest>=1.3.3:${PORTSDIR}/www/py-WebTest
@


1.3
log
@- Update to 1.0.b8
- Add devel/py-simplejson to *_DEPENDS
- Add www/py-WebTest to RUN_DEPENDS
- Add LICENSE (AL2)
- Add some API names to pkg-descr
- Remove DISTNAME from Makefile
@
text
@a20 4
BUILD_DEPENDS=	${PKGNAMEPREFIX}gflags>=1.4:${PORTSDIR}/devel/py-gflags \
		${PKGNAMEPREFIX}httplib2>=0.6.0:${PORTSDIR}/www/py-httplib2 \
		${PKGNAMEPREFIX}oauth2>=1.5.167:${PORTSDIR}/net/py-oauth2 \
		${PKGNAMEPREFIX}simplejson>=2.5.0:${PORTSDIR}/devel/py-simplejson
d23 1
a23 3
		${PKGNAMEPREFIX}oauth2>=1.5.167:${PORTSDIR}/net/py-oauth2 \
		${PKGNAMEPREFIX}simplejson>=2.5.0:${PORTSDIR}/devel/py-simplejson \
		${PKGNAMEPREFIX}WebTest>=1.3.3:${PORTSDIR}/www/py-WebTest
d30 6
a35 1
		DJANGO	"Use the library with Django" off
d50 8
d74 3
a76 2
.if defined(WITH_GAE)
RUN_DEPENDS+=	google-appengine>=1.4.3:${PORTSDIR}/www/google-appengine
d79 2
a80 2
.if defined(WITH_DJANGO)
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}django>=1.3:${PORTSDIR}/www/py-django
@


1.2
log
@- Update to 1.0.b2
@
text
@d11 1
a11 1
DISTVERSION=	1.0beta2
a14 1
DISTNAME=	${PORTNAME}-${DISTVERSION}
d19 2
d23 2
a24 1
		${PKGNAMEPREFIX}oauth2>=1.5.167:${PORTSDIR}/net/py-oauth2
d27 3
a29 1
		${PKGNAMEPREFIX}oauth2>=1.5.167:${PORTSDIR}/net/py-oauth2
a31 1

@


1.1
log
@The Google API Client for Python is a client library for accessing
the Buzz, Latitude, Moderator, Diacritize, Translate, Custom Search,
Search API for Shopping, URL Shortener, and Prediction APIs.

If you wish to use a Google API that is not in that list then you should
look at the Google Data APIs Python Client Library (devel/py-gdata).

WWW:	http://code.google.com/p/google-api-python-client/
@
text
@d11 1
a11 1
DISTVERSION=	1.0beta1
@

