freebsd-ports/net/rubygem-grpc130/Makefile
Sunpoet Po-Chuan Hsieh d3932e0e48 Fix grpc issue in gitlab-ce
- While I'm here, use = instead of ?= because gitlab-ce does not have slave port
- Bump PORTREVISION for dependency change

gitlab-ce has some runtime issue with grpc versions, especially upb stuff.
Move all gitlab-ce dependencies to specific grpc/rubygem-grpc versions in order
to keep gitlab-ce port more robust.

The changes are as follows:
- Add devel/grpc134 (copied from devel/grpc)
- Add net/rubygem-grpc130 (copied from net/rubygem-grpc)
- Move gitlab-ce and its dependencies to grpc134 and rubygem-grpc130

Differential Revision:	https://reviews.freebsd.org/D28491
Submitted by:	sunpoet (myself)
Approved by:	mfechner
Tested by:	mfechner
2021-02-06 01:22:51 +00:00

37 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= grpc
PORTVERSION= 1.30.2
PORTREVISION= 1
CATEGORIES= net rubygems
MASTER_SITES= RG
PKGNAMESUFFIX= 130
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Ruby implementation of gRPC
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libcares.so:dns/c-ares \
libgrpc.so:devel/grpc134
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss \
rubygem-google-protobuf>=3.12<4:devel/rubygem-google-protobuf \
rubygem-googleapis-common-protos-types>=1.0<2:devel/rubygem-googleapis-common-protos-types
USES= gem gmake pkgconfig
USE_RUBY= yes
MAKE_JOBS_UNSAFE= yes
PORTSCOUT= limit:^1\.30\.
post-extract:
@${RM} ${WRKSRC}/Makefile ${WRKSRC}/.yardopts
@${RM} -r ${WRKSRC}/etc ${WRKSRC}/include ${WRKSRC}/third_party ${WRKSRC}/src/boringssl ${WRKSRC}/src/core
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/ruby/lib/grpc.rb
@${REINPLACE_CMD} -Ee '/s\.files = /s;, "(Makefile|etc|include|third_party|src/boringssl|src/core)[^"]*"\.freeze;;g' ${WRKSRC}/${GEMSPEC}
@${REINPLACE_CMD} -e '/s\.files = /s|"\.yardopts"\.freeze, ||' ${WRKSRC}/${GEMSPEC}
.include <bsd.port.mk>