ncursesw 1.4.9 → 1.4.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/extconf.rb +12 -2
  3. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fca9709dd82761c91ed68a7fa83f68447578ecae
4
- data.tar.gz: c70bb1b07d1d47a96ec380660f32cf2c8cbf4a47
3
+ metadata.gz: ec628a1e081fa07f8233e63155ddaed5a8066f68
4
+ data.tar.gz: 594ab5a6e15cd1718a449fb8f198f0be35add5bd
5
5
  SHA512:
6
- metadata.gz: 4bec4cb14cf4cd128959ec2ac2571d4116ce2fc86a35912721d727b60de45f8384449428c5661c376c4c3b22a0d4960026ae967374ea274c4a6278bbe15d61a2
7
- data.tar.gz: 0bc200eb0ef8ffc80b9f0938296f72b228a892dd6db8d03515e78315040bda05a4c78f3f37cb466345482051a520cbce6ae5b6a79212a25c6aebdd091756ed9b
6
+ metadata.gz: 831bc04ef2f201d798e3f897b6a8dd9f7d3b0f571e87682baa30764e3fd9de98f71f2faf22ae3d800163c040ffbb5d27fdac0b3d51feadcc47cd43e8d5845792
7
+ data.tar.gz: ad904d96212b3819d39b731de568e6aecd3509f0f80fb17b7fd37355331a8e4d24bd5c1a2668b0df5560a0de2f210d05a560854863e078d786ff73edce1566d6
data/extconf.rb CHANGED
@@ -25,6 +25,13 @@ require "mkmf"
25
25
 
26
26
  $CFLAGS += " -g -Wformat -Werror=format-security -Waddress"
27
27
 
28
+ if find_executable('pkg-config')
29
+ $CFLAGS += ' ' + `pkg-config --cflags ncursesw`.strip
30
+ $LDFLAGS += ' ' + `pkg-config --libs ncursesw`.strip
31
+ end
32
+
33
+ dir_config("ncurses")
34
+
28
35
  have_header("unistd.h")
29
36
  have_header("locale.h")
30
37
 
@@ -42,6 +49,9 @@ end
42
49
 
43
50
  if have_library("ncursesw", "wmove")
44
51
  curses_lib = "ncursesw"
52
+ elsif have_library("ncurses", "add_wch")
53
+ curses_lib = "ncurses"
54
+ curses_is_wide = true
45
55
  elsif have_library("pdcurses", "wmove")
46
56
  curses_lib = "pdcurses"
47
57
  else
@@ -140,7 +150,8 @@ end
140
150
 
141
151
  puts "checking for the form library..."
142
152
  if have_header("form.h") or have_header("ncursesw/form.h")
143
- if not have_library("formw", "new_form")
153
+ if not have_library("formw", "new_form") ||
154
+ (curses_is_wide && have_library("form", "new_form"))
144
155
  raise "formw library not found"
145
156
  end
146
157
  else
@@ -183,4 +194,3 @@ have_header("sys/time.h")
183
194
  $CXXFLAGS = $CFLAGS
184
195
 
185
196
  create_makefile('ncursesw_bin')
186
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncursesw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.9
4
+ version: 1.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Herzke
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-05 00:00:00.000000000 Z
12
+ date: 2016-08-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Tweaked version of ncursesw from http://ncurses-ruby.berlios.de/.
15
15
  email:
@@ -66,10 +66,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project:
69
- rubygems_version: 2.2.2
69
+ rubygems_version: 2.5.1
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: 'This wrapper provides access to the functions, macros, global variables
73
73
  and constants of the ncurses library. These are mapped to a Ruby Module named "Ncurses": Functions
74
74
  and external variables are implemented as singleton functions of the Module Ncurses.'
75
75
  test_files: []
76
+ has_rdoc: false