freebsd-ports/net/rubygem-grpc/Makefile
Matthias Fechner ea469f10b0 Update net/rubygem-grpc to 1.10.0 which is required for gitlab 10.6.x.
Reviewed by:	swills (mentor)
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D15035
2018-04-14 16:28:26 +00:00

40 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= grpc
PORTVERSION= 1.10.0
CATEGORIES= net rubygems
MASTER_SITES= RG
MAINTAINER= idefix@fechner.net
COMMENT= Ruby implementation of gRPC
LICENSE= BSD3CLAUSE
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss \
grpc>=0:devel/grpc \
rubygem-google-protobuf>=3.1:devel/rubygem-google-protobuf \
rubygem-googleauth>=0.5.1:security/rubygem-googleauth \
rubygem-googleapis-common-protos-types>=1.0.0:devel/rubygem-googleapis-common-protos-types
LIB_DEPENDS= libcares.so:dns/c-ares \
libunwind.so:devel/libunwind
BUILD_DEPENDS= ca_root_nss>=0:security/ca_root_nss \
grpc>=0:devel/grpc
MAKE_JOBS_UNSAFE=yes
USES= gem gmake pkgconfig
USE_RUBY= yes
post-extract:
@${RM} -r ${WRKSRC}/include ${WRKSRC}/third_party ${WRKSRC}/src/boringssl \
${WRKSRC}/src/core ${WRKSRC}/Makefile ${WRKSRC}/.yardopts ${WRKSRC}/etc
post-patch:
@${REINPLACE_CMD} 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/src/ruby/lib/grpc.rb
@${REINPLACE_CMD} -E '/s\.files = /s;, "(Makefile|etc|include|third_party|src/boringssl|src/core)[^"]*"\.freeze;;g' \
${WRKSRC}/grpc.gemspec
@${REINPLACE_CMD} -e '/s\.files = /s;"\.yardopts"\.freeze, ;;' ${WRKSRC}/grpc.gemspec
.include <bsd.port.mk>