2011-03-10 05:11:03 +00:00
|
|
|
class Bagit < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Library for creation, manipulation, and validation of bags"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://github.com/LibraryOfCongress/bagit-java"
|
2016-03-17 17:06:37 +00:00
|
|
|
url "https://github.com/LibraryOfCongress/bagit-java/releases/download/v4.12.0/bagit-4.12.0.zip"
|
|
|
|
sha256 "045efaff7375af8cb47c9dc7890bf17d4d49d149e4d3ac388862288087505695"
|
2010-09-17 19:39:43 +00:00
|
|
|
|
2015-10-22 13:08:56 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2010-09-17 19:39:43 +00:00
|
|
|
def install
|
2014-02-27 05:54:04 +00:00
|
|
|
# put logs in var, not in the Cellar
|
2015-08-03 12:55:31 +00:00
|
|
|
(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:19:55 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
libexec.install Dir["*"]
|
2012-02-26 00:53:55 +00:00
|
|
|
|
2016-03-17 17:06:37 +00:00
|
|
|
bin.install_symlink libexec/"bin/bagit"
|
2010-09-17 19:39:43 +00:00
|
|
|
end
|
2014-02-27 05:30:02 +00:00
|
|
|
|
|
|
|
test do
|
2016-03-17 17:06:37 +00:00
|
|
|
system bin/"bagit"
|
2014-02-27 05:30:02 +00:00
|
|
|
end
|
2010-09-17 19:39:43 +00:00
|
|
|
end
|