homebrew-core/Formula/bagit.rb

25 lines
665 B
Ruby

class Bagit < Formula
desc "Library for creation, manipulation, and validation of bags"
homepage "https://github.com/LibraryOfCongress/bagit-java"
url "https://github.com/LibraryOfCongress/bagit-java/releases/download/v4.12.3/bagit-v4.12.3.zip"
sha256 "7736d00fafe575ea298788a8d697a2af490dd12f856b43cd57bf579a374199e1"
bottle :unneeded
depends_on :java => "1.8+"
def install
# put logs in var, not in the Cellar
(var/"log/bagit").mkpath
inreplace "conf/log4j.properties", "${app.home}/logs", "#{var}/log/bagit"
libexec.install Dir["*"]
bin.install_symlink libexec/"bin/bagit"
end
test do
system bin/"bagit"
end
end