hokusai-zero 0.2.4 → 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 +9 -4
  3. data/hokusai.gemspec +1 -1
  4. metadata +7 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60ba385e696143a78e04817b46a97087a275026c9747cf5e5234fd4683c13ce8
4
- data.tar.gz: 23d0436b697cfda97a0b92b2ff5f0757d46884c5dd1f5205e29cef399d39c25f
3
+ metadata.gz: c28ec9cbfb0ad097992724a26e9304ff581f2becdb0c3edae24b953fecf6f69c
4
+ data.tar.gz: 7d78d50e110f70dd8af7095df76bd5b039d13c205336c31f42d58c9d503cceb5
5
5
  SHA512:
6
- metadata.gz: 3f78976e9cf233d4b10600d7bab64fc1fa44da041422c0473610e4d2c0277ed3f1331fd56c89e842c8d3390f825b0358f75ad5039c0ae97927fe9c4bf3afa544
7
- data.tar.gz: 4f8288e2b15f7e3ebfb58b406aa0d6c9a7f93def3bf6802f538b2cec2aa3a75d2d6b7d10adb7786a682030d2dc3dee85121eda121b64c3fc3a0e4baba6b9e805
6
+ metadata.gz: e4c92faf605ff7a6b4f9e0c3489327a01886ee18b2a2700a502b10b984fabf49e365986fb17c37c24d7f474fa7689e36761709bc1e59fcc0cd238ccf29ca8011
7
+ data.tar.gz: a2b09402e3f899644cb30e398130111e2afd40542763e6e9377f9777b6c5facf56f54465451b26ee2296d3834cc3be1aed640c7856bb2a7839801c260f7ad9ac
data/ext/extconf.rb CHANGED
@@ -4,12 +4,18 @@ require "mini_portile2"
4
4
  if MiniPortile.darwin?
5
5
  suffix = "dylib"
6
6
  ext = "tar.gz"
7
+ md4cext = "a"
8
+ MDFLAGS = ""
7
9
  elsif MiniPortile.linux?
8
10
  suffix = "so"
9
11
  ext = "tar.gz"
12
+ md4cext = "so"
13
+ MDFLAGS = "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
10
14
  elsif MiniPortile.windows?
11
15
  suffix = "dll"
12
16
  ext = "zip"
17
+ md4cext = "a"
18
+ MDFLAGS = ""
13
19
  else
14
20
  raise "Currently only supporting darwin and linux"
15
21
  end
@@ -26,7 +32,6 @@ tree_sitter.tap do |t|
26
32
  end
27
33
 
28
34
  def t.install
29
- return if installed?
30
35
 
31
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) }})
32
37
  end
@@ -40,7 +45,7 @@ md4c = MiniPortileCMake.new("md4c", "0.5.2")
40
45
  md4c.files = ["https://github.com/mity/md4c/archive/refs/tags/release-0.5.2.#{ext}"]
41
46
 
42
47
  def md4c.cmake_compile_flags
43
- [*super, "-DBUILD_SHARED_LIBS=OFF"]
48
+ [*super, "-DBUILD_SHARED_LIBS=OFF #{MDFLAGS}"]
44
49
  end
45
50
 
46
51
  md4c.cook
@@ -51,8 +56,8 @@ cwd = "#{__dir__}"
51
56
 
52
57
  files = %w[ast/src/core/hml.c ast/src/core/ast.c ast/rc/core/style.c ast/src/core/input.c ast/src/core/component.c ast/src/core/util.c ast/src/core/text.c grammar/src/parser.c grammar/src/scanner.c ast/include/hashmap.c]
53
58
  objects = %w[hml.o ast.o style.o input.o component.o util.o text.o parser.o scanner.o hashmap.o]
54
- libraries = [File.expand_path("#{tree_sitter.path}/lib/libtree-sitter.a"), File.expand_path("#{md4c.path}/lib/libmd4c.a")]
55
- src_files = ["#{tree_sitter.path}/lib/libtree-sitter.a", "#{md4c.path}/lib/libmd4c.a", "#{pre}/ast/src/core/hml.c", "#{pre}/ast/src/core/ast.c", "#{pre}/ast/src/core/style.c", "#{pre}/ast/src/core/input.c", "#{pre}/ast/src/core/component.c", "#{pre}/ast/src/core/util.c", "#{pre}/ast/src/core/text.c", "#{pre}/grammar/src/parser.c", "#{pre}/grammar/src/scanner.c", "#{pre}/ast/include/hashmap.c"]
59
+ libraries = [File.expand_path("#{tree_sitter.path}/lib/libtree-sitter.a"), File.expand_path("#{md4c.path}/lib/libmd4c.#{md4cext}")]
60
+ src_files = ["#{tree_sitter.path}/lib/libtree-sitter.a", "#{md4c.path}/lib/libmd4c.#{md4cext}", "#{pre}/ast/src/core/hml.c", "#{pre}/ast/src/core/ast.c", "#{pre}/ast/src/core/style.c", "#{pre}/ast/src/core/input.c", "#{pre}/ast/src/core/component.c", "#{pre}/ast/src/core/util.c", "#{pre}/ast/src/core/text.c", "#{pre}/grammar/src/parser.c", "#{pre}/grammar/src/scanner.c", "#{pre}/ast/include/hashmap.c"]
56
61
  if MiniPortile.windows?
57
62
  cflags = "-shared -Wall -Wl,--export-all-symbols -Wl,--enable-auto-import"
58
63
  mkdir = "mkdir #{pre}\\vendor\\lib"
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.4'
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,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hokusai-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - skinnyjames
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2025-06-24 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: ffi
@@ -93,6 +94,7 @@ dependencies:
93
94
  - - ">="
94
95
  - !ruby/object:Gem::Version
95
96
  version: '0'
97
+ description:
96
98
  email: zero@skinnyjames.net
97
99
  executables: []
98
100
  extensions:
@@ -295,6 +297,7 @@ licenses:
295
297
  - MIT
296
298
  metadata:
297
299
  source_code_uri: https://codeberg.org/skinnyjames/hokusai
300
+ post_install_message:
298
301
  rdoc_options: []
299
302
  require_paths:
300
303
  - ui/src
@@ -309,7 +312,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
309
312
  - !ruby/object:Gem::Version
310
313
  version: '0'
311
314
  requirements: []
312
- rubygems_version: 3.6.7
315
+ rubygems_version: 3.5.22
316
+ signing_key:
313
317
  specification_version: 4
314
318
  summary: A Ruby library for writing GUI applications
315
319
  test_files: []