forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmallet.rb
31 lines (26 loc) · 1.05 KB
/
mallet.rb
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
class Mallet < Formula
desc "MAchine Learning for LanguagE Toolkit"
homepage "http://mallet.cs.umass.edu/"
bottle do
cellar :any_skip_relocation
sha256 "da32cef7b10fcbfc1f5fc7878f779a5000d88f3363342b6c9ff1830f29d85803" => :sierra
sha256 "f870d8dac822eeda26296f069d488547cb415c2eaaeb0fd0e822595308c0b390" => :el_capitan
sha256 "f870d8dac822eeda26296f069d488547cb415c2eaaeb0fd0e822595308c0b390" => :yosemite
sha256 "d2556a240155cfc90259839cb5861d7c4d1e8e58d3210b934bbd5b1cf5897495" => :x86_64_linux
end
# tag "machine learning"
url "http://mallet.cs.umass.edu/dist/mallet-2.0.8.tar.gz"
sha256 "5b2d6fb9bcf600b1836b09881821a6781dd45a7d3032e61d7500d027a5b34faf"
head "https://github.com/mimno/Mallet.git"
depends_on :java
def install
rm Dir["bin/*.{bat,dll,exe}"] # Remove all windows files
prefix.install_metafiles
libexec.install Dir["*"]
bin.install Dir["#{libexec}/bin/*"]
bin.env_script_all_files(libexec/"bin", Language::Java.java_home_env)
end
test do
system "#{bin}/mallet | grep Mallet"
end
end