homebrew-core/Formula/fits.rb
2011-03-12 11:55:09 -08:00

19 lines
531 B
Ruby

require 'formula'
class Fits < Formula
url 'http://fits.googlecode.com/files/fits-0.4.3.zip'
homepage 'http://code.google.com/p/fits/'
md5 '24d1c71def27500b2edf68b1a40f6f84'
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