Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions lib/un.rb
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,14 @@ def wait_writable
def mkmf
setup("d:h:l:f:v:t:m:c:", "vendor") do |argv, options|
require 'mkmf'
opt = options[:d] and opt.split(/:/).each {|n| dir_config(*n.split(/,/))}
opt = options[:h] and opt.split(/:/).each {|n| have_header(*n.split(/,/))}
opt = options[:l] and opt.split(/:/).each {|n| have_library(*n.split(/,/))}
opt = options[:f] and opt.split(/:/).each {|n| have_func(*n.split(/,/))}
opt = options[:v] and opt.split(/:/).each {|n| have_var(*n.split(/,/))}
opt = options[:t] and opt.split(/:/).each {|n| have_type(*n.split(/,/))}
opt = options[:m] and opt.split(/:/).each {|n| have_macro(*n.split(/,/))}
opt = options[:c] and opt.split(/:/).each {|n| have_const(*n.split(/,/))}
options[:d]&.split(/:/) {|n| dir_config(*n.split(/,/))}
options[:h]&.split(/:/) {|n| have_header(*n.split(/,/))}
options[:l]&.split(/:/) {|n| have_library(*n.split(/,/))}
options[:f]&.split(/:/) {|n| have_func(*n.split(/,/))}
options[:v]&.split(/:/) {|n| have_var(*n.split(/,/))}
options[:t]&.split(/:/) {|n| have_type(*n.split(/,/))}
options[:m]&.split(/:/) {|n| have_macro(*n.split(/,/))}
options[:c]&.split(/:/) {|n| have_const(*n.split(/,/))}
$configure_args["--vendor"] = true if options[:vendor]
create_makefile(*argv)
end
Expand Down
2 changes: 1 addition & 1 deletion un.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
spec.summary = "Utilities to replace common UNIX commands"
spec.description = spec.summary
spec.homepage = "https://github.com/ruby/un"
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
spec.licenses = ["Ruby", "BSD-2-Clause"]

spec.metadata["homepage_uri"] = spec.homepage
Expand Down