2013-09-27 20:51:44 +00:00
|
|
|
class Jena < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Framework for building semantic web and linked data apps"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://jena.apache.org/"
|
2016-01-29 15:47:30 +00:00
|
|
|
url "https://archive.apache.org/dist/jena/binaries/apache-jena-3.0.1.tar.gz"
|
|
|
|
sha256 "8175f1624dbe33ff33054ee2a8e8ef556af19f1d3a1065b8bbfcbf84ad3c3562"
|
2013-09-27 20:51:44 +00:00
|
|
|
|
2015-10-22 13:41:23 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
def shim_script(target)
|
2013-09-27 20:51:44 +00:00
|
|
|
<<-EOS.undent
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
export JENA_HOME="#{libexec}"
|
|
|
|
"$JENA_HOME/bin/#{target}" "$@"
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2015-11-01 22:13:09 +00:00
|
|
|
conflicts_with "samba",
|
|
|
|
:because => "both install `tdbbackup` and `tdbdump` binaries"
|
|
|
|
|
2013-09-27 20:51:44 +00:00
|
|
|
def install
|
2014-05-30 18:17:26 +00:00
|
|
|
rm_rf "bat" # Remove Windows scripts
|
2013-09-27 20:51:44 +00:00
|
|
|
|
2016-01-29 15:47:30 +00:00
|
|
|
prefix.install %w[LICENSE NOTICE README]
|
|
|
|
doc.install ["javadoc-arq", "javadoc-core", "javadoc-tdb", "src-examples"]
|
2015-08-03 12:55:31 +00:00
|
|
|
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
|