homebrew-core/Formula/bagit.rb
Brett Koonce 8c0f39fce6 bagit 4.12.2
Closes #10287.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2017-02-26 11:32:12 +01:00

24 lines
664 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.2/bagit-4.12.2.zip"
sha256 "6fa04f2d5f679894bd0dfcf0b2023dabdf6b2c254da6c28c9a226e8b5bf8303c"
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