tebako 0.8.3 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CMakeLists.txt +15 -8
- data/Rakefile +0 -11
- data/common.env +1 -1
- data/lib/tebako/cli_helpers.rb +2 -1
- data/lib/tebako/deploy_helper.rb +19 -5
- data/lib/tebako/packager/patch_main.rb +0 -1
- data/lib/tebako/version.rb +1 -1
- data/tebako.gemspec +0 -2
- metadata +2 -3
- data/version.txt +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebe002df1e8e8daadd33a026a9c6025942fbfd862a3db0c3ef1c65ffefa4b631
|
4
|
+
data.tar.gz: d814f2f7c57f01d497472afb7262f7ae635af13f16e107eaa3794dd180474309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2e39d4b7869385b5ef17ed3e6233ea83040f18b8b791a8ac195c3a4c94846954e4a7a1ef64e6a176fd4f4c335cd81c234446b41602e8dcd45e03fdde137cf83
|
7
|
+
data.tar.gz: e97d5ffc1d62860a623d3a342a7258f43bbfd9922cb341a26cc6ffcdeda8d5efac2aafa1e67d6e0d8e5e1d7edf6860b5a91df7d739f6e38aa192fa3bc342addc
|
data/CMakeLists.txt
CHANGED
@@ -33,8 +33,9 @@ if(${CMAKE_VERSION} VERSION_GREATER "3.23.10")
|
|
33
33
|
cmake_policy(SET CMP0135 NEW)
|
34
34
|
endif()
|
35
35
|
|
36
|
-
|
37
|
-
|
36
|
+
if ("-${TEBAKO_VERSION}" STREQUAL "-")
|
37
|
+
message(FATAL_ERROR "Tebako version is not specified.")
|
38
|
+
endif()
|
38
39
|
|
39
40
|
project(tebako_packager VERSION ${TEBAKO_VERSION})
|
40
41
|
|
@@ -203,7 +204,7 @@ string(CONCAT RUBY_API_VER ${RUBY_VER_BASE} ".0")
|
|
203
204
|
# list(GET LIBDWARFS_WR_VER_COMPONENTS 2 LIBDWARFS_WR_VER_PATCH)
|
204
205
|
# set (LIBDWARFS_WR_VER_M ${LIBDWARFS_WR_VER_MAJOR}.${LIBDWARFS_WR_VER_MINOR}.${LIBDWARFS_WR_VER_PATCH})
|
205
206
|
#else(DWARFS_PRELOAD)
|
206
|
-
def_ext_prj_g(DWARFS_WR "v0.5.
|
207
|
+
def_ext_prj_g(DWARFS_WR "v0.5.9")
|
207
208
|
#endif(DWARFS_PRELOAD)
|
208
209
|
|
209
210
|
set(LIBYAML_RUBY_OPTION "")
|
@@ -331,7 +332,7 @@ endif(DWARFS_PRELOAD)
|
|
331
332
|
# Ruby
|
332
333
|
|
333
334
|
set(RUBY_L_FLAGS "-L${DEPS_LIB_DIR} -L${CMAKE_CURRENT_BINARY_DIR}")
|
334
|
-
set(RUBY_C_FLAGS "-
|
335
|
+
set(RUBY_C_FLAGS "-fPIC -I${DEPS_INCLUDE_DIR} -I${CMAKE_CURRENT_SOURCE_DIR}/include")
|
335
336
|
|
336
337
|
# Shadow
|
337
338
|
# https://github.com/deivid-rodriguez/byebug/issues/825
|
@@ -340,16 +341,13 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
340
341
|
string(CONCAT RUBY_C_FLAGS ${RUBY_C_FLAGS} " -fdeclspec")
|
341
342
|
endif()
|
342
343
|
|
343
|
-
set(C_FLAGS_DEST
|
344
|
+
set(C_FLAGS_DEST cflags)
|
344
345
|
|
345
346
|
if(IS_DARWIN)
|
346
347
|
string(CONCAT RUBY_C_FLAGS ${RUBY_C_FLAGS} " -I${BREW_PREFIX}/opt/openssl@${OPENSSL_VER}/include -I${BREW_PREFIX}/opt/zlib/include -I${BREW_PREFIX}/include")
|
347
348
|
string(CONCAT RUBY_L_FLAGS ${RUBY_L_FLAGS} " -L${BREW_PREFIX}/opt/openssl@${OPENSSL_VER}/lib -L${BREW_PREFIX}/opt/zlib/lib -L${BREW_PREFIX}/lib")
|
348
349
|
set(OPENSSL_RUBY_OPTION "--with-openssl-dir=${BREW_PREFIX}/opt/openssl@${OPENSSL_VER}")
|
349
|
-
set(C_FLAGS_DEST cflags)
|
350
350
|
else(IS_DARWIN)
|
351
|
-
string(CONCAT RUBY_L_FLAGS ${RUBY_L_FLAGS} " -static-libgcc")
|
352
|
-
|
353
351
|
if(IS_MUSL)
|
354
352
|
string(CONCAT RUBY_C_FLAGS ${RUBY_C_FLAGS} " -DENABLE_PATH_CHECK=0")
|
355
353
|
endif(IS_MUSL)
|
@@ -357,7 +355,13 @@ else(IS_DARWIN)
|
|
357
355
|
if(RB_W32)
|
358
356
|
string(CONCAT RUBY_C_FLAGS ${RUBY_C_FLAGS} " -DRB_W32=1")
|
359
357
|
string(CONCAT RUBY_L_FLAGS ${RUBY_L_FLAGS} " -l:libstdc++.a -L${TLIBD}")
|
358
|
+
set(C_FLAGS_DEST cppflags)
|
360
359
|
endif(RB_W32)
|
360
|
+
|
361
|
+
# Ruby 2.7 configure script error
|
362
|
+
if(${RUBY_VER} VERSION_LESS "3.0.0")
|
363
|
+
set(C_FLAGS_DEST cppflags)
|
364
|
+
endif()
|
361
365
|
endif(IS_DARWIN)
|
362
366
|
|
363
367
|
message(STATUS "Ruby build ${C_FLAGS_DEST}='${RUBY_C_FLAGS}'")
|
@@ -484,6 +488,9 @@ else (${SETUP_MODE})
|
|
484
488
|
${DEPS_INCLUDE_DIR}/tebako/tebako-version.h
|
485
489
|
)
|
486
490
|
|
491
|
+
#et_target_properties(tebako-fs PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
492
|
+
#target_compile_options(tebako-fs PRIVATE -fPIE)
|
493
|
+
|
487
494
|
if(${RUBY_VER} VERSION_LESS "3.3.0" AND "${OSTYPE_TXT}" MATCHES "^msys*")
|
488
495
|
target_compile_definitions(tebako-fs PUBLIC RB_W32_PRE_33)
|
489
496
|
endif(${RUBY_VER} VERSION_LESS "3.3.0" AND "${OSTYPE_TXT}" MATCHES "^msys*")
|
data/Rakefile
CHANGED
@@ -33,14 +33,3 @@ RuboCop::RakeTask.new
|
|
33
33
|
RSpec::Core::RakeTask.new(:spec)
|
34
34
|
|
35
35
|
task default: %i[rubocop spec]
|
36
|
-
|
37
|
-
desc "Generate version.txt"
|
38
|
-
task "generate_version_txt" do
|
39
|
-
require_relative "lib/tebako/version"
|
40
|
-
version_without_rc = Tebako::VERSION.gsub(/\.rc\d+/, "")
|
41
|
-
File.write(File.join(__dir__, "version.txt"), "#{version_without_rc}\n")
|
42
|
-
puts "Generating #{File.join(__dir__, "version.txt")}; version = #{version_without_rc}"
|
43
|
-
end
|
44
|
-
|
45
|
-
task build: :generate_version_txt
|
46
|
-
task release: :generate_version_txt
|
data/common.env
CHANGED
data/lib/tebako/cli_helpers.rb
CHANGED
@@ -55,7 +55,8 @@ module Tebako
|
|
55
55
|
# So we have to use \"xxx\"
|
56
56
|
@cfg_options ||=
|
57
57
|
"-DCMAKE_BUILD_TYPE=Release -DRUBY_VER:STRING=\"#{ruby_ver}\" -DRUBY_HASH:STRING=\"#{ruby_hash}\" " \
|
58
|
-
"-DDEPS:STRING=\"#{deps}\" -G \"#{m_files}\" -B \"#{output_folder}\" -S \"#{source}\""
|
58
|
+
"-DDEPS:STRING=\"#{deps}\" -G \"#{m_files}\" -B \"#{output_folder}\" -S \"#{source}\" " \
|
59
|
+
"-DTEBAKO_VERSION:STRING=\"#{Tebako::VERSION}\""
|
59
60
|
end
|
60
61
|
|
61
62
|
def clean_cache
|
data/lib/tebako/deploy_helper.rb
CHANGED
@@ -100,7 +100,7 @@ module Tebako
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def needs_bundler?
|
103
|
-
@gf_length.positive?
|
103
|
+
@gf_length.positive? && !@ruby_ver.ruby31?
|
104
104
|
end
|
105
105
|
|
106
106
|
def update_rubygems
|
@@ -171,14 +171,28 @@ module Tebako
|
|
171
171
|
end
|
172
172
|
|
173
173
|
def configure_commands
|
174
|
-
|
175
|
-
|
174
|
+
if @os_type =~ /msys/
|
175
|
+
configure_commands_msys
|
176
|
+
else
|
177
|
+
configure_commands_not_msys
|
178
|
+
end
|
176
179
|
|
177
180
|
@gem_command = File.join(@tbd, "gem#{@cmd_suffix}")
|
178
181
|
@bundler_command = File.join(@tbd, "bundle#{@bat_suffix}")
|
182
|
+
end
|
183
|
+
|
184
|
+
def configure_commands_msys
|
185
|
+
@cmd_suffix = ".cmd"
|
186
|
+
@bat_suffix = ".bat"
|
187
|
+
@force_ruby_platform = "true"
|
188
|
+
@nokogiri_option = "--use-system-libraries"
|
189
|
+
end
|
179
190
|
|
180
|
-
|
181
|
-
@
|
191
|
+
def configure_commands_not_msys
|
192
|
+
@cmd_suffix = ""
|
193
|
+
@bat_suffix = ""
|
194
|
+
@force_ruby_platform = "false"
|
195
|
+
@nokogiri_option = "--no-use-system-libraries"
|
182
196
|
end
|
183
197
|
|
184
198
|
def configure_scenario
|
data/lib/tebako/version.rb
CHANGED
data/tebako.gemspec
CHANGED
@@ -55,8 +55,6 @@ Gem::Specification.new do |spec|
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
spec.files << "version.txt"
|
59
|
-
|
60
58
|
spec.bindir = "exe"
|
61
59
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
62
60
|
spec.require_paths = %w[cmake exe ext include lib resources src tools/ci-scripts tools/cmake-scripts tools/includes]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tebako
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -209,7 +209,6 @@ files:
|
|
209
209
|
- tools/tests/setup-libhowardhinnerdate/CMakeLists.txt
|
210
210
|
- tools/tests/setup-librachive/CMakeLists.txt
|
211
211
|
- tools/tests/setup-libutfcpp/CMakeLists.txt
|
212
|
-
- version.txt
|
213
212
|
homepage: https://github.com/tamatebako/tebako
|
214
213
|
licenses:
|
215
214
|
- BSD-2-Clause
|
data/version.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.8.3
|