homebrew-core/Formula/fits.rb
Mark A. Matienzo 2861b249f4 New Formula: fits
The File Information Tool Set (FITS) identifies, validates, and extracts
technical metadata for various file formats. It wraps several third-party open
source tools, normalizes and consolidates their output, and reports any
errors. FITS was created by the Harvard University Library Office for
Information Systems for use in its Digital Repository Service (DRS).

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-09-21 18:54:41 -07:00

19 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