20 lines
530 B
Ruby
20 lines
530 B
Ruby
|
require 'formula'
|
||
|
|
||
|
class Fits <Formula
|
||
|
url 'http://fits.googlecode.com/files/fits-0.4.2.zip'
|
||
|
homepage 'http://code.google.com/p/fits/'
|
||
|
md5 'd5a2aba74c701d7c91e6f69bcb72a8f2'
|
||
|
|
||
|
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
|