tebako 0.5.5 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,55 @@
1
+ # Copyright (c) 2024 [Ribose Inc](https://www.ribose.com).
2
+ # All rights reserved.
3
+ # This file is a part of tebako
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without
6
+ # modification, are permitted provided that the following conditions
7
+ # are met:
8
+ # 1. Redistributions of source code must retain the above copyright
9
+ # notice, this list of conditions and the following disclaimer.
10
+ # 2. Redistributions in binary form must reproduce the above copyright
11
+ # notice, this list of conditions and the following disclaimer in the
12
+ # documentation and/or other materials provided with the distribution.
13
+ #
14
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15
+ # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
16
+ # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17
+ # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
18
+ # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24
+ # POSSIBILITY OF SUCH DAMAGE.
25
+
26
+ def_ext_prj_t(LIBHOWARDHINNANTDATE "3.0.1" "7a390f200f0ccd207e8cff6757e04817c1a0aec3e327b006b7eb451c57ee3538")
27
+
28
+ message(STATUS "Collecting libutfcpp - " v${LIBHOWARDHINNANTDATE_VER} " at " ${LIBHOWARDHINNANTDATE_SOURCE_DIR})
29
+
30
+ set(CMAKE_ARGUMENTS -DCMAKE_INSTALL_PREFIX=${DEPS}
31
+ -DUTF8_INSTALL=OFF
32
+ -DUTF8_SAMPLES=OFF
33
+ -DUTF8_TESTS=OFF
34
+ -DCMAKE_BUILD_TYPE=Release
35
+ -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
36
+ -DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}
37
+ )
38
+
39
+ if(TEBAKO_BUILD_TARGET)
40
+ list(APPEND CMAKE_ARGUMENTS -DCMAKE_C_FLAGS=--target=${TEBAKO_BUILD_TARGET})
41
+ list(APPEND CMAKE_ARGUMENTS -DCMAKE_EXE_LINKER_FLAGS=--target=${TEBAKO_BUILD_TARGET})
42
+ list(APPEND CMAKE_ARGUMENTS -DCMAKE_SHARED_LINKER_FLAGS=--target=${TEBAKO_BUILD_TARGET})
43
+ endif(TEBAKO_BUILD_TARGET)
44
+
45
+ ExternalProject_Add(${LIBHOWARDHINNANTDATE_PRJ}
46
+ PREFIX "${DEPS}"
47
+ URL https://github.com/HowardHinnant/date/archive/refs/tags/v${LIBHOWARDHINNANTDATE_VER}.tar.gz
48
+ URL_HASH SHA256=${LIBHOWARDHINNANTDATE_HASH}
49
+ DOWNLOAD_NO_PROGRESS true
50
+ UPDATE_COMMAND ""
51
+ CMAKE_ARGS ${CMAKE_ARGUMENTS}
52
+ SOURCE_DIR ${LIBHOWARDHINNANTDATE_SOURCE_DIR}
53
+ BINARY_DIR ${LIBHOWARDHINNANTDATE_BINARY_DIR}
54
+ BUILD_BYPRODUCTS ${__LIBHOWARDHINNANTDATE}
55
+ )
@@ -0,0 +1,56 @@
1
+ # Copyright (c) 2022-2024 [Ribose Inc](https://www.ribose.com).
2
+ # All rights reserved.
3
+ # This file is a part of tebako
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without
6
+ # modification, are permitted provided that the following conditions
7
+ # are met:
8
+ # 1. Redistributions of source code must retain the above copyright
9
+ # notice, this list of conditions and the following disclaimer.
10
+ # 2. Redistributions in binary form must reproduce the above copyright
11
+ # notice, this list of conditions and the following disclaimer in the
12
+ # documentation and/or other materials provided with the distribution.
13
+ #
14
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15
+ # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
16
+ # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17
+ # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
18
+ # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24
+ # POSSIBILITY OF SUCH DAMAGE.
25
+
26
+ def_ext_prj_t(LIBUTFCPP "3.2.5" "14fd1b3c466814cb4c40771b7f207b61d2c7a0aa6a5e620ca05c00df27f25afd")
27
+
28
+ message(STATUS "Collecting libutfcpp - " v${LIBUTFCPP_VER} " at " ${LIBUTFCPP_SOURCE_DIR})
29
+
30
+ set(CMAKE_ARGUMENTS -DCMAKE_INSTALL_PREFIX=${DEPS}
31
+ -DUTF8_INSTALL=OFF
32
+ -DUTF8_SAMPLES=OFF
33
+ -DUTF8_TESTS=OFF
34
+ -DCMAKE_BUILD_TYPE=Release
35
+ -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
36
+ -DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}
37
+ )
38
+
39
+ if(TEBAKO_BUILD_TARGET)
40
+ list(APPEND CMAKE_ARGUMENTS -DCMAKE_C_FLAGS=--target=${TEBAKO_BUILD_TARGET})
41
+ list(APPEND CMAKE_ARGUMENTS -DCMAKE_EXE_LINKER_FLAGS=--target=${TEBAKO_BUILD_TARGET})
42
+ list(APPEND CMAKE_ARGUMENTS -DCMAKE_SHARED_LINKER_FLAGS=--target=${TEBAKO_BUILD_TARGET})
43
+ endif(TEBAKO_BUILD_TARGET)
44
+
45
+ ExternalProject_Add(${LIBUTFCPP_PRJ}
46
+ PREFIX "${DEPS}"
47
+ URL https://github.com/nemtrif/utfcpp/archive/refs/tags/v${LIBUTFCPP_VER}.tar.gz
48
+ URL_HASH SHA256=${LIBUTFCPP_HASH}
49
+ DOWNLOAD_NO_PROGRESS true
50
+ UPDATE_COMMAND ""
51
+ INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBUTFCPP_SOURCE_DIR}/source ${DEPS_INCLUDE_DIR}
52
+ CMAKE_ARGS ${CMAKE_ARGUMENTS}
53
+ SOURCE_DIR ${LIBUTFCPP_SOURCE_DIR}
54
+ BINARY_DIR ${LIBUTFCPP_BINARY_DIR}
55
+ BUILD_BYPRODUCTS ${__LIBUTFCPP}
56
+ )
@@ -1,5 +1,4 @@
1
- #! /bin/bash
2
- # Copyright (c) 2022, [Ribose Inc](https://www.ribose.com).
1
+ # Copyright (c) 2024, [Ribose Inc](https://www.ribose.com).
3
2
  # All rights reserved.
4
3
  # This file is a part of tebako
5
4
  #
@@ -24,36 +23,13 @@
24
23
  # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25
24
  # POSSIBILITY OF SUCH DAMAGE.
26
25
 
27
- # Alpine headers define malloc and other memory functions without nothrow attribute
28
- # while jemalloc and folly have nothrow
29
- # clang (as opposed to gcc) considers it syntax error and there is no easier workaround
26
+ cmake_minimum_required(VERSION 3.24.0)
27
+ project(setup-libhowardhinnerdate-test)
30
28
 
31
- set -o errexit -o pipefail -o noclobber -o nounset
29
+ include(ExternalProject)
32
30
 
33
- # ....................................................
34
- restore_and_save() {
35
- echo "Patching $1"
36
- test -e "$1.old" && cp -f "$1.old" "$1"
37
- cp -f "$1" "$1.old"
38
- }
31
+ set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
32
+ set(DEPS ${CMAKE_CURRENT_BINARY_DIR}/deps)
39
33
 
40
- patch() {
41
- echo "Processing $2"
42
- re="$2"
43
- sbst="__attribute__((nothrow)) \/*Tebako patched *\/ $2"
44
- sed -i "s/$re/$sbst/g" "$1"
45
- }
46
-
47
- f_stdlib=( "\*malloc" "\*calloc" "\*realloc" "free" "\*aligned_alloc" "posix_memalign" "\*valloc" "\*memalign" )
48
- restore_and_save "/usr/include/stdlib.h"
49
- for f in "${f_stdlib[@]}"
50
- do
51
- patch "/usr/include/stdlib.h" "$f"
52
- done
53
-
54
- f_sched=( "\*calloc" "free" )
55
- restore_and_save "/usr/include/sched.h"
56
- for f in "${f_sched[@]}"
57
- do
58
- patch "/usr/include/sched.h" "$f"
59
- done
34
+ include(${ROOT}/cmake-scripts/def-external-project.cmake)
35
+ include(${ROOT}/cmake-scripts/setup-libhowardhinnerdate.cmake)
@@ -0,0 +1,35 @@
1
+ # Copyright (c) 2024, [Ribose Inc](https://www.ribose.com).
2
+ # All rights reserved.
3
+ # This file is a part of tebako
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without
6
+ # modification, are permitted provided that the following conditions
7
+ # are met:
8
+ # 1. Redistributions of source code must retain the above copyright
9
+ # notice, this list of conditions and the following disclaimer.
10
+ # 2. Redistributions in binary form must reproduce the above copyright
11
+ # notice, this list of conditions and the following disclaimer in the
12
+ # documentation and/or other materials provided with the distribution.
13
+ #
14
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15
+ # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
16
+ # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17
+ # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
18
+ # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24
+ # POSSIBILITY OF SUCH DAMAGE.
25
+
26
+ cmake_minimum_required(VERSION 3.24.0)
27
+ project(setup-librachive-test)
28
+
29
+ include(ExternalProject)
30
+
31
+ set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
32
+ set(DEPS ${CMAKE_CURRENT_BINARY_DIR}/deps)
33
+
34
+ include(${ROOT}/cmake-scripts/def-external-project.cmake)
35
+ include(${ROOT}/cmake-scripts/setup-libarchive.cmake)
@@ -0,0 +1,36 @@
1
+ # Copyright (c) 2024, [Ribose Inc](https://www.ribose.com).
2
+ # All rights reserved.
3
+ # This file is a part of tebako
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without
6
+ # modification, are permitted provided that the following conditions
7
+ # are met:
8
+ # 1. Redistributions of source code must retain the above copyright
9
+ # notice, this list of conditions and the following disclaimer.
10
+ # 2. Redistributions in binary form must reproduce the above copyright
11
+ # notice, this list of conditions and the following disclaimer in the
12
+ # documentation and/or other materials provided with the distribution.
13
+ #
14
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15
+ # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
16
+ # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17
+ # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
18
+ # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24
+ # POSSIBILITY OF SUCH DAMAGE.
25
+
26
+ cmake_minimum_required(VERSION 3.24.0)
27
+ project(setup-libutfcpp-test)
28
+
29
+ include(ExternalProject)
30
+
31
+ set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
32
+ set(DEPS ${CMAKE_CURRENT_BINARY_DIR}/deps)
33
+ set(DEPS_INCLUDE_DIR ${DEPS}/include)
34
+
35
+ include(${ROOT}/cmake-scripts/def-external-project.cmake)
36
+ include(${ROOT}/cmake-scripts/setup-libutfcpp.cmake)
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.5.5
1
+ 0.5.7
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.5.5
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-22 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -78,21 +78,29 @@ files:
78
78
  - tebako.gemspec
79
79
  - tools/.gitattributes
80
80
  - tools/.github/workflows/lint.yml
81
+ - tools/.github/workflows/test.yml
82
+ - tools/.gitignore
81
83
  - tools/README.md
82
84
  - tools/ci-scripts/arm-brew-install.sh
83
85
  - tools/ci-scripts/arm-brew-setup.sh
84
86
  - tools/ci-scripts/level-up.sh
85
87
  - tools/ci-scripts/patch-fbthrift.sh
86
88
  - tools/ci-scripts/patch-folly.sh
87
- - tools/ci-scripts/patch-system-includes.sh
89
+ - tools/ci-scripts/tools.sh
88
90
  - tools/ci-scripts/x86-brew-install.sh
89
91
  - tools/ci-scripts/x86-brew-setup.sh
90
92
  - tools/cmake-scripts/def-external-project.cmake
91
93
  - tools/cmake-scripts/macos-environment.cmake
92
94
  - tools/cmake-scripts/msys-environment.cmake
95
+ - tools/cmake-scripts/setup-libarchive.cmake
96
+ - tools/cmake-scripts/setup-libhowardhinnerdate.cmake
97
+ - tools/cmake-scripts/setup-libutfcpp.cmake
93
98
  - tools/cmake-scripts/setup-openssl.cmake
94
99
  - tools/cmake-scripts/version.cmake
95
100
  - tools/include/pro-statvfs.h
101
+ - tools/tests/setup-libhowardhinnerdate/CMakeLists.txt
102
+ - tools/tests/setup-librachive/CMakeLists.txt
103
+ - tools/tests/setup-libutfcpp/CMakeLists.txt
96
104
  - version.txt
97
105
  homepage: https://github.com/tamatebako/tebako
98
106
  licenses:
@@ -124,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
132
  - !ruby/object:Gem::Version
125
133
  version: '0'
126
134
  requirements: []
127
- rubygems_version: 3.4.10
135
+ rubygems_version: 3.5.3
128
136
  signing_key:
129
137
  specification_version: 4
130
138
  summary: Packager for Ruby executables