homebrew-core/Formula/jena.rb

36 lines
894 B
Ruby

class Jena < Formula
desc "Framework for building semantic web and linked data apps"
homepage "https://jena.apache.org/"
url "https://www.apache.org/dyn/closer.lua?path=jena/binaries/apache-jena-4.0.0.tar.gz"
mirror "https://archive.apache.org/dist/jena/binaries/apache-jena-4.0.0.tar.gz"
sha256 "0302e511e1073101a4665eb17281dea0bc435ac5bcc973071cbb28fc65f69cb9"
license "Apache-2.0"
bottle :unneeded
depends_on "openjdk"
def install
env = {
JAVA_HOME: Formula["openjdk"].opt_prefix,
JENA_HOME: libexec,
}
rm_rf "bat" # Remove Windows scripts
libexec.install Dir["*"]
Pathname.glob("#{libexec}/bin/*") do |file|
next if file.directory?
basename = file.basename
next if basename.to_s == "service"
(bin/basename).write_env_script file, env
end
end
test do
system "#{bin}/sparql", "--version"
end
end