41f00510bf
Closes #2648. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
22 lines
634 B
Ruby
22 lines
634 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.1/bagit-4.12.1.zip"
|
|
sha256 "2abf838c090867e887cc46bb9f95ab697a6706ee297be8ff8ebc8dc4404ff64e"
|
|
|
|
bottle :unneeded
|
|
|
|
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
|