pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/go-grpc Replace /bin/bash in installed files. Bump...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f2ac495b7402
branches:  trunk
changeset: 352451:f2ac495b7402
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Sep 14 21:53:17 2016 +0000

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

diffstat:

 net/go-grpc/Makefile                  |  11 +++++++++--
 net/go-grpc/distinfo                  |   3 ++-
 net/go-grpc/patches/patch-coverage.sh |  13 +++++++++++++
 3 files changed, 24 insertions(+), 3 deletions(-)

diffs (59 lines):

diff -r e76c1e14fcbd -r f2ac495b7402 net/go-grpc/Makefile
--- a/net/go-grpc/Makefile      Wed Sep 14 21:34:34 2016 +0000
+++ b/net/go-grpc/Makefile      Wed Sep 14 21:53:17 2016 +0000
@@ -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}/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 -r e76c1e14fcbd -r f2ac495b7402 net/go-grpc/distinfo
--- a/net/go-grpc/distinfo      Wed Sep 14 21:34:34 2016 +0000
+++ b/net/go-grpc/distinfo      Wed Sep 14 21:53:17 2016 +0000
@@ -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 -r e76c1e14fcbd -r f2ac495b7402 net/go-grpc/patches/patch-coverage.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/go-grpc/patches/patch-coverage.sh     Wed Sep 14 21:53:17 2016 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index