tika: interpolate version

This commit is contained in:
Jack Nagel 2013-08-12 18:47:47 -05:00
parent 4e00360495
commit 534d59dd93

View file

@ -12,10 +12,11 @@ class Tika < Formula
def install
libexec.install "tika-app-#{version}.jar"
bin.write_jar_script libexec/"tika-app-1.4.jar", "tika"
TikaRestServer.new.brew do
libexec.install "tika-server-1.4.jar"
bin.write_jar_script libexec/"tika-server-1.4.jar", "tika-rest-server"
bin.write_jar_script libexec/"tika-app-#{version}.jar", "tika"
TikaRestServer.new.brew do |server|
libexec.install "tika-server-#{server.version}.jar"
bin.write_jar_script libexec/"tika-server-#{server.version}.jar", "tika-rest-server"
end
end