Skip to content

Commit 0eb4bd5

Browse files
committed
fix build
1 parent ac2660d commit 0eb4bd5

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

ext/ui/extconf.rb

+9-6
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,22 @@
99
end
1010

1111
# only required for old YaST-tied yui
12-
base = case
13-
when File.exist?('/usr/include/YaST2/yui') then '/usr/include/YaST2'
14-
else '/usr/include'
15-
end
12+
base = if File.exist?('/usr/include/YaST2/yui')
13+
'/usr/include/YaST2'
14+
else
15+
'/usr/include'
16+
end
1617

1718
find_header 'YUI.h', File.join(base, 'yui')
1819

19-
$CFLAGS = "#{$CFLAGS} -g -fvisibility=hidden -I#{base} -I#{File.join(base, 'yui')}"
20+
$CFLAGS << " -g -fvisibility=hidden -I#{base} -I#{File.join(base, 'yui')}"
21+
$CXXFLAGS << " -g -fvisibility=hidden -I#{base} -I#{File.join(base, 'yui')}"
2022

2123
if RbConfig::CONFIG['ruby_version'] =~ /1\.8/
22-
$CFLAGS = "#{$CFLAGS} -DRUBY18_SUPPORT"
24+
$CFLAGS << " -DRUBY18_SUPPORT"
2325
end
2426

2527
$LIBS << " -lyui"
2628

29+
create_header
2730
create_makefile('ui')

ui.gemspec

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Gem::Specification.new do |s|
88
s.authors = ["Duncan Mac-Vicar P.", "Josef Reidinger"]
99
1010
s.homepage = ""
11-
s.summary = %q{TODO: Write a gem summary}
12-
s.description = %q{TODO: Write a gem description}
11+
s.licenses = ["MIT"]
12+
s.summary = "Native ruby bindings to libyui."
13+
s.description = "Ruby bindings to libyui written from scratch providing latest ruby features."
1314

1415
s.rubyforge_project = "ui"
1516

0 commit comments

Comments
 (0)