diff options
author | wiz <wiz@pkgsrc.org> | 2016-09-14 21:53:17 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2016-09-14 21:53:17 +0000 |
commit | 414df823ad13faa9f81b4d144a40cf68a6a89c7b (patch) | |
tree | 765be4fb4317c3f57357b816c4dd6229a6aa4052 /net | |
parent | ace5bf736a2b596dd497e1f843eb7c8df9bda1ac (diff) | |
download | pkgsrc-414df823ad13faa9f81b4d144a40cf68a6a89c7b.tar.gz |
Replace /bin/bash in installed files. Bump PKGREVISION.
Diffstat (limited to 'net')
-rw-r--r-- | net/go-grpc/Makefile | 11 | ||||
-rw-r--r-- | net/go-grpc/distinfo | 3 | ||||
-rw-r--r-- | net/go-grpc/patches/patch-coverage.sh | 13 |
3 files changed, 24 insertions, 3 deletions
diff --git a/net/go-grpc/Makefile b/net/go-grpc/Makefile index e98fd7fb56f..7d99971ec78 100644 --- a/net/go-grpc/Makefile +++ b/net/go-grpc/Makefile @@ -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" diff --git a/net/go-grpc/distinfo b/net/go-grpc/distinfo index 0ffe9284abd..2f4dfd86fe9 100644 --- a/net/go-grpc/distinfo +++ b/net/go-grpc/distinfo @@ -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 diff --git a/net/go-grpc/patches/patch-coverage.sh b/net/go-grpc/patches/patch-coverage.sh new file mode 100644 index 00000000000..0a6f05b6ea4 --- /dev/null +++ b/net/go-grpc/patches/patch-coverage.sh @@ -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" |