diff options
| author | Mark A. Matienzo | 2010-09-21 21:41:42 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-21 18:54:41 -0700 |
| commit | d109e88ede68e8ede5f6ada72f2bad1d1216810d (patch) | |
| tree | bbfbe2829a66dcdd4dc0165dd909112bf86dbecc /Library | |
| parent | cc6182f311a3b3f967785b3720b128ea94ce1b66 (diff) | |
| download | homebrew-d109e88ede68e8ede5f6ada72f2bad1d1216810d.tar.bz2 | |
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>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/fits.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/fits.rb b/Library/Formula/fits.rb new file mode 100644 index 000000000..45021e0d2 --- /dev/null +++ b/Library/Formula/fits.rb @@ -0,0 +1,19 @@ +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 |
