protoc 2.6.1.1-universal-mingw32 → 2.6.1.2-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/protoc/version.rb +1 -1
- metadata +6 -6
- data/ext/protoc/Makefile +0 -8
- data/ext/protoc/Makefile.in +0 -24
- data/ext/protoc/extconf.rb +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 273870c8a9e62e1976f778d2bbca8dc803d3e853
|
4
|
+
data.tar.gz: da141f91093fb21438e9fd488e47616b98c2b330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 960cee214301ad92a85ce962707d034b3d67bf4eabc51ae861a421e70f2039015d4835eb15143d97b6a88ae1987f4d5bf7cb7a370fc9be0ea487b148e922afe5
|
7
|
+
data.tar.gz: a1b6424f6919aa205619a8b36abd4dc570ff6ee7fde7d7b0b8ef75ffc57944f97ea0dc0b2ee17a7db102322f86fdba5d8ee85a03f0f878dd2d0baf7d018dccbb
|
data/lib/protoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.1.
|
4
|
+
version: 2.6.1.2
|
5
5
|
platform: universal-mingw32
|
6
6
|
authors:
|
7
7
|
- Ben Jansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,10 +66,13 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.4'
|
69
|
-
description:
|
69
|
+
description: |
|
70
70
|
This gem includes protoc, the protobuf compiler, binaries for Linux, Mac, and Windows. It installs a executable shim
|
71
71
|
called `protoc` that picks the right one to run on your platform. You can use this gem to ensure that you have a protoc
|
72
72
|
of the version you need. By using this gem, you will not need to manually install the right protoc on your hosts.
|
73
|
+
|
74
|
+
The pre-built linux protoc binaries are not compatible with all systems. For this reason the protobuf source code is
|
75
|
+
included in this gem, and a new protoc binary is built upon gem installation when the pre-built one does not function.
|
73
76
|
email:
|
74
77
|
executables:
|
75
78
|
- protoc
|
@@ -89,9 +92,6 @@ files:
|
|
89
92
|
- bin/protoc-2.6.1-osx-x86_64.exe
|
90
93
|
- bin/protoc-2.6.1-windows-x86_32.exe
|
91
94
|
- bin/protoc-2.6.1-windows-x86_64.exe
|
92
|
-
- ext/protoc/Makefile
|
93
|
-
- ext/protoc/Makefile.in
|
94
|
-
- ext/protoc/extconf.rb
|
95
95
|
- lib/protoc/protocol_buffers_license.txt
|
96
96
|
- lib/protoc/version.rb
|
97
97
|
homepage: https://github.com/Tripwire/protoc-gem
|
data/ext/protoc/Makefile
DELETED
data/ext/protoc/Makefile.in
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
PROTOBUF_VERSION = @PROTOBUF_VERSION@
|
2
|
-
PROTOC_BINARY_PATH = @PROTOC_BINARY_PATH@
|
3
|
-
|
4
|
-
build: stage/bin/protoc
|
5
|
-
|
6
|
-
protobuf-$(PROTOBUF_VERSION):
|
7
|
-
curl -L https://github.com/google/protobuf/archive/v$(PROTOBUF_VERSION).tar.gz | tar xz
|
8
|
-
|
9
|
-
protobuf-$(PROTOBUF_VERSION)/configure: | protobuf-$(PROTOBUF_VERSION)
|
10
|
-
cd protobuf-$(PROTOBUF_VERSION) && \
|
11
|
-
autoreconf -f -i -Wall,no-obsolete && \
|
12
|
-
rm -rf autom4te.cache config.h.in~
|
13
|
-
|
14
|
-
protobuf-$(PROTOBUF_VERSION)/Makefile: protobuf-$(PROTOBUF_VERSION)/configure
|
15
|
-
cd protobuf-$(PROTOBUF_VERSION) && \
|
16
|
-
./configure --prefix=$(shell pwd)/stage --disable-shared
|
17
|
-
|
18
|
-
stage/bin/protoc: protobuf-$(PROTOBUF_VERSION)/Makefile
|
19
|
-
cd protobuf-$(PROTOBUF_VERSION) && \
|
20
|
-
$(MAKE) install
|
21
|
-
|
22
|
-
install: stage/bin/protoc
|
23
|
-
mv -f stage/bin/protoc $(PROTOC_BINARY_PATH)
|
24
|
-
rm -rf protobuf-$(PROTOBUF_VERSION) stage
|
data/ext/protoc/extconf.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
require 'platform'
|
2
|
-
require_relative '../../lib/protoc/version'
|
3
|
-
|
4
|
-
PLATFORM_TO_PROTOC_ARCH = {:x86 => :x86_32, :x86_64 => :x86_64}
|
5
|
-
|
6
|
-
# Work around for lack of x86_64 support in Platform 0.4.0, which is the
|
7
|
-
# latest in rubygems.org. https://github.com/mmower/platform/issues/3
|
8
|
-
def platform_arch
|
9
|
-
if Platform::ARCH == :unknown && RUBY_PLATFORM =~ /x86_64/
|
10
|
-
:x86_64
|
11
|
-
else
|
12
|
-
Platform::ARCH
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
OS = case Platform::OS
|
17
|
-
when :win32
|
18
|
-
'windows'
|
19
|
-
when :unix
|
20
|
-
case Platform::IMPL
|
21
|
-
when :macosx
|
22
|
-
'osx'
|
23
|
-
when :linux
|
24
|
-
'linux'
|
25
|
-
else
|
26
|
-
Platform::IMPL.to_s
|
27
|
-
end
|
28
|
-
else
|
29
|
-
Platform::OS.to_s
|
30
|
-
end
|
31
|
-
|
32
|
-
HERE = File.expand_path(File.dirname(__FILE__))
|
33
|
-
binpath = File.expand_path(File.join(HERE, '..', '..', 'bin'))
|
34
|
-
protoc_path = File.join(
|
35
|
-
binpath, "protoc-#{Protoc::PROTOBUF_VERSION}-#{OS}-#{PLATFORM_TO_PROTOC_ARCH[platform_arch]}.exe"
|
36
|
-
)
|
37
|
-
`#{protoc_path} --version`
|
38
|
-
if $? != 0 && OS != 'windows'
|
39
|
-
Dir.chdir(HERE) do
|
40
|
-
template = File.read(File.join(HERE, 'Makefile.in'))
|
41
|
-
template.gsub!('@PROTOBUF_VERSION@', Protoc::PROTOBUF_VERSION)
|
42
|
-
template.gsub!('@PROTOC_BINARY_PATH@', protoc_path)
|
43
|
-
File.write(File.join(HERE, 'Makefile'), template)
|
44
|
-
end
|
45
|
-
end
|