diff options
| author | Adam Vandenberg | 2014-02-26 21:54:04 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-26 21:54:04 -0800 |
| commit | 544d2a4b19383943b95ac71fe746c7cd15ed405c (patch) | |
| tree | 602f095cc78816693ec076af3ddf169bb027c86f /Library | |
| parent | 13fe08be038dbdcac6ae835fcbce3ae480e278bd (diff) | |
| download | homebrew-544d2a4b19383943b95ac71fe746c7cd15ed405c.tar.bz2 | |
bagit: simplify install to libexec
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/bagit.rb | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Library/Formula/bagit.rb b/Library/Formula/bagit.rb index 6fcc1ebce..2829f0779 100644 --- a/Library/Formula/bagit.rb +++ b/Library/Formula/bagit.rb @@ -6,22 +6,13 @@ class Bagit < Formula sha1 'a5f42372dcbe75f44d9181dd8edc8e6f18b68ec9' def install - inreplace "conf/log4j.properties", "${app.home}/logs", "#{var}/log/bagit" + # put logs in var, not in the Cellar (var/'log/bagit').mkpath + inreplace "conf/log4j.properties", "${app.home}/logs", "#{var}/log/bagit" - prefix.install 'conf' - - libexec.install Dir['lib/*'] - - # 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 - inreplace "bin/bag.classworlds.conf", "${app.home}/lib", "${app.home}/libexec" + libexec.install Dir['*'] - bin.install 'bin/bag' - (prefix+'conf').install 'bin/bag.classworlds.conf' + bin.install_symlink libexec/"bin/bag" end test do |
