2010-09-22 01:41:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Fits <Formula
|
2011-01-03 16:50:48 +00:00
|
|
|
url 'http://fits.googlecode.com/files/fits-0.4.3.zip'
|
2010-09-22 01:41:42 +00:00
|
|
|
homepage 'http://code.google.com/p/fits/'
|
2011-01-03 16:50:48 +00:00
|
|
|
md5 '24d1c71def27500b2edf68b1a40f6f84'
|
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
|