hornetseye-fftw3 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +5 -97
  3. data/config.rb +23 -0
  4. metadata +21 -41
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2734533300b22e1c07320e53fe6a55ddffc91f73
4
+ data.tar.gz: 5b9968f35143bea83bbe79500a7bf20c7d9dbe99
5
+ SHA512:
6
+ metadata.gz: 7d4b288283ff1a40325f7bb37aa3bc72716ffb45c8a464e5c5406d06fdc6d65003a56b2376ac5697c97a39ebc69bcf7b30d143594e62900166702387e5ab584b
7
+ data.tar.gz: 1eace15a379f4e669e870663da2700240bf6fd83a4ff4c74465c2481018802f395eeb3d33a6561d469fd36fccc66697ad878acf79a1013bfd4cae4d3fe63bcf7
data/Rakefile CHANGED
@@ -6,33 +6,14 @@ require 'rake/packagetask'
6
6
  require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
8
  require 'tempfile'
9
-
10
- PKG_NAME = 'hornetseye-fftw3'
11
- PKG_VERSION = '1.0.1'
12
- CFG = RbConfig::CONFIG
13
- CXX = ENV[ 'CXX' ] || 'g++'
14
- RB_FILES = FileList[ 'lib/**/*.rb' ]
15
- CC_FILES = FileList[ 'ext/*.cc' ]
16
- HH_FILES = FileList[ 'ext/*.hh' ] + FileList[ 'ext/*.tcc' ]
17
- TC_FILES = FileList[ 'test/tc_*.rb' ]
18
- TS_FILES = FileList[ 'test/ts_*.rb' ]
19
- SO_FILE = "ext/#{PKG_NAME.tr '\-', '_'}.#{CFG[ 'DLEXT' ]}"
20
- PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
21
- RB_FILES + CC_FILES + HH_FILES + TS_FILES + TC_FILES
22
- BIN_FILES = [ 'README.md', 'COPYING', '.document', SO_FILE ] +
23
- RB_FILES + TS_FILES + TC_FILES
24
- SUMMARY = %q{Fourier transforms}
25
- DESCRIPTION = %q{This Ruby extension provides bindings for the FFTW3 library.}
26
- LICENSE = 'GPL-3+'
27
- AUTHOR = %q{Jan Wedekind}
28
- EMAIL = %q{jan@wedesoft.de}
29
- HOMEPAGE = %q{http://wedesoft.github.com/hornetseye-fftw3/}
9
+ require_relative 'config'
30
10
 
31
11
  OBJ = CC_FILES.ext 'o'
32
12
  $CXXFLAGS = "-DNDEBUG -DHAVE_CONFIG_H -D__STDC_CONSTANT_MACROS #{CFG[ 'CPPFLAGS' ]} #{CFG[ 'CFLAGS' ]}"
33
- if CFG[ 'rubyhdrdir' ]
34
- $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG[ 'rubyhdrdir' ]} " +
35
- "-I#{CFG[ 'rubyhdrdir' ]}/#{CFG[ 'arch' ]}"
13
+ if CFG['rubyarchhdrdir']
14
+ $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG['rubyhdrdir']} -I#{CFG['rubyarchhdrdir']}"
15
+ elsif CFG['rubyhdrdir']
16
+ $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG['rubyhdrdir' ]} -I#{CFG['rubyhdrdir']}/#{CFG['arch']}"
36
17
  else
37
18
  $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG[ 'archdir' ]}"
38
19
  end
@@ -94,79 +75,6 @@ Rake::PackageTask.new PKG_NAME, PKG_VERSION do |p|
94
75
  p.package_files = PKG_FILES
95
76
  end
96
77
 
97
- begin
98
- require 'rubygems'
99
- require 'rubygems/builder'
100
- $SPEC = Gem::Specification.new do |s|
101
- s.name = PKG_NAME
102
- s.version = PKG_VERSION
103
- s.platform = Gem::Platform::RUBY
104
- s.date = Date.today.to_s
105
- s.summary = SUMMARY
106
- s.description = DESCRIPTION
107
- s.license = LICENSE
108
- s.author = AUTHOR
109
- s.email = EMAIL
110
- s.homepage = HOMEPAGE
111
- s.files = PKG_FILES
112
- s.test_files = TC_FILES
113
- s.require_paths = [ 'lib', 'ext' ]
114
- s.rubyforge_project = %q{hornetseye}
115
- s.extensions = %w{Rakefile}
116
- s.has_rdoc = 'yard'
117
- s.extra_rdoc_files = []
118
- s.rdoc_options = %w{--no-private}
119
- s.add_dependency %<malloc>, [ '~> 1.1' ]
120
- s.add_dependency %<multiarray>, [ '~> 1.0' ]
121
- s.add_development_dependency %q{rake}
122
- end
123
- GEM_SOURCE = "#{PKG_NAME}-#{PKG_VERSION}.gem"
124
- $BINSPEC = Gem::Specification.new do |s|
125
- s.name = PKG_NAME
126
- s.version = PKG_VERSION
127
- s.platform = Gem::Platform::CURRENT
128
- s.date = Date.today.to_s
129
- s.summary = SUMMARY
130
- s.description = DESCRIPTION
131
- s.license = LICENSE
132
- s.author = AUTHOR
133
- s.email = EMAIL
134
- s.homepage = HOMEPAGE
135
- s.files = BIN_FILES
136
- s.test_files = TC_FILES
137
- s.require_paths = [ 'lib', 'ext' ]
138
- s.rubyforge_project = %q{hornetseye}
139
- s.has_rdoc = 'yard'
140
- s.extra_rdoc_files = []
141
- s.rdoc_options = %w{--no-private}
142
- s.add_dependency %<malloc>, [ '~> 1.1' ]
143
- s.add_dependency %<multiarray>, [ '~> 1.0' ]
144
- end
145
- GEM_BINARY = "#{PKG_NAME}-#{PKG_VERSION}-#{$BINSPEC.platform}.gem"
146
- desc "Build the gem file #{GEM_SOURCE}"
147
- task :gem => [ "pkg/#{GEM_SOURCE}" ]
148
- file "pkg/#{GEM_SOURCE}" => [ 'pkg' ] + $SPEC.files do
149
- when_writing 'Creating GEM' do
150
- Gem::Builder.new( $SPEC ).build
151
- verbose true do
152
- FileUtils.mv GEM_SOURCE, "pkg/#{GEM_SOURCE}"
153
- end
154
- end
155
- end
156
- desc "Build the gem file #{GEM_BINARY}"
157
- task :gem_binary => [ "pkg/#{GEM_BINARY}" ]
158
- file "pkg/#{GEM_BINARY}" => [ 'pkg' ] + $BINSPEC.files do
159
- when_writing 'Creating binary GEM' do
160
- Gem::Builder.new( $BINSPEC ).build
161
- verbose true do
162
- FileUtils.mv GEM_BINARY, "pkg/#{GEM_BINARY}"
163
- end
164
- end
165
- end
166
- rescue LoadError
167
- STDERR.puts 'Please install \'rubygems\' if you want to create Gem packages'
168
- end
169
-
170
78
  rule '.o' => '.cc' do |t|
171
79
  sh "#{CXX} #{$CXXFLAGS} -c -o #{t.name} #{t.source}"
172
80
  end
@@ -0,0 +1,23 @@
1
+ require 'rake'
2
+
3
+ PKG_NAME = 'hornetseye-fftw3'
4
+ PKG_VERSION = '1.0.2'
5
+ CFG = RbConfig::CONFIG
6
+ CXX = ENV[ 'CXX' ] || 'g++'
7
+ RB_FILES = ['config.rb'] + FileList[ 'lib/**/*.rb' ]
8
+ CC_FILES = FileList[ 'ext/*.cc' ]
9
+ HH_FILES = FileList[ 'ext/*.hh' ] + FileList[ 'ext/*.tcc' ]
10
+ TC_FILES = FileList[ 'test/tc_*.rb' ]
11
+ TS_FILES = FileList[ 'test/ts_*.rb' ]
12
+ SO_FILE = "ext/#{PKG_NAME.tr '\-', '_'}.#{CFG[ 'DLEXT' ]}"
13
+ PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
14
+ RB_FILES + CC_FILES + HH_FILES + TS_FILES + TC_FILES
15
+ BIN_FILES = [ 'README.md', 'COPYING', '.document', SO_FILE ] +
16
+ RB_FILES + TS_FILES + TC_FILES
17
+ SUMMARY = %q{Fourier transforms}
18
+ DESCRIPTION = %q{This Ruby extension provides bindings for the FFTW3 library.}
19
+ LICENSE = 'GPL-3+'
20
+ AUTHOR = %q{Jan Wedekind}
21
+ EMAIL = %q{jan@wedesoft.de}
22
+ HOMEPAGE = %q{http://wedesoft.github.com/hornetseye-fftw3/}
23
+
metadata CHANGED
@@ -1,64 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hornetseye-fftw3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jan Wedekind
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-30 00:00:00.000000000 Z
11
+ date: 2015-05-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: malloc
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.1'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.1'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: multiarray
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.0'
46
- - !ruby/object:Gem::Dependency
47
- name: rake
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
41
  description: This Ruby extension provides bindings for the FFTW3 library.
63
42
  email: jan@wedesoft.de
64
43
  executables: []
@@ -66,45 +45,46 @@ extensions:
66
45
  - Rakefile
67
46
  extra_rdoc_files: []
68
47
  files:
69
- - Rakefile
70
- - README.md
48
+ - ".document"
71
49
  - COPYING
72
- - .document
73
- - lib/hornetseye_fftw3_ext.rb
74
- - lib/hornetseye-fftw3/node.rb
50
+ - README.md
51
+ - Rakefile
52
+ - config.rb
53
+ - ext/error.hh
75
54
  - ext/init.cc
76
55
  - ext/node.cc
77
56
  - ext/node.hh
78
- - ext/error.hh
79
57
  - ext/rubyinc.hh
80
- - test/ts_fftw3.rb
58
+ - lib/hornetseye-fftw3/node.rb
59
+ - lib/hornetseye_fftw3_ext.rb
81
60
  - test/tc_fftw3.rb
61
+ - test/ts_fftw3.rb
82
62
  homepage: http://wedesoft.github.com/hornetseye-fftw3/
83
63
  licenses:
84
64
  - GPL-3+
65
+ metadata: {}
85
66
  post_install_message:
86
67
  rdoc_options:
87
- - --no-private
68
+ - "--no-private"
88
69
  require_paths:
89
70
  - lib
90
71
  - ext
91
72
  required_ruby_version: !ruby/object:Gem::Requirement
92
- none: false
93
73
  requirements:
94
- - - ! '>='
74
+ - - ">="
95
75
  - !ruby/object:Gem::Version
96
76
  version: '0'
97
77
  required_rubygems_version: !ruby/object:Gem::Requirement
98
- none: false
99
78
  requirements:
100
- - - ! '>='
79
+ - - ">="
101
80
  - !ruby/object:Gem::Version
102
81
  version: '0'
103
82
  requirements: []
104
83
  rubyforge_project: hornetseye
105
- rubygems_version: 1.8.23
84
+ rubygems_version: 2.4.6
106
85
  signing_key:
107
- specification_version: 3
86
+ specification_version: 4
108
87
  summary: Fourier transforms
109
88
  test_files:
110
89
  - test/tc_fftw3.rb
90
+ has_rdoc: yard