svn commit: r453588 - head/devel/py-grpcio

Vanilla I. Shu vanilla at FreeBSD.org
Mon Nov 6 03:19:30 UTC 2017


Author: vanilla
Date: Mon Nov  6 03:19:28 2017
New Revision: 453588
URL: https://svnweb.freebsd.org/changeset/ports/453588

Log:
  1: Fix build with python3.
  2: add autoplist feature.

Deleted:
  head/devel/py-grpcio/pkg-plist
Modified:
  head/devel/py-grpcio/Makefile

Modified: head/devel/py-grpcio/Makefile
==============================================================================
--- head/devel/py-grpcio/Makefile	Mon Nov  6 03:13:14 2017	(r453587)
+++ head/devel/py-grpcio/Makefile	Mon Nov  6 03:19:28 2017	(r453588)
@@ -13,19 +13,25 @@ COMMENT=	HTTP/2-based RPC framework
 LICENSE=	BSD3CLAUSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>1:devel/py-six \
-		${PYTHON_PKGNAMEPREFIX}enum34>1:devel/py-enum34 \
-		${PYTHON_PKGNAMEPREFIX}protobuf>=3:devel/py-protobuf \
-		${PYTHON_PKGNAMEPREFIX}futures>=3:devel/py-futures
+		${PYTHON_PKGNAMEPREFIX}protobuf>=3:devel/py-protobuf
 LIB_DEPENDS=	libcares.so:dns/c-ares
 
 BROKEN_powerpc64=	fails to compile: cpu-ppc64le.c: 'AT_HWCAP2' undeclared
 
 USES=		localbase:ldflags python
-USE_PYTHON=	distutils
+USE_PYTHON=	autoplist distutils
 CFLAGS+=	-Ithird_party/boringssl/include
 LDFLAGS+=	-lcares
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VERSION} == "2.7"
+BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}enum34>1:devel/py-enum34 \
+		${PYTHON_PKGNAMEPREFIX}futures>=3:devel/py-futures
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/grpc/_cython/cygrpc.so
+	${REINPLACE_CMD} -e 's|.7.0/src/python/grpcio/||' ${_PYTHONPKGLIST}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list