homebrew-core/Formula/jena.rb

38 lines
1006 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.4.0.tar.gz"
mirror "https://archive.apache.org/dist/jena/binaries/apache-jena-4.4.0.tar.gz"
sha256 "ffe17bc0a9251622777531ddeb9d080529c060e031fd92db93da1fa1917d13c9"
license "Apache-2.0"
bottle do
sha256 cellar: :any_skip_relocation, all: "8f2de42e58c625bdf7be71a9bd0a9e3557e70f69c47202f979748fa0504b5289"
end
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