2013-09-27 20:51:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Jena < Formula
|
|
|
|
homepage 'http://jena.apache.org/'
|
2014-11-19 21:01:59 +00:00
|
|
|
url 'http://archive.apache.org/dist/jena/binaries/apache-jena-2.12.1.tar.gz'
|
|
|
|
sha1 '4493a893b12b119d89d991d6d9c1f11f0700139b'
|
2013-09-27 20:51:44 +00:00
|
|
|
|
|
|
|
def shim_script target
|
|
|
|
<<-EOS.undent
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
export JENA_HOME="#{libexec}"
|
|
|
|
"$JENA_HOME/bin/#{target}" "$@"
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2014-05-30 18:17:26 +00:00
|
|
|
rm_rf "bat" # Remove Windows scripts
|
2013-09-27 20:51:44 +00:00
|
|
|
|
|
|
|
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['*']
|
2014-05-31 15:00:24 +00:00
|
|
|
Dir.glob("#{libexec}/bin/*") do |path|
|
2014-04-01 17:43:32 +00:00
|
|
|
bin_name = File.basename(path)
|
2013-09-27 20:51:44 +00:00
|
|
|
(bin+bin_name).write shim_script(bin_name)
|
2014-04-01 17:43:32 +00:00
|
|
|
end
|
2013-09-27 20:51:44 +00:00
|
|
|
end
|
|
|
|
end
|