aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mallet.rb
diff options
context:
space:
mode:
authorSamuel John2013-03-31 20:51:43 +0200
committerSamuel John2013-03-31 20:54:25 +0200
commit9495b06ef3f35be8711902ce268ccfc92cdcb056 (patch)
tree8a155f95a7237eb8a424987ac7189a3accb50d2a /Library/Formula/mallet.rb
parent65fe8946bf4915c6b0d6c6e64dfc205f10c43f3c (diff)
downloadhomebrew-9495b06ef3f35be8711902ce268ccfc92cdcb056.tar.bz2
Moved to homebrew/science Octave, OpenCV, VTK, ...
Diffstat (limited to 'Library/Formula/mallet.rb')
-rw-r--r--Library/Formula/mallet.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/Library/Formula/mallet.rb b/Library/Formula/mallet.rb
deleted file mode 100644
index 43ef6d28d..000000000
--- a/Library/Formula/mallet.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-require 'formula'
-
-class Mallet < Formula
- homepage 'http://mallet.cs.umass.edu/'
- url 'http://mallet.cs.umass.edu/dist/mallet-2.0.7.tar.gz'
- sha1 '45f6ad87ad7605d9f009be5f47b0bbf2ca47d89e'
-
- # Creates a wrapper to set the classpath before executing
- # the utility.
- def startup_script(name)
- <<-EOS.undent
- #!/bin/sh
- CLASSPATH=$CLASSPATH:#{libexec}/class:#{libexec}/lib/mallet-deps.jar "#{libexec}/bin/#{name}" "$@"
- EOS
- end
-
- def install
- rm Dir['bin/*.{bat,dll,exe}'] # Remove all windows files
- prefix.install_metafiles
- libexec.install Dir['*']
- cd libexec+'bin' do
- Dir['*'].each do |file|
- fn = File.basename(file)
- (bin+fn).write startup_script(fn)
- end
- end
- end
-end