require 'formula'

class Topcat < Formula
  homepage 'http://www.star.bris.ac.uk/~mbt/topcat/'
  url 'https://downloads.sourceforge.net/project/hongpublicfiles/topcat/topcat-4.0-1.tar.gz'
  sha1 '71ef9e3a6b749eb7baceb434e318a51da4ae669c'

  def install
    bin.install Dir['*']
  end
end

require 'formula'

class Topcat < Formula
  homepage 'http://www.star.bris.ac.uk/~mbt/topcat/'
  url 'https://downloads.sourceforge.net/project/hongpublicfiles/topcat/topcat-4.0-1.tar.gz'
  sha1 '71ef9e3a6b749eb7baceb434e318a51da4ae669c'

  def install
    bin.install 'topcat'
    (share+'java').install 'topcat-full.jar'
  end

  def caveats
    <<-EOS.undent
      The Java JAR files are installed to
        #{share}/java
    EOS
  end
end

Install jar files in share.
Install jar files in share.
