copiousfreetime / amalgalite

SQLite database engine embedded in a ruby extension.

This URL has Read+Write access

Sun Nov 30 22:05:11 -0800 2008
commit  bb04a426772be843c8097d28fbbead24c75d4c63
tree    a4f303938aada96fd6fcd82ce357a8e4e8d52ce6
parent  429df0d6397fd2b9814718a46f61b16f4c8540fb
amalgalite / gemspec.rb
100644 56 lines (43 sloc) 1.691 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
require 'rubygems'
require 'amalgalite/version'
require 'tasks/config'
 
Amalgalite::GEM_SPEC = Gem::Specification.new do |spec|
  proj = Configuration.for('project')
  spec.name = proj.name
  spec.version = Amalgalite::VERSION
  
  spec.author = proj.author
  spec.email = proj.email
  spec.homepage = proj.homepage
  spec.summary = proj.summary
  spec.description = proj.description
  spec.platform = Gem::Platform::RUBY
 
  
  pkg = Configuration.for('packaging')
  spec.files = pkg.files.all
  spec.executables = pkg.files.bin.collect { |b| File.basename(b) }
 
  # add dependencies here
  # spec.add_dependency("rake", ">= 0.8.1")
  spec.add_dependency("configuration", ">= 0.0.5")
  spec.add_dependency("arrayfields", ">= 4.5.0")
  
 
  if ext_conf = Configuration.for_if_exist?("extension") then
    spec.extensions << ext_conf.configs
    spec.extensions.flatten!
  end
  
  if rdoc = Configuration.for_if_exist?('rdoc') then
    spec.has_rdoc = true
    spec.extra_rdoc_files = pkg.files.rdoc
    spec.rdoc_options = rdoc.options + [ "--main" , rdoc.main_page ]
  else
    spec.has_rdoc = false
  end
 
  if test = Configuration.for_if_exist?('testing') then
    spec.test_files = test.files
  end
 
  if rf = Configuration.for_if_exist?('rubyforge') then
    spec.rubyforge_project = rf.project
  end
end
 
Amalgalite::GEM_SPEC_WIN = Amalgalite::GEM_SPEC.clone
Amalgalite::GEM_SPEC_WIN.platform = ::Gem::Platform.new( "i386-mswin32_60" )
Amalgalite::GEM_SPEC_WIN.extensions = []
Amalgalite::GEM_SPEC_WIN.files += ["lib/amalgalite3.so"]
 
Amalgalite::SPECS = [ Amalgalite::GEM_SPEC, Amalgalite::GEM_SPEC_WIN ]