ruby-netcdf 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE.txt CHANGED
@@ -1,59 +1,34 @@
1
- Ruby/NetCDF is copyrighted free software by Takeshi Horinouchi and the
1
+ Ruby/NetCDF is copyrighted free software by Takeshi Horinouchi and
2
2
  GFD Dennou Club.
3
- You can redistribute it and/or modify it under either the terms of the
4
- GPL, or the conditions below, which is idential to Ruby's license
5
- (http://www.ruby-lang.org/en/LICENSE.txt):
6
3
 
7
- 1. You may make and give away verbatim copies of the source form of the
8
- software without restriction, provided that you duplicate all of the
9
- original copyright notices and associated disclaimers.
10
-
11
- 2. You may modify your copy of the software in any way, provided that
12
- you do at least ONE of the following:
13
-
14
- a) place your modifications in the Public Domain or otherwise
15
- make them Freely Available, such as by posting said
16
- modifications to Usenet or an equivalent medium, or by allowing
17
- the author to include your modifications in the software.
18
-
19
- b) use the modified software only within your corporation or
20
- organization.
21
-
22
- c) rename any non-standard executables so the names do not conflict
23
- with standard executables, which must also be provided.
24
-
25
- d) make other distribution arrangements with the author.
26
-
27
- 3. You may distribute the software in object code or executable
28
- form, provided that you do at least ONE of the following:
29
-
30
- a) distribute the executables and library files of the software,
31
- together with instructions (in the manual page or equivalent)
32
- on where to get the original distribution.
33
-
34
- b) accompany the distribution with the machine-readable source of
35
- the software.
36
-
37
- c) give non-standard executables non-standard names, with
38
- instructions on where to get the original software distribution.
39
-
40
- d) make other distribution arrangements with the author.
41
-
42
- 4. You may modify and include the part of the software into any other
43
- software (possibly commercial). But some files in the distribution
44
- are not written by the author, so that they are not under this terms.
45
-
46
- They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
47
- files under the ./missing directory. See each file for the copying
48
- condition.
49
-
50
- 5. The scripts and library files supplied as input to or produced as
51
- output from the software do not automatically fall under the
52
- copyright of the software, but belong to whomever generated them,
53
- and may be sold commercially, and may be aggregated with this
54
- software.
55
-
56
- 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
57
- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
58
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
59
- PURPOSE.
4
+ Copyright 2003-2022 (C) GFD Dennou Club
5
+ (http://www.gfd-dennou.org/) All rights reserved.
6
+
7
+ Redistribution and use in source and binary forms, with or without
8
+ modification, are permitted provided that the following conditions are
9
+ met:
10
+
11
+ 1. Redistributions of source code must retain the above copyright
12
+ notice, this list of conditions and the following disclaimer.
13
+
14
+ 2. Redistributions in binary form must reproduce the above copyright
15
+ notice, this list of conditions and the following disclaimer in
16
+ the documentation and/or other materials provided with the
17
+ distribution.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY GFD DENNOU CLUB AND CONTRIBUTORS ``AS IS''
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GFD DENNOU CLUB OR
23
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+
31
+ The views and conclusions contained in the software and documentation
32
+ are those of the authors and should not be interpreted as representing
33
+ official policies, either expressed or implied, of Takeshi Horinouchi
34
+ and GFD Dennou Club.
data/Rakefile CHANGED
@@ -1,2 +1,37 @@
1
- require "bundler/gem_tasks"
1
+ # -* coding: utf-8 -*-
2
+ require 'rake/testtask'
3
+ require 'rake/extensiontask'
4
+ require 'rake/packagetask'
5
+ begin
6
+ require 'bundler/gem_helper' # instead of 'bundler/gem_tasks' -> need manual
7
+ # calls of install_tasks (see below)
8
+ rescue LoadError
9
+ puts 'If you want to create gem, You must install Bundler'
10
+ end
2
11
 
12
+ # manual calls of install_tasks to support multiple gemspec files
13
+ Bundler::GemHelper.install_tasks(name: "ruby-netcdf")
14
+ #Bundler::GemHelper.install_tasks(name: "ruby-netcdf-bigmem")
15
+
16
+ require './lib/numru/netcdf/version'
17
+ def version
18
+ NumRu::NetCDF::VERSION
19
+ end
20
+
21
+ task :default => :test
22
+ task :test => :compile
23
+ Rake::TestTask.new do |t|
24
+ t.libs << 'lib' << 'test'
25
+ t.test_files = FileList['test/*.rb']
26
+ end
27
+
28
+ Rake::ExtensionTask.new do |ext|
29
+ ext.name = 'netcdfraw'
30
+ ext.ext_dir = 'ext/numru'
31
+ ext.lib_dir = 'lib/numru'
32
+ end
33
+
34
+ Rake::PackageTask.new('ruby-netcdf', "#{version}") do |t|
35
+ t.need_tar_gz = true
36
+ t.package_files.include `git ls-files`.split("\n")
37
+ end
@@ -8,14 +8,14 @@ else
8
8
  ncversion = nil
9
9
  end
10
10
 
11
- if Gem.respond_to?(:find_files)
11
+ if Gem.respond_to?(:find_files) and Gem.find_files("narray.h").length > 0
12
12
  require "rbconfig"
13
13
  so = RbConfig::CONFIG["DLEXT"]
14
14
  narray_include = File.expand_path(File.dirname(Gem.find_files("narray.h")[0]))
15
15
  narray_lib = File.expand_path(File.dirname(Gem.find_files("narray." + so)[0]))
16
16
  else
17
17
  gem_home=(`gem environment GEM_HOME`).chomp
18
- narray_dir = Dir.glob("#{gem_home}/gems/narray-*").sort[-1]
18
+ narray_dir = Dir.glob("#{gem_home}/gems/narray-*/ext/narray").sort[-1]
19
19
  if narray_dir
20
20
  narray_include = narray_lib = narray_dir
21
21
  else