pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/go-grpc



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Sep 14 21:53:17 UTC 2016

Modified Files:
        pkgsrc/net/go-grpc: Makefile distinfo
Added Files:
        pkgsrc/net/go-grpc/patches: patch-coverage.sh

Log Message:
Replace /bin/bash in installed files. Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/go-grpc/Makefile \
    pkgsrc/net/go-grpc/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/go-grpc/patches/patch-coverage.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/go-grpc/Makefile
diff -u pkgsrc/net/go-grpc/Makefile:1.1 pkgsrc/net/go-grpc/Makefile:1.2
--- pkgsrc/net/go-grpc/Makefile:1.1     Sun Sep 11 09:52:41 2016
+++ pkgsrc/net/go-grpc/Makefile Wed Sep 14 21:53:17 2016
@@ -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"
Index: pkgsrc/net/go-grpc/distinfo
diff -u pkgsrc/net/go-grpc/distinfo:1.1 pkgsrc/net/go-grpc/distinfo:1.2
--- pkgsrc/net/go-grpc/distinfo:1.1     Sun Sep 11 09:52:41 2016
+++ pkgsrc/net/go-grpc/distinfo Wed Sep 14 21:53:17 2016
@@ -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

Added files:

Index: pkgsrc/net/go-grpc/patches/patch-coverage.sh
diff -u /dev/null pkgsrc/net/go-grpc/patches/patch-coverage.sh:1.1
--- /dev/null   Wed Sep 14 21:53:17 2016
+++ pkgsrc/net/go-grpc/patches/patch-coverage.sh        Wed Sep 14 21:53:17 2016
@@ -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