Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 2017 03:19:29 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453588 - head/devel/py-grpcio
Message-ID:  <201711060319.vA63JT4F029215@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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