homebrew-core/Formula/bagit.rb

23 lines
637 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
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/bagit-4.9.0/bagit-4.9.0-bin.zip"
sha256 "31b435e965aa6fa0b95943b199194fac42ff8bfd7050319cd4f06c5b183a86e8"
2015-10-22 13:08:56 +00:00
bottle :unneeded
def install
2014-02-27 05:54:04 +00:00
# put logs in var, not in the Cellar
(var/"log/bagit").mkpath
2014-02-27 05:54:04 +00:00
inreplace "conf/log4j.properties", "${app.home}/logs", "#{var}/log/bagit"
libexec.install Dir["*"]
2012-02-26 00:53:55 +00:00
2014-02-27 05:54:04 +00:00
bin.install_symlink libexec/"bin/bag"
end
2014-02-27 05:30:02 +00:00
test do
system bin/"bag"
2014-02-27 05:30:02 +00:00
end
end