hokusai-zero 0.2.5 → 0.2.6
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/ext/extconf.rb +5 -1
- data/hokusai.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c28ec9cbfb0ad097992724a26e9304ff581f2becdb0c3edae24b953fecf6f69c
|
4
|
+
data.tar.gz: 7d78d50e110f70dd8af7095df76bd5b039d13c205336c31f42d58c9d503cceb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4c92faf605ff7a6b4f9e0c3489327a01886ee18b2a2700a502b10b984fabf49e365986fb17c37c24d7f474fa7689e36761709bc1e59fcc0cd238ccf29ca8011
|
7
|
+
data.tar.gz: a2b09402e3f899644cb30e398130111e2afd40542763e6e9377f9777b6c5facf56f54465451b26ee2296d3834cc3be1aed640c7856bb2a7839801c260f7ad9ac
|
data/ext/extconf.rb
CHANGED
@@ -5,14 +5,17 @@ if MiniPortile.darwin?
|
|
5
5
|
suffix = "dylib"
|
6
6
|
ext = "tar.gz"
|
7
7
|
md4cext = "a"
|
8
|
+
MDFLAGS = ""
|
8
9
|
elsif MiniPortile.linux?
|
9
10
|
suffix = "so"
|
10
11
|
ext = "tar.gz"
|
11
12
|
md4cext = "so"
|
13
|
+
MDFLAGS = "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
|
12
14
|
elsif MiniPortile.windows?
|
13
15
|
suffix = "dll"
|
14
16
|
ext = "zip"
|
15
17
|
md4cext = "a"
|
18
|
+
MDFLAGS = ""
|
16
19
|
else
|
17
20
|
raise "Currently only supporting darwin and linux"
|
18
21
|
end
|
@@ -29,6 +32,7 @@ tree_sitter.tap do |t|
|
|
29
32
|
end
|
30
33
|
|
31
34
|
def t.install
|
35
|
+
|
32
36
|
execute('install', %Q(#{make_cmd} all install CC=gcc AR=ar PREFIX=#{File.expand_path(port_path)}), { env: { "PREFIX" => File.expand_path(port_path) }})
|
33
37
|
end
|
34
38
|
|
@@ -41,7 +45,7 @@ md4c = MiniPortileCMake.new("md4c", "0.5.2")
|
|
41
45
|
md4c.files = ["https://github.com/mity/md4c/archive/refs/tags/release-0.5.2.#{ext}"]
|
42
46
|
|
43
47
|
def md4c.cmake_compile_flags
|
44
|
-
[*super, "-DBUILD_SHARED_LIBS=OFF
|
48
|
+
[*super, "-DBUILD_SHARED_LIBS=OFF #{MDFLAGS}"]
|
45
49
|
end
|
46
50
|
|
47
51
|
md4c.cook
|
data/hokusai.gemspec
CHANGED