protoc 2.6.1.1-universal-mswin32 → 2.6.1.2-universal-mswin32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 3e087bd0f75c8af81d55aae67aa4c9f22b486b63
|
4
|
+
data.tar.gz: 89c25d068d3c40218d74158d6730c41a6f3e45a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c71d69733eff1ea1ec9b62b553f162079b8248dec6c756816589b591299097332c9ee959fa196e66d782012fae5f9efb17ee058ad7589b082545b4c88bbffcb4
|
7
|
+
data.tar.gz: ff3376eb89e454209b108c1626e1fc736fc43c5ce7d249331774daf090936bda7bef4b5955e51b145495c22bc969f7217c3fa0639c2351a1555c0fa47e095390
|
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-mswin32
|
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
|