Replace /bin/bash in installed files. Bump PKGREVISION.

This commit is contained in:
wiz 2016-09-14 21:53:17 +00:00
parent e5888ef551
commit 1ec411f298
3 changed files with 24 additions and 3 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.1 2016/09/11 09:52:41 bsiegert Exp $
#
# $NetBSD: Makefile,v 1.2 2016/09/14 21:53:17 wiz Exp $
DISTNAME= go-grpc-1.0.1
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=grpc/}
GITHUB_PROJECT= grpc-go
@ -24,9 +24,16 @@ GO_BUILD_PATTERN+= ${GO_SRCPATH}/peer/...
GO_BUILD_PATTERN+= ${GO_SRCPATH}/reflection/...
GO_BUILD_PATTERN+= ${GO_SRCPATH}/transport/...
REPLACE_SH+= codegen.sh
REPLACE_SH+= coverage.sh
#pre-patch:
# ${RM} -rf ${WRKSRC}/test
# due to patch
post-install:
${RM} -f ${DESTDIR}${PREFIX}/gopkg/src/google.golang.org/grpc/coverage.sh.orig
.include "../../devel/go-glog/buildlink3.mk"
.include "../../devel/go-protobuf/buildlink3.mk"
.include "../../net/go-net/buildlink3.mk"

View file

@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.1 2016/09/11 09:52:41 bsiegert Exp $
$NetBSD: distinfo,v 1.2 2016/09/14 21:53:17 wiz Exp $
SHA1 (go-grpc-1.0.1.tar.gz) = 94226a3f8c024eb1972a6c2f9c5af316d486542f
RMD160 (go-grpc-1.0.1.tar.gz) = e0e85abcde8705af7dce033229645990259a3d5b
SHA512 (go-grpc-1.0.1.tar.gz) = 2492b0f1a98a872ddb42cd72de3d251122e8b25f60d4349555ee2c3da9c0ca0aeefbe3fcfe3b088e07d6ec897d3e7f286510ebc8b8cb98d7dbb45ee7472cb5a4
Size (go-grpc-1.0.1.tar.gz) = 202220 bytes
SHA1 (patch-coverage.sh) = 54cbbd992014535f3ed69f518b99bf14de8000aa

View file

@ -0,0 +1,13 @@
$NetBSD: patch-coverage.sh,v 1.1 2016/09/14 21:53:17 wiz Exp $
--- coverage.sh.orig 2016-09-14 21:51:03.427200228 +0000
+++ coverage.sh
@@ -12,7 +12,7 @@ generate_cover_data() {
mkdir "$workdir"
for pkg in "$@"; do
- if [ $pkg == "google.golang.org/grpc" -o $pkg == "google.golang.org/grpc/transport" -o $pkg == "google.golang.org/grpc/metadata" -o $pkg == "google.golang.org/grpc/credentials" ]
+ if [ $pkg = "google.golang.org/grpc" -o $pkg = "google.golang.org/grpc/transport" -o $pkg = "google.golang.org/grpc/metadata" -o $pkg = "google.golang.org/grpc/credentials" ]
then
f="$workdir/$(echo $pkg | tr / -)"
go test -covermode="$mode" -coverprofile="$f.cover" "$pkg"