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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/ext/extconf.rb +5 -1
  3. data/hokusai.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 258655d3f20b0989fc428b59e1346fcce0cf2d3171cbd84734f76ab466147c41
4
- data.tar.gz: dba94b3629f93488d2629440aa70e3f8e60e005814ba3a189c26cac1cb213698
3
+ metadata.gz: c28ec9cbfb0ad097992724a26e9304ff581f2becdb0c3edae24b953fecf6f69c
4
+ data.tar.gz: 7d78d50e110f70dd8af7095df76bd5b039d13c205336c31f42d58c9d503cceb5
5
5
  SHA512:
6
- metadata.gz: 05404fcf63164d6201d7ec3061ff2076a31dd3b2a8061940587aa099e84632afa07621fbbe9a79ac978ca374a22f72e2408d277db22b34c0076f0bffd3bcda4f
7
- data.tar.gz: c074724a12bf76772f9052fccbf06cbd49ff55e871d763c2477bc2a242650a74deaee9a5c3c67dedaae9058b89eefb3b94399ce1daf5d3eeb45c5098a8b3958b
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 -DCMAKE_POSITION_INDEPENDENT_CODE=ON"]
48
+ [*super, "-DBUILD_SHARED_LIBS=OFF #{MDFLAGS}"]
45
49
  end
46
50
 
47
51
  md4c.cook
data/hokusai.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'hokusai-zero'
3
- s.version = '0.2.5'
3
+ s.version = '0.2.6'
4
4
  s.licenses = ['MIT']
5
5
  s.summary = "A Ruby library for writing GUI applications"
6
6
  s.authors = ["skinnyjames"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hokusai-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - skinnyjames