ruby-pgplot 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +1 -1
  2. data/README.ja +1 -1
  3. data/extconf.rb +16 -3
  4. metadata +30 -50
data/README CHANGED
@@ -1,4 +1,4 @@
1
- Ruby/PGPLOT ver 0.1.4 by Masahiro TANAKA 2012-01-04
1
+ Ruby/PGPLOT ver 0.1.6 by Masahiro TANAKA 2012-02-18
2
2
 
3
3
  = Description
4
4
 
data/README.ja CHANGED
@@ -1,4 +1,4 @@
1
- Ruby/PGPLOT ver 0.1.4 by Masahiro TANAKA 2012-01-04
1
+ Ruby/PGPLOT ver 0.1.6 by Masahiro TANAKA 2012-02-18
2
2
 
3
3
  = 概要
4
4
 
data/extconf.rb CHANGED
@@ -33,11 +33,24 @@ dir_config("pgplot")
33
33
  # Check PGPLOT Header
34
34
  exit unless have_header("cpgplot.h")
35
35
 
36
+ def find_dir_w_file(d,h)
37
+ g = Dir.glob(RbConfig.expand(d+"/"+h))
38
+ File.dirname(g.last) if g and !g.empty?
39
+ end
40
+
36
41
  # Check NArray
37
- $CPPFLAGS = " -I#{CONFIG['sitearchdir']} " + $CPPFLAGS
38
- gem_narray_dir = File.dirname(Dir.glob("../narray-0.[56].*/narray.h").last)
39
- $CPPFLAGS = " -I#{gem_narray_dir} " + $CPPFLAGS if gem_narray_dir
42
+ gems_dir="$(rubylibprefix)/gems/$(ruby_version)/gems/"
43
+ narray_d="narray-0.[56].*"
44
+ narray_h="narray.h"
45
+ if narray_h_dir =
46
+ find_dir_w_file("../"+narray_d,narray_h) ||
47
+ find_dir_w_file(gems_dir+narray_d,narray_h) ||
48
+ find_dir_w_file(CONFIG['sitearchdir'],narray_h) ||
49
+ find_dir_w_file(CONFIG['archdir'],narray_h)
50
+ $CPPFLAGS = " -I#{narray_h_dir} " + $CPPFLAGS
51
+ end
40
52
  exit unless have_header("narray.h")
53
+
41
54
  if RUBY_PLATFORM =~ /cygwin|mingw/
42
55
  $LDFLAGS = " -L#{CONFIG['sitearchdir']} "+$LDFLAGS
43
56
  exit unless have_library("narray","na_make_object")
metadata CHANGED
@@ -1,46 +1,34 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ruby-pgplot
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 5
9
- version: 0.1.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.6
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Masahiro Tanaka
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-01-04 00:00:00 +09:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: narray
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &15515320 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 5
31
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
32
21
  version: 0.5.0
33
22
  type: :runtime
34
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *15515320
35
25
  description: PGPLOT wrapper for Ruby
36
26
  email: masa16.tanaka@gmail.com
37
27
  executables: []
38
-
39
- extensions:
28
+ extensions:
40
29
  - extconf.rb
41
30
  extra_rdoc_files: []
42
-
43
- files:
31
+ files:
44
32
  - extconf.rb
45
33
  - rb_pgplot.c.in
46
34
  - README
@@ -61,37 +49,29 @@ files:
61
49
  - test/pgncur.rb
62
50
  - test/pgolin.rb
63
51
  - test/pgtick.rb
64
- has_rdoc: true
65
52
  homepage: http://pgplot.rubyforge.org/
66
53
  licenses: []
67
-
68
54
  post_install_message:
69
55
  rdoc_options: []
70
-
71
- require_paths:
56
+ require_paths:
72
57
  - .
73
- required_ruby_version: !ruby/object:Gem::Requirement
58
+ required_ruby_version: !ruby/object:Gem::Requirement
74
59
  none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- segments:
79
- - 0
80
- version: "0"
81
- required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
65
  none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- segments:
87
- - 0
88
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
89
70
  requirements: []
90
-
91
71
  rubyforge_project: ruby-pgplot
92
- rubygems_version: 1.3.7
72
+ rubygems_version: 1.8.11
93
73
  signing_key:
94
74
  specification_version: 2
95
- summary: PGPLOT wrapper for Ruby
75
+ summary: PGPLOT wrapper for Ruby. The PGPLOT library needs to be installed in advance
76
+ using GNU FORTRAN compiler
96
77
  test_files: []
97
-