buildr-mirah 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +39 -18
- data/VERSION +1 -1
- data/buildr-mirah.gemspec +58 -0
- data/lib/buildr/mirah.rb +10 -3
- metadata +3 -4
- data/README.rdoc +0 -19
data/README.md
CHANGED
@@ -4,37 +4,59 @@ Use buildr to build Mirah code.
|
|
4
4
|
|
5
5
|
## Status
|
6
6
|
|
7
|
-
|
7
|
+
Alpha
|
8
8
|
|
9
9
|
## Overview
|
10
10
|
|
11
|
-
|
11
|
+
Simple buildr extension to support Mirah.
|
12
|
+
|
13
|
+
**NOTE** currently only tested with [JRuby](http://jruby.org).
|
14
|
+
|
15
|
+
## Known Bugs
|
16
|
+
|
17
|
+
* classfiles are currently output in the same directory as the sources...
|
18
|
+
* you may require [my patches](http://github.com/thomaslee/Antwrap) to
|
19
|
+
[Antwrap](http://github.com/atoulme/Antwrap) on JRuby for now?
|
12
20
|
|
13
21
|
## Prerequisites
|
14
22
|
|
15
|
-
*
|
16
|
-
*
|
17
|
-
* GNU make 3.81+
|
18
|
-
* gcc 4.4.x+
|
19
|
-
* libcheck 0.9.8+
|
20
|
-
* llvm 2.7+
|
23
|
+
* buildr >=1.4.0
|
24
|
+
* mirah >=0.7.0
|
21
25
|
|
22
26
|
## Installation
|
23
27
|
|
24
|
-
|
25
|
-
2. Check **$PREFIX** looks sane in the Makefile
|
26
|
-
3. Build vcx: **cd vcx && make**
|
27
|
-
4. Run the tests: **make check**
|
28
|
-
5. If all the tests pass, install it: **make install**
|
28
|
+
$ gem install buildr-mirah
|
29
29
|
|
30
30
|
## Usage
|
31
31
|
|
32
|
-
|
32
|
+
Here's an example Buildfile:
|
33
|
+
|
34
|
+
#
|
35
|
+
# boom -- mirah support enabled!
|
36
|
+
#
|
37
|
+
require "buildr/mirah"
|
38
|
+
|
39
|
+
repositories.remote << "http://mirrors.ibiblio.org/pub/mirrors/maven2/"
|
40
|
+
|
41
|
+
#
|
42
|
+
# optional, but nice if you don't like the src/main/mirah layout.
|
43
|
+
#
|
44
|
+
mirah_layout = Layout.new
|
45
|
+
mirah_layout[:source, :main, :mirah] = "src"
|
46
|
+
|
47
|
+
define "my-app", :layout => mirah_layout do
|
48
|
+
project.version = "0.0.1"
|
49
|
+
package :jar
|
50
|
+
end
|
51
|
+
|
52
|
+
Then:
|
53
|
+
|
54
|
+
$ buildr compile
|
33
55
|
|
34
56
|
## License
|
35
57
|
|
36
58
|
This software is available to you under the terms of the
|
37
|
-
[
|
59
|
+
[MIT](http://github.com/thomaslee/buildr-mirah/README.txt) license.
|
38
60
|
|
39
61
|
## Support
|
40
62
|
|
@@ -42,9 +64,8 @@ Please log defects and feature requests using the github issue tracker.
|
|
42
64
|
|
43
65
|
## About
|
44
66
|
|
45
|
-
|
67
|
+
buildr-mirah was written by [Tom Lee](http://tomlee.co).
|
46
68
|
|
47
|
-
Follow me on [Twitter](http://www.twitter.com/tglee)
|
69
|
+
Follow me on [Twitter](http://www.twitter.com/tglee) or
|
48
70
|
[LinkedIn](http://au.linkedin.com/pub/thomas-lee/2/386/629).
|
49
71
|
|
50
|
-
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{buildr-mirah}
|
8
|
+
s.version = "0.2.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Thomas Lee"]
|
12
|
+
s.date = %q{2011-07-04}
|
13
|
+
s.description = %q{Use buildr to compile your mirah projects}
|
14
|
+
s.email = %q{me@tomlee.co}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"LICENSE.txt",
|
23
|
+
"README.md",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"buildr-mirah.gemspec",
|
27
|
+
"lib/buildr-mirah.rb",
|
28
|
+
"lib/buildr/mirah.rb",
|
29
|
+
"test/helper.rb"
|
30
|
+
]
|
31
|
+
s.homepage = %q{http://github.com/thomaslee/buildr-mirah}
|
32
|
+
s.licenses = ["MIT"]
|
33
|
+
s.require_paths = ["lib"]
|
34
|
+
s.rubygems_version = %q{1.5.1}
|
35
|
+
s.summary = %q{Use buildr to compile your mirah projects}
|
36
|
+
|
37
|
+
if s.respond_to? :specification_version then
|
38
|
+
s.specification_version = 3
|
39
|
+
|
40
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
41
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
42
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
43
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.3"])
|
44
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
45
|
+
else
|
46
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
47
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
48
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.3"])
|
49
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
50
|
+
end
|
51
|
+
else
|
52
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
53
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
54
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.3"])
|
55
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
data/lib/buildr/mirah.rb
CHANGED
@@ -5,7 +5,7 @@ module Buildr::Mirah
|
|
5
5
|
end
|
6
6
|
|
7
7
|
CLASSNAME = "org.mirah.MirahCommand"
|
8
|
-
OPTIONS = [:classpath, :
|
8
|
+
OPTIONS = [:classpath, :dest]
|
9
9
|
|
10
10
|
class << self
|
11
11
|
def dependencies
|
@@ -43,11 +43,18 @@ module Buildr::Mirah
|
|
43
43
|
}
|
44
44
|
ant.java(java_options) do
|
45
45
|
ant.arg(:value => "compile")
|
46
|
-
|
46
|
+
|
47
|
+
mirahc_options = options.to_hash.only(*OPTIONS)
|
48
|
+
mirahc_options[:dest] = target
|
49
|
+
|
50
|
+
mirahc_options.each_pair do |key, value|
|
47
51
|
ant.arg(:value => "--#{key.to_s}")
|
48
52
|
ant.arg(:value => value)
|
49
53
|
end
|
50
|
-
|
54
|
+
ant.arg(:value => "--explicit-packages")
|
55
|
+
sources.each do |src|
|
56
|
+
ant.arg(:value => src)
|
57
|
+
end
|
51
58
|
end
|
52
59
|
end
|
53
60
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: buildr-mirah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.2.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Thomas Lee
|
@@ -66,18 +66,17 @@ extensions: []
|
|
66
66
|
extra_rdoc_files:
|
67
67
|
- LICENSE.txt
|
68
68
|
- README.md
|
69
|
-
- README.rdoc
|
70
69
|
files:
|
71
70
|
- .document
|
72
71
|
- Gemfile
|
73
72
|
- LICENSE.txt
|
74
|
-
- README.
|
73
|
+
- README.md
|
75
74
|
- Rakefile
|
76
75
|
- VERSION
|
76
|
+
- buildr-mirah.gemspec
|
77
77
|
- lib/buildr-mirah.rb
|
78
78
|
- lib/buildr/mirah.rb
|
79
79
|
- test/helper.rb
|
80
|
-
- README.md
|
81
80
|
has_rdoc: true
|
82
81
|
homepage: http://github.com/thomaslee/buildr-mirah
|
83
82
|
licenses:
|
data/README.rdoc
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
= buildr-mirah
|
2
|
-
|
3
|
-
Description goes here.
|
4
|
-
|
5
|
-
== Contributing to buildr-mirah
|
6
|
-
|
7
|
-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
8
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
9
|
-
* Fork the project
|
10
|
-
* Start a feature/bugfix branch
|
11
|
-
* Commit and push until you are happy with your contribution
|
12
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
-
|
15
|
-
== Copyright
|
16
|
-
|
17
|
-
Copyright (c) 2011 Thomas Lee. See LICENSE.txt for
|
18
|
-
further details.
|
19
|
-
|