2010-09-17 19:39:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Bagit < Formula
|
2010-09-17 19:39:43 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/loc-xferutils/loc-bil-java-library/3.6/bagit-3.6-bin.zip'
|
|
|
|
homepage 'http://sourceforge.net/project/loc-xferutils'
|
|
|
|
md5 '37b3ed7c787a1722e8dbe5acdb6298ce'
|
|
|
|
|
|
|
|
skip_clean 'logs'
|
|
|
|
|
|
|
|
def install
|
|
|
|
prefix.install %w{ LICENSE.txt README.txt conf logs}
|
|
|
|
libexec.install Dir['lib/*']
|
|
|
|
inreplace "bin/bag", "$APP_HOME/lib", "$APP_HOME/libexec"
|
|
|
|
inreplace "bin/bag.classworlds.conf", "${app.home}/lib", "${app.home}/libexec"
|
|
|
|
rm "bin/bag.bat"
|
|
|
|
bin.install Dir['bin/*']
|
|
|
|
end
|
|
|
|
end
|