protoc 2.6.1.1-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 +7 -0
- data/bin/protoc +36 -0
- data/bin/protoc-2.6.1-linux-x86_32.exe +0 -0
- data/bin/protoc-2.6.1-linux-x86_64.exe +0 -0
- data/bin/protoc-2.6.1-osx-x86_32.exe +0 -0
- data/bin/protoc-2.6.1-osx-x86_64.exe +0 -0
- data/bin/protoc-2.6.1-windows-x86_32.exe +0 -0
- data/bin/protoc-2.6.1-windows-x86_64.exe +0 -0
- data/ext/protoc/Makefile +8 -0
- data/ext/protoc/Makefile.in +24 -0
- data/ext/protoc/extconf.rb +45 -0
- data/lib/protoc/protocol_buffers_license.txt +43 -0
- data/lib/protoc/version.rb +6 -0
- metadata +121 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cadfb7275e91bc6718ac08bed5856a674c0674aa
|
4
|
+
data.tar.gz: 45dfb901cb4d580e1dbb20871bb575de9f005c04
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 13451432b26ffcbf4091b41a9dec319d1c88fbed512f969e3adbb164233afec3dfd6d354c959e70085e6332d2a59648d5c4ec43c8d479ea54717583caa9c1ed4
|
7
|
+
data.tar.gz: dc3d3381b830ce354c7011f678753c91cc1466ff30600e5d44234d7d559734d9ff5173444b2b122bdb90b1bacdccf14bfcc115241a36dd68344a98fcec7733c4
|
data/bin/protoc
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'platform'
|
4
|
+
require 'protoc/version'
|
5
|
+
|
6
|
+
PLATFORM_TO_PROTOC_ARCH = {:x86 => :x86_32, :x86_64 => :x86_64}
|
7
|
+
|
8
|
+
# Work around for lack of x86_64 support in Platform 0.4.0, which is the
|
9
|
+
# latest in rubygems.org. https://github.com/mmower/platform/issues/3
|
10
|
+
def platform_arch
|
11
|
+
if Platform::ARCH == :unknown && RUBY_PLATFORM =~ /x86_64/
|
12
|
+
:x86_64
|
13
|
+
else
|
14
|
+
Platform::ARCH
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def exec_protoc_for_os(os)
|
19
|
+
exec("#{File.dirname(__FILE__)}/protoc-#{Protoc::PROTOBUF_VERSION}-#{os}-#{PLATFORM_TO_PROTOC_ARCH[platform_arch]}.exe", *ARGV)
|
20
|
+
end
|
21
|
+
|
22
|
+
case Platform::OS
|
23
|
+
when :win32
|
24
|
+
exec_protoc_for_os('windows')
|
25
|
+
when :unix
|
26
|
+
case Platform::IMPL
|
27
|
+
when :macosx
|
28
|
+
exec_protoc_for_os('osx')
|
29
|
+
when :linux
|
30
|
+
exec_protoc_for_os('linux')
|
31
|
+
else
|
32
|
+
raise "I don't have a binary for #{Platform::IMPL}"
|
33
|
+
end
|
34
|
+
else
|
35
|
+
raise "I don't have a binary for #{Platform::OS}"
|
36
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/ext/protoc/Makefile
ADDED
@@ -0,0 +1,24 @@
|
|
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
|
@@ -0,0 +1,45 @@
|
|
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
|
@@ -0,0 +1,43 @@
|
|
1
|
+
This license applies to all parts of Protocol Buffers except the following:
|
2
|
+
|
3
|
+
- Atomicops support for generic gcc, located in
|
4
|
+
src/google/protobuf/stubs/atomicops_internals_generic_gcc.h.
|
5
|
+
This file is copyrighted by Red Hat Inc.
|
6
|
+
|
7
|
+
- Atomicops support for AIX/POWER, located in
|
8
|
+
src/google/protobuf/stubs/atomicops_internals_power.h.
|
9
|
+
This file is copyrighted by Bloomberg Finance LP.
|
10
|
+
|
11
|
+
Copyright 2014, Google Inc. All rights reserved.
|
12
|
+
|
13
|
+
Redistribution and use in source and binary forms, with or without
|
14
|
+
modification, are permitted provided that the following conditions are
|
15
|
+
met:
|
16
|
+
|
17
|
+
* Redistributions of source code must retain the above copyright
|
18
|
+
notice, this list of conditions and the following disclaimer.
|
19
|
+
* Redistributions in binary form must reproduce the above
|
20
|
+
copyright notice, this list of conditions and the following disclaimer
|
21
|
+
in the documentation and/or other materials provided with the
|
22
|
+
distribution.
|
23
|
+
* Neither the name of Google Inc. nor the names of its
|
24
|
+
contributors may be used to endorse or promote products derived from
|
25
|
+
this software without specific prior written permission.
|
26
|
+
|
27
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
28
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
29
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
30
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
31
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
32
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
33
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
34
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
35
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
36
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
37
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
38
|
+
|
39
|
+
Code generated by the Protocol Buffer compiler is owned by the owner
|
40
|
+
of the input file used when generating it. This code is not
|
41
|
+
standalone and requires a support library to be linked with it. This
|
42
|
+
support library is itself covered by the above license.
|
43
|
+
|
metadata
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: protoc
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.6.1.1
|
5
|
+
platform: universal-mswin32
|
6
|
+
authors:
|
7
|
+
- Ben Jansen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '11.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '11.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubygems-tasks
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.2'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: Platform
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.4'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.4'
|
69
|
+
description: |-
|
70
|
+
This gem includes protoc, the protobuf compiler, binaries for Linux, Mac, and Windows. It installs a executable shim
|
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
|
+
of the version you need. By using this gem, you will not need to manually install the right protoc on your hosts.
|
73
|
+
email:
|
74
|
+
executables:
|
75
|
+
- protoc
|
76
|
+
- protoc-2.6.1-linux-x86_32.exe
|
77
|
+
- protoc-2.6.1-linux-x86_64.exe
|
78
|
+
- protoc-2.6.1-osx-x86_32.exe
|
79
|
+
- protoc-2.6.1-osx-x86_64.exe
|
80
|
+
- protoc-2.6.1-windows-x86_32.exe
|
81
|
+
- protoc-2.6.1-windows-x86_64.exe
|
82
|
+
extensions: []
|
83
|
+
extra_rdoc_files: []
|
84
|
+
files:
|
85
|
+
- bin/protoc
|
86
|
+
- bin/protoc-2.6.1-linux-x86_32.exe
|
87
|
+
- bin/protoc-2.6.1-linux-x86_64.exe
|
88
|
+
- bin/protoc-2.6.1-osx-x86_32.exe
|
89
|
+
- bin/protoc-2.6.1-osx-x86_64.exe
|
90
|
+
- bin/protoc-2.6.1-windows-x86_32.exe
|
91
|
+
- bin/protoc-2.6.1-windows-x86_64.exe
|
92
|
+
- ext/protoc/Makefile
|
93
|
+
- ext/protoc/Makefile.in
|
94
|
+
- ext/protoc/extconf.rb
|
95
|
+
- lib/protoc/protocol_buffers_license.txt
|
96
|
+
- lib/protoc/version.rb
|
97
|
+
homepage: https://github.com/Tripwire/protoc-gem
|
98
|
+
licenses:
|
99
|
+
- BSD
|
100
|
+
metadata: {}
|
101
|
+
post_install_message:
|
102
|
+
rdoc_options: []
|
103
|
+
require_paths:
|
104
|
+
- lib
|
105
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
requirements: []
|
116
|
+
rubyforge_project:
|
117
|
+
rubygems_version: 2.4.5.1
|
118
|
+
signing_key:
|
119
|
+
specification_version: 4
|
120
|
+
summary: Protoc binaries for Mac, Linux, and Windows
|
121
|
+
test_files: []
|