2012-08-16 15:52:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Tika < Formula
|
|
|
|
homepage 'http://tika.apache.org/'
|
2014-02-22 07:25:03 +00:00
|
|
|
url 'http://www.apache.org/dyn/closer.cgi?path=tika/tika-app-1.5.jar'
|
|
|
|
sha1 '7f3657da1075bf95ac8faa2bafcba24228e6c714'
|
2012-08-16 15:52:02 +00:00
|
|
|
|
2013-08-07 04:32:05 +00:00
|
|
|
resource 'server' do
|
2014-02-22 07:25:03 +00:00
|
|
|
url 'http://repo1.maven.org/maven2/org/apache/tika/tika-server/1.5/tika-server-1.5.jar'
|
|
|
|
sha1 '4c0a659ca54d881ab187091169439cf0891a8154'
|
2013-08-07 04:32:05 +00:00
|
|
|
end
|
|
|
|
|
2012-08-16 15:52:02 +00:00
|
|
|
def install
|
2013-10-12 15:18:37 +00:00
|
|
|
libexec.install "tika-app-#{version}.jar"
|
2013-08-12 23:47:47 +00:00
|
|
|
bin.write_jar_script libexec/"tika-app-#{version}.jar", "tika"
|
|
|
|
|
2013-08-07 04:32:05 +00:00
|
|
|
libexec.install resource('server')
|
|
|
|
bin.write_jar_script libexec/"tika-server-#{version}.jar", "tika-rest-server"
|
2012-08-16 15:52:02 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To run Tika:
|
|
|
|
tika
|
|
|
|
|
|
|
|
To run Tika's REST server:
|
|
|
|
tika-rest-server
|
|
|
|
|
|
|
|
See the Tika homepage for more documentation:
|
|
|
|
brew home tika
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|