Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2018 16:06:59 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r457907 - in head/net/rubygem-grpc: . files
Message-ID:  <201801021606.w02G6xxJ033897@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Tue Jan  2 16:06:59 2018
New Revision: 457907
URL: https://svnweb.freebsd.org/changeset/ports/457907

Log:
  net/rubygem-grpc: update to 1.8.0
  
  PR:		224800
  Approved by:	Matthias Fechner <idefix@fechner.net> (maintainer)

Modified:
  head/net/rubygem-grpc/Makefile   (contents, props changed)
  head/net/rubygem-grpc/distinfo   (contents, props changed)
  head/net/rubygem-grpc/files/grpc.gemspec
  head/net/rubygem-grpc/files/patch-src_ruby_ext_grpc_extconf.rb   (contents, props changed)
  head/net/rubygem-grpc/files/patch-src_ruby_lib_grpc.rb   (contents, props changed)

Modified: head/net/rubygem-grpc/Makefile
==============================================================================
--- head/net/rubygem-grpc/Makefile	Tue Jan  2 16:06:24 2018	(r457906)
+++ head/net/rubygem-grpc/Makefile	Tue Jan  2 16:06:59 2018	(r457907)
@@ -1,8 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	grpc
-PORTVERSION=	1.4.0
-PORTREVISION=	2
+PORTVERSION=	1.8.0
 CATEGORIES=	net rubygems
 MASTER_SITES=	RG
 
@@ -14,9 +13,11 @@ LICENSE=	BSD3CLAUSE
 RUN_DEPENDS=	ca_root_nss>=0:security/ca_root_nss \
 		grpc>=0:devel/grpc \
 		rubygem-google-protobuf>=3.0:devel/rubygem-google-protobuf \
-		rubygem-googleauth>=0.5.1:security/rubygem-googleauth
+		rubygem-googleauth>=0.5.1:security/rubygem-googleauth \
+		rubygem-googleapis-common-protos-types>=1.0.0:devel/rubygem-googleapis-common-protos-types
 
-LIB_DEPENDS=	libcares.so:dns/c-ares
+LIB_DEPENDS=	libcares.so:dns/c-ares \
+		libunwind.so:devel/libunwind
 
 BUILD_DEPENDS=	ca_root_nss>=0:security/ca_root_nss \
 		grpc>=0:devel/grpc
@@ -30,5 +31,8 @@ post-extract:
 	@${RM} -r ${WRKSRC}/include ${WRKSRC}/third_party ${WRKSRC}/src/boringssl \
 		${WRKSRC}/src/core ${WRKSRC}/Makefile ${WRKSRC}/.yardopts ${WRKSRC}/etc
 	@${CP} ${FILESDIR}/grpc.gemspec ${WRKSRC}
+
+post-patch:
+	@${REINPLACE_CMD} 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/src/ruby/lib/grpc.rb
 
 .include <bsd.port.mk>

Modified: head/net/rubygem-grpc/distinfo
==============================================================================
--- head/net/rubygem-grpc/distinfo	Tue Jan  2 16:06:24 2018	(r457906)
+++ head/net/rubygem-grpc/distinfo	Tue Jan  2 16:06:59 2018	(r457907)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1498614608
-SHA256 (rubygem/grpc-1.4.0.gem) = 927d8d3b486d8fa597cab6932b77a7a2b932e66d240d2182599ae2bac82e38ea
-SIZE (rubygem/grpc-1.4.0.gem) = 2736128
+TIMESTAMP = 1514703376
+SHA256 (rubygem/grpc-1.8.0.gem) = 1372253d7fb102a2e1d9c6e93275dab328bf8f66bdc202bad368c02256de9e0d
+SIZE (rubygem/grpc-1.8.0.gem) = 2744832

Modified: head/net/rubygem-grpc/files/grpc.gemspec
==============================================================================
Binary file (source and/or target). No diff available.

Modified: head/net/rubygem-grpc/files/patch-src_ruby_ext_grpc_extconf.rb
==============================================================================
--- head/net/rubygem-grpc/files/patch-src_ruby_ext_grpc_extconf.rb	Tue Jan  2 16:06:24 2018	(r457906)
+++ head/net/rubygem-grpc/files/patch-src_ruby_ext_grpc_extconf.rb	Tue Jan  2 16:06:59 2018	(r457907)
@@ -1,6 +1,6 @@
---- src/ruby/ext/grpc/extconf.rb.orig	2017-06-28 17:25:39 UTC
+--- src/ruby/ext/grpc/extconf.rb.orig	2017-12-31 07:02:12 UTC
 +++ src/ruby/ext/grpc/extconf.rb
-@@ -70,9 +70,9 @@ ENV['LD'] = ENV['CC']
+@@ -56,9 +56,9 @@ ENV['LD'] = ENV['CC']
  
  ENV['AR'] = 'libtool -o' if RUBY_PLATFORM =~ /darwin/
  
@@ -12,8 +12,8 @@
 +ENV['EMBED_CARES'] = 'false'
  ENV['ARCH_FLAGS'] = RbConfig::CONFIG['ARCH_FLAG']
  ENV['ARCH_FLAGS'] = '-arch i386 -arch x86_64' if RUBY_PLATFORM =~ /darwin/
- ENV['CFLAGS'] = '-DGPR_BACKWARDS_COMPATIBILITY_MODE'
-@@ -81,16 +81,16 @@ output_dir = File.expand_path(RbConfig::CONFIG['topdir
+ ENV['CPPFLAGS'] = '-DGPR_BACKWARDS_COMPATIBILITY_MODE'
+@@ -67,17 +67,18 @@ output_dir = File.expand_path(RbConfig::CONFIG['topdir
  grpc_lib_dir = File.join(output_dir, 'libs', grpc_config)
  ENV['BUILDDIR'] = output_dir
  
@@ -21,13 +21,16 @@
 -  puts 'Building internal gRPC into ' + grpc_lib_dir
 -  nproc = 4
 -  nproc = Etc.nprocessors * 2 if Etc.respond_to? :nprocessors
--  system("make -j#{nproc} -C #{grpc_root} #{grpc_lib_dir}/libgrpc.a CONFIG=#{grpc_config} Q=")
+-  make = bsd ? 'gmake' : 'make'
+-  system("#{make} -j#{nproc} -C #{grpc_root} #{grpc_lib_dir}/libgrpc.a CONFIG=#{grpc_config} Q=")
 -  exit 1 unless $? == 0
 -end
 +#unless windows
 +#  puts 'Building internal gRPC into ' + grpc_lib_dir
-+#  puts("gmake -C #{grpc_root} #{grpc_lib_dir}/libgrpc.a CONFIG=#{grpc_config} Q=")
-+#  system("gmake -C #{grpc_root} #{grpc_lib_dir}/libgrpc.a CONFIG=#{grpc_config} Q=")
++#  nproc = 4
++#  nproc = Etc.nprocessors * 2 if Etc.respond_to? :nprocessors
++#  make = bsd ? 'gmake' : 'make'
++#  system("#{make} -j#{nproc} -C #{grpc_root} #{grpc_lib_dir}/libgrpc.a CONFIG=#{grpc_config} Q=")
 +#  exit 1 unless $? == 0
 +#end
  

Modified: head/net/rubygem-grpc/files/patch-src_ruby_lib_grpc.rb
==============================================================================
--- head/net/rubygem-grpc/files/patch-src_ruby_lib_grpc.rb	Tue Jan  2 16:06:24 2018	(r457906)
+++ head/net/rubygem-grpc/files/patch-src_ruby_lib_grpc.rb	Tue Jan  2 16:06:59 2018	(r457907)
@@ -1,11 +1,11 @@
---- src/ruby/lib/grpc.rb.orig	2017-06-28 17:25:39 UTC
+--- src/ruby/lib/grpc.rb.orig	2017-12-31 07:02:12 UTC
 +++ src/ruby/lib/grpc.rb
-@@ -27,7 +27,7 @@
- # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+@@ -12,7 +12,7 @@
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
  
 -ssl_roots_path = File.expand_path('../../../../etc/roots.pem', __FILE__)
-+ssl_roots_path = '/usr/local/etc/ssl/cert.pem'
++ssl_roots_path = '%%LOCALBASE%%/etc/ssl/cert.pem'
  
  require_relative 'grpc/errors'
  require_relative 'grpc/grpc'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801021606.w02G6xxJ033897>