homebrew-core/Formula/fits.rb

20 lines
531 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Fits < Formula
url 'http://fits.googlecode.com/files/fits-0.5.0.zip'
homepage 'http://code.google.com/p/fits/'
md5 '40243d7943faecd18ecf6fd84963c5b7'
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