homebrew-core/Formula/bagit.rb

22 lines
542 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Bagit < Formula
2014-02-27 05:00:40 +00:00
homepage 'https://github.com/LibraryOfCongress/bagit-java'
2014-03-16 15:25:21 +00:00
url 'https://github.com/LibraryOfCongress/bagit-java/releases/download/bagit-4.9.0/bagit-4.9.0-bin.zip'
sha1 '6ca4c2a202ce6c975b130a180cd3bd2dcbe5a756'
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"
2014-02-27 05:54:04 +00:00
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'
end
end