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 57 58 59 60 61
|
open("ext/version.h") do |f|
f.each_line do |l|
if /RUBY_PGPLOT_VERSION "([\d.]+)"/ =~ l
PKG_VERSION=$1
break
end
end
end
PGPLOT_GEMSPEC = Gem::Specification.new do |s|
s.name = "pgplot"
s.version = PKG_VERSION
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Masahiro Tanaka"]
s.date = Time.now.strftime("%F")
s.description = "PGPLOT wrapper for Ruby"
s.email = "masa16.tanaka@gmail.com"
s.extensions = ["ext/extconf.rb"]
s.homepage = "http://masa16.github.io/ruby-pgplot/"
s.require_paths = ["."]
s.rubyforge_project = "pgplot"
s.rubygems_version = "2.0.0"
s.summary = "PGPLOT wrapper for Ruby. The PGPLOT library needs to be " \
"installed in advance using GNU FORTRAN compiler"
s.files = `git ls-files FuncUsage README README.ja Rakefile demo ext pgplot.gemspec test`.split($/)
s.add_dependency('narray', '< 0.7.0')
if s.respond_to? :specification_version then
s.specification_version = 2
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
else
end
else
end
# Documentation TODO
s.rdoc_options = %w[
--title Ruby/PGPLOT
--main README
--exclude demo/
--exclude test/
--exclude pgplot/
--exclude ext/build_lib/
--exclude ext/Makefile
--exclude ext/build-pgplot.rb
--exclude ext/cogen.rb
--exclude ext/cpgplot.h
--exclude ext/depend
--exclude ext/extconf.rb
--exclude ext/kwarg.c
--exclude ext/rb_pgplot.c.in
--exclude ext/version.h
--exclude .*\.o
--exclude pgplot\.so
]
s.has_rdoc = true
s.extra_rdoc_files = %w[README README.ja FuncUsage ext/rb_pgplot.c]
end
|