homebrew-core/Formula/fits.rb
nibbles 2bits 54815da39f fits 0.6.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-30 08:28:24 -07:00

19 lines
540 B
Ruby

require 'formula'
class Fits < Formula
homepage 'http://code.google.com/p/fits/'
url 'http://fits.googlecode.com/files/fits-0.6.1.zip'
sha1 '528be5e8d68c468ea1ea45c4812c15da8f52e9f4'
def install
inreplace 'fits.sh' do |s|
s.gsub! "FITS_HOME=`echo \"$0\" | sed 's,/[^/]*$,,'`", "FITS_HOME=#{prefix}"
s.gsub! "${FITS_HOME}/lib", libexec
end
prefix.install %w{ COPYING COPYING.LESSER tools xml }
prefix.install Dir['*.txt']
libexec.install Dir['lib/*']
bin.install 'fits.sh' => 'fits'
end
end