/
mirah.gemspec
43 lines (37 loc) · 1.62 KB
/
mirah.gemspec
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
# -*- encoding: utf-8 -*-
$: << './lib'
require 'mirah/version'
files = Dir["{bin,lib,test,examples,javalib}/**/*"] + Dir["{*.txt,Rakefile}"] - Dir["{examples/wiki/**/*}"]
bootstrap_jar = 'javalib/mirah-bootstrap.jar'
if $PROGRAM_NAME.match(/gem$/) && !files.include?(bootstrap_jar)
$stderr.puts "-"*80
$stderr.puts "ERROR: Can't build gem: missing generated file #{bootstrap_jar}"
$stderr.puts "To generate the jars and build the gem, use"
$stderr.puts " $ rake gem"
$stderr.puts "-"*80
exit 1
end
Gem::Specification.new do |s|
s.name = 'mirah'
s.version = Mirah::VERSION
s.license = 'Apache-2.0'
s.authors = ["Charles Oliver Nutter", "Ryan Brown"]
s.date = Time.now.strftime("%Y-%m-%d")
s.description = %q{Mirah is a customizable programming language featuring static types,
local type inference and a heavily Ruby-inspired syntax. Mirah
currently includes a typer/compiler backend for the JVM which can
output either JVM bytecode or Java source files.}
s.email = ["headius@headius.com", "ribrdb@google.com"]
s.executables = ["mirah", "mirahc", "mirahp"]
s.extra_rdoc_files = ["History.txt", "README.md"]
s.files = files.reject {|file| file =~ /jruby-complete.jar|jsr292-mock.jar/}
s.homepage = %q{http://www.mirah.org/}
s.rdoc_options = ["--main", "README.md"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{mirah}
s.rubygems_version = %q{1.3.5}
s.summary = %q{Mirah is a customizable programming language featuring static types, local type inference and a heavily Ruby-inspired syntax}
s.test_files = Dir["test/**/test*.rb"]
s.platform = "java"
s.add_dependency("bitescript", ">= 0.1.4")
end