diff options
| author | Michael Andrews | 2013-10-31 16:53:36 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-17 10:53:44 -0800 |
| commit | a1c2e8eb15f46db93b9415c667528df64034a68e (patch) | |
| tree | 67227c33bca1dbf0ee17ad30c5d11c7004de508d /Library/Formula | |
| parent | f846948c0c11858083310fadca09ec46f2dc81c8 (diff) | |
| download | homebrew-a1c2e8eb15f46db93b9415c667528df64034a68e.tar.bz2 | |
mahout 0.8
Closes #23846.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mahout.rb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Library/Formula/mahout.rb b/Library/Formula/mahout.rb new file mode 100644 index 000000000..274c495fc --- /dev/null +++ b/Library/Formula/mahout.rb @@ -0,0 +1,37 @@ +require 'formula' + +class Mahout < Formula + homepage 'http://mahout.apache.org/' + head 'http://svn.apache.org/repos/asf/mahout/trunk' + url 'http://apache.cs.utah.edu/mahout/0.8/mahout-distribution-0.8.tar.gz' + sha1 '67669fa4a8969a8b8c6ebb94fa7f5aeae96e9119' + + depends_on 'maven' => :build + depends_on 'hadoop' + + def install + if build.head? + system 'chmod 755 ./bin' + system 'mvn -DskipTests clean install' + end + + libexec.install %w[bin] + + if build.head? + libexec.install Dir['buildtools/target/*.jar'] + libexec.install Dir['core/target/*.jar'] + libexec.install Dir['examples/target/*.jar'] + libexec.install Dir['math/target/*.jar'] + else + libexec.install Dir['*.jar'] + end + + bin.write_exec_script Dir["#{libexec}/bin/*"] + end + + def caveats; <<-EOS.undent + Mahout requires JAVA_HOME to be set: + export JAVA_HOME=$(/usr/libexec/java_home) + EOS + end +end |
