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'
url 'https://github.com/LibraryOfCongress/bagit-java/releases/download/bagit-4.8.1/bagit-4.8.1-bin.zip'
sha1 'a5f42372dcbe75f44d9181dd8edc8e6f18b68ec9'
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