freebsd-ports/www/py-google-api-core/Makefile

33 lines
1 KiB
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
PORTNAME= google-api-core
PORTVERSION= 2.1.1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Core Google API Client Library
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}google-auth>=1.25.0<3.0:security/py-google-auth@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}googleapis-common-protos>=1.6.0<2.0:devel/py-googleapis-common-protos@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}protobuf>=3.12.0,1:devel/py-protobuf@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.18.0<3.0.0:www/py-requests@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
OPTIONS_DEFINE= GRPC GRPCGCP
OPTIONS_DEFAULT=GRPC
GRPC_DESC= gRPC support
GRPCGCP_DESC= gRPC support for GCP
GRPC_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}grpcio>=1.33.2<2.0:devel/py-grpcio@${PY_FLAVOR}
GRPCGCP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}grpcio-gcp>=0.2.2:devel/py-grpcio-gcp@${PY_FLAVOR}
.include <bsd.port.mk>