Changeset View
Changeset View
Standalone View
Standalone View
www/py-google-api-python-client/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= google-api-python-client | PORTNAME= google-api-python-client | ||||
PORTVERSION= 1.7.6 | PORTVERSION= 1.7.6 | ||||
PORTREVISION= 0 | PORTREVISION= 1 | ||||
CATEGORIES= www python | CATEGORIES= www python | ||||
MASTER_SITES= CHEESESHOP | MASTER_SITES= CHEESESHOP | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= nivit@FreeBSD.org | MAINTAINER= nivit@FreeBSD.org | ||||
COMMENT= Google API Client Library for Python | COMMENT= Google API Client Library for Python | ||||
LICENSE= APACHE20 | LICENSE= APACHE20 | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httplib2>=0.9.2:www/py-httplib2@${PY_FLAVOR} \ | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httplib2>=0.9.2:www/py-httplib2@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}google-auth>=0:security/py-google-auth@${PY_FLAVOR} \ | ${PYTHON_PKGNAMEPREFIX}google-auth>=0:security/py-google-auth@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}google-auth-httplib2>=0.0.3:security/py-google-auth-httplib2@${PY_FLAVOR} \ | ${PYTHON_PKGNAMEPREFIX}google-auth-httplib2>=0.0.3:security/py-google-auth-httplib2@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}six>=1.6.1:devel/py-six@${PY_FLAVOR} \ | ${PYTHON_PKGNAMEPREFIX}six>=1.6.1:devel/py-six@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}uritemplate>=3.0.0:net/py-uritemplate@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}uritemplate>=3.0.0:net/py-uritemplate@${PY_FLAVOR} | ||||
USES= python | USES= python | ||||
USE_PYTHON= autoplist distutils | USE_PYTHON= autoplist distutils | ||||
NO_ARCH= yes | NO_ARCH= yes | ||||
OPTIONS_DEFINE= DJANGO GAE WEBTEST | OPTIONS_DEFINE= GAE WEBTEST | ||||
OPTIONS_GROUP= BACKENDS | |||||
OPTIONS_GROUP_BACKENDS= DJANGO | |||||
koobs: Why did we use a GROUP here? | |||||
DJANGO_DESC= Use the library with Django | DJANGO_DESC= Use the library with Django | ||||
DJANGO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=1.3:www/py-django111@${PY_FLAVOR} | |||||
GAE_DESC= Use the library with Google App Engine | GAE_DESC= Use the library with Google App Engine | ||||
GAE_RUN_DEPENDS= google-appengine>=1.4.3:www/google-appengine | GAE_RUN_DEPENDS= google-appengine>=1.4.3:www/google-appengine | ||||
WEBTEST_DESC= Use WebTest helper to test WSGI apps | WEBTEST_DESC= Use WebTest helper to test WSGI apps | ||||
WEBTEST_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}WebTest>=1.3.3:www/py-WebTest@${PY_FLAVOR} \ | WEBTEST_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}WebTest>=1.3.3:www/py-WebTest@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}openssl>=0.13:security/py-openssl@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}openssl>=0.13:security/py-openssl@${PY_FLAVOR} | ||||
.include <bsd.port.mk> | .include <bsd.port.pre.mk> | ||||
.if ${PYTHON_REL} < 3500 | |||||
koobsUnsubmitted Not Done Inline ActionsMight we consider only adding the DJANGO option in the > 3.5 case ? Might be a bit cleaner and explicit than the hoop jumping constructs needed to remove and option koobs: Might we consider only //adding// the DJANGO option in the `> 3.5` case ?
Might be a bit… | |||||
OPTIONS_GROUP_BACKENDS:= ${OPTIONS_GROUP_BACKENDS:NDJANGO} | |||||
COMPLETE_OPTIONS_LIST:= ${COMPLETE_OPTIONS_LIST:NDJANGO} | |||||
PORT_OPTIONS:= ${PORT_OPTIONS:NDJANGO} | |||||
.elif ${PORT_OPTIONS:MDJANGO} | |||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}django22>=1.3:www/py-django22@${PY_FLAVOR} | |||||
.endif | |||||
.include <bsd.port.post.mk> |
Why did we use a GROUP here?