mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
Add patches missed in mruby 3.4.0 update
From Miguel Landaeta <miguel@miguel.cc>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
Index: lib/mruby/build/command.rb
|
||||
--- lib/mruby/build/command.rb.orig
|
||||
+++ lib/mruby/build/command.rb
|
||||
@@ -249,7 +249,7 @@ module MRuby
|
||||
|
||||
def initialize(build)
|
||||
super
|
||||
- @command = "ruby #{MRUBY_ROOT}/tools/lrama/exe/lrama"
|
||||
+ @command = "${RUBY} #{MRUBY_ROOT}/tools/lrama/exe/lrama"
|
||||
@compile_options = %q[-o "%{outfile}" "%{infile}"]
|
||||
end
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
Do not link against libtinfo, which is not used on OpenBSD.
|
||||
|
||||
Not sent upstream, as mirb build configuration changes in mruby 3.5.0
|
||||
make this unnecessary.
|
||||
|
||||
Index: mrbgems/mruby-bin-mirb/mrbgem.rake
|
||||
--- mrbgems/mruby-bin-mirb/mrbgem.rake.orig
|
||||
+++ mrbgems/mruby-bin-mirb/mrbgem.rake
|
||||
@@ -32,7 +32,7 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |sp
|
||||
spec.linker.library_paths << lib_path if lib_path
|
||||
elsif spec.build.cc.search_header_path 'curses.h'
|
||||
spec.linker.libraries << 'ncurses'
|
||||
- if spec.build.cc.search_header_path 'term.h'
|
||||
+ if spec.build.cc.search_header_path 'term.h' && !MRUBY_BUILD_HOST_IS_OPENBSD
|
||||
spec.linker.libraries << 'tinfo'
|
||||
end
|
||||
elsif spec.build.cc.search_header_path 'ncursesw/curses.h'
|
||||
Reference in New Issue
Block a user