File: tioga.gemspec

package info (click to toggle)
libtioga-ruby 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 9,956 kB
  • ctags: 3,257
  • sloc: ansic: 31,801; ruby: 16,346; sh: 172; makefile: 114
file content (42 lines) | stat: -rw-r--r-- 1,090 bytes parent folder | download
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
# -*- mode: ruby; -*-

# begin dirty hack: we need to copy the C files in the split/Tioga/shared/
# directory to the split/Tioga/ so they are found by the usual
# mkmf.rb/extconf.rb
#
# That is pretty unclean, I'd say...

require 'fileutils'
cleanup = []

for file in Dir["split/Tioga/shared/*"]
  cleanup << "split/Tioga/" + File.basename(file)
  FileUtils::cp(file, "split/Tioga/")
end

at_exit do
  FileUtils::rm(cleanup)
end


# end dirty hack

spec = Gem::Specification.new do |s|
  s.files += Dir["split/*/*.c"] + Dir["split/*/*.h"] +
    Dir["split/*/include/*.h"] + Dir["split/**/*.rb"] +
    Dir["split/*.h"] +  Dir["split/*.c"]
  s.files += Dir["tests/*"]
  s.files += %w(Tioga_README lgpl.txt)
  s.test_files = Dir["tests/ts_*.rb"]
  s.extensions +=  
    %w{Flate Tioga Dvector Dtable Function}.map do |d|
    "split/#{d}/extconf.rb"
  end
  s.bindir = 'split/scripts'
  s.executables << 'tioga'
  s.name = 'tioga'
  s.version = '1.8'
  s.summary = 'Tioga - a powerful scientific plotting library'
  s.homepage = 'http://tioga.rubyforge.org'
  s.rubyforge_project = 'tioga'
end