2010-09-17 19:39:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Bagit < Formula
|
2012-02-26 00:43:34 +00:00
|
|
|
homepage 'http://sourceforge.net/projects/loc-xferutils/files/loc-bil-java-library/4.1/'
|
|
|
|
url 'http://downloads.sourceforge.net/project/loc-xferutils/loc-bil-java-library/4.1/bagit-4.1-bin.zip'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'a8ae349e3901a7eb38ff580dd10dd915440c27cc'
|
2010-09-17 19:39:43 +00:00
|
|
|
|
|
|
|
skip_clean 'logs'
|
|
|
|
|
|
|
|
def install
|
2012-02-26 00:46:38 +00:00
|
|
|
prefix.install %w{conf logs}
|
2012-02-26 00:53:55 +00:00
|
|
|
|
2010-09-17 19:39:43 +00:00
|
|
|
libexec.install Dir['lib/*']
|
2012-02-26 00:53:55 +00:00
|
|
|
|
|
|
|
# Point to libexec, and move conf file
|
|
|
|
inreplace "bin/bag" do |s|
|
|
|
|
s.gsub! "$APP_HOME/lib", "$APP_HOME/libexec"
|
|
|
|
s.gsub! "/bin/$APP_NAME.classworlds.conf", "/conf/$APP_NAME.classworlds.conf"
|
|
|
|
end
|
2010-09-17 19:39:43 +00:00
|
|
|
inreplace "bin/bag.classworlds.conf", "${app.home}/lib", "${app.home}/libexec"
|
2012-02-26 00:53:55 +00:00
|
|
|
|
|
|
|
bin.install 'bin/bag'
|
|
|
|
(prefix+'conf').install 'bin/bag.classworlds.conf'
|
2010-09-17 19:39:43 +00:00
|
|
|
end
|
|
|
|
end
|