forked from mirah/mirah
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mirah.gemspec
43 lines (39 loc) · 1.65 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}/**/*"] \
+ ['dist/mirahc.jar'] \
+ Dir["{*.md,*.txt,Rakefile}"] \
- Dir["{examples/wiki/**/*}"]
mirahc_jar = 'dist/mirahc.jar'
if $PROGRAM_NAME.match(/gem$/) && !files.include?(mirahc_jar)
$stderr.puts "-"*80
$stderr.puts "ERROR: Can't build gem: missing generated file #{mirahc_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", "Nick Howard"]
s.email = ["headius@headius.com", "ribrdb@google.com", "ndh@baroquebobcat.com"]
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.executables = ["mirah", "mirahc"]
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"
end