ruby-audio 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/{README → README.rdoc} +0 -0
- data/Rakefile +4 -4
- data/ext/sndfile/extconf.rb +23 -7
- metadata +3 -3
data/{README → README.rdoc}
RENAMED
File without changes
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ require 'rake/gempackagetask'
|
|
6
6
|
|
7
7
|
spec = Gem::Specification.new do |s|
|
8
8
|
s.name = 'ruby-audio'
|
9
|
-
s.version = '0.2.
|
9
|
+
s.version = '0.2.1'
|
10
10
|
s.summary = 'ruby-audio wraps around libsndfile to provide simplified sound reading and writing support to ruby programs'
|
11
11
|
s.authors = ['Hans Fugal <hans@fugal.net>', 'Stephen Augenstein']
|
12
12
|
s.email = 'perl.programmer@gmail.com'
|
@@ -14,7 +14,7 @@ spec = Gem::Specification.new do |s|
|
|
14
14
|
|
15
15
|
s.platform = Gem::Platform::RUBY
|
16
16
|
s.has_rdoc = true
|
17
|
-
s.files = FileList['README', 'Rakefile', 'LICENSE', 'TODO', 'examples/**/*.rb', 'examples/**/*.wav', 'lib/**/*.rb', 'test/*.rb', 'test/*.wav', 'ext/sndfile/extconf.rb', 'ext/sndfile/sndfile.i']
|
17
|
+
s.files = FileList['README.rdoc', 'Rakefile', 'LICENSE', 'TODO', 'examples/**/*.rb', 'examples/**/*.wav', 'lib/**/*.rb', 'test/*.rb', 'test/*.wav', 'ext/sndfile/extconf.rb', 'ext/sndfile/sndfile.i']
|
18
18
|
s.require_path = 'lib'
|
19
19
|
s.extensions = ["ext/sndfile/extconf.rb"]
|
20
20
|
s.test_files = Dir[*['test/*.rb']]
|
@@ -37,8 +37,8 @@ desc "Generate documentation"
|
|
37
37
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
38
38
|
rdoc.rdoc_dir = 'rdoc'
|
39
39
|
rdoc.title = 'ruby-audio'
|
40
|
-
rdoc.options << '--line-numbers' << '--main' << 'README'
|
41
|
-
rdoc.rdoc_files.include('README')
|
40
|
+
rdoc.options << '--line-numbers' << '--main' << 'README.rdoc'
|
41
|
+
rdoc.rdoc_files.include('README.rdoc')
|
42
42
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
43
43
|
end
|
44
44
|
|
data/ext/sndfile/extconf.rb
CHANGED
@@ -1,15 +1,31 @@
|
|
1
|
+
require 'rubygems'
|
1
2
|
require 'mkmf'
|
2
|
-
|
3
|
+
|
4
|
+
$CFLAGS = '-I/opt/local/include'
|
3
5
|
$LDFLAGS = '-L/opt/local/lib -L/usr/local/lib'
|
4
|
-
|
6
|
+
|
7
|
+
# Add narray header to path
|
8
|
+
matches = Gem.source_index.find_name 'narray', Gem::Requirement.default
|
9
|
+
if matches.empty?
|
10
|
+
raise 'You need to install NArray gem'
|
11
|
+
exit
|
12
|
+
end
|
13
|
+
spec = matches.last
|
14
|
+
$CFLAGS += " -I#{spec.full_gem_path}"
|
15
|
+
|
16
|
+
# libsndfile requirements
|
5
17
|
unless find_library 'sndfile', 'sf_open'
|
6
|
-
raise 'You need to install libsndfile'
|
18
|
+
raise 'You need to install libsndfile (http://www.mega-nerd.com/libsndfile/)'
|
7
19
|
exit
|
8
20
|
end
|
9
|
-
|
10
|
-
#
|
21
|
+
|
22
|
+
# NArray gem requirements (double check that header there)
|
11
23
|
unless have_header 'narray.h'
|
12
|
-
raise 'You need to install NArray
|
24
|
+
raise 'You need to install NArray gem'
|
13
25
|
exit
|
14
26
|
end
|
15
|
-
|
27
|
+
|
28
|
+
# Swig
|
29
|
+
system 'swig -ruby -I/usr/include -I/usr/local/include -I/opt/local/include sndfile.i'
|
30
|
+
|
31
|
+
create_makefile 'sndfile'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-audio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hans Fugal <hans@fugal.net>
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-02-
|
13
|
+
date: 2010-02-15 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -32,7 +32,7 @@ extensions:
|
|
32
32
|
extra_rdoc_files: []
|
33
33
|
|
34
34
|
files:
|
35
|
-
- README
|
35
|
+
- README.rdoc
|
36
36
|
- Rakefile
|
37
37
|
- LICENSE
|
38
38
|
- TODO
|