2010-09-22 01:41:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fits < Formula
|
2010-09-22 01:41:42 +00:00
|
|
|
homepage 'http://code.google.com/p/fits/'
|
2013-03-18 21:30:20 +00:00
|
|
|
url 'http://fits.googlecode.com/files/fits-0.6.2.zip'
|
|
|
|
sha1 '92e3b6c869288152fde8ae1266e5d23c9ef55680'
|
2010-09-22 01:41:42 +00:00
|
|
|
|
|
|
|
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
|