homebrew-core/Formula/jena.rb
Martin Czygan fcdbd037c6 jena 2.12.0
Closes Homebrew/homebrew#31329.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-08-04 12:20:29 +01:00

27 lines
798 B
Ruby

require 'formula'
class Jena < Formula
homepage 'http://jena.apache.org/'
url 'http://www.apache.org/dist/jena/binaries/apache-jena-2.12.0.tar.gz'
sha1 '12eeed737290e2f0bc0a3180d50a1eda7502ab04'
def shim_script target
<<-EOS.undent
#!/usr/bin/env bash
export JENA_HOME="#{libexec}"
"$JENA_HOME/bin/#{target}" "$@"
EOS
end
def install
rm_rf "bat" # Remove Windows scripts
prefix.install %w{ LICENSE ReleaseNotes-Jena.txt NOTICE ReleaseNotes-TDB.txt README ReleaseNotes-ARQ.txt }
doc.install ['javadoc-arq', 'javadoc-core', 'javadoc-sdb', 'javadoc-tdb', 'src-examples']
libexec.install Dir['*']
Dir.glob("#{libexec}/bin/*") do |path|
bin_name = File.basename(path)
(bin+bin_name).write shim_script(bin_name)
end
end
end