aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tophat.rb
blob: 76c4a4fc851f6deae7df4382907c2add09aca0ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'formula'

class Tophat < Formula
  url 'http://tophat.cbcb.umd.edu/downloads/tophat-1.4.1.tar.gz'
  homepage 'http://tophat.cbcb.umd.edu/'
  sha1 '0513bbcadb7194f12fbddeb3e4033e032f2fb29f'

  depends_on 'samtools'

  fails_with :clang do
    build 421
    cause <<-EOS.undent
      Compiling with clang results in the error "default arguments
      cannot be added to a function template that has already been declared".
      Upstream source should move default parameter declaration to fix.
    EOS
  end

  def install
    # It seems this project Makefile doesn't like -j4
    # Disable until consult with upstream
    ENV.deparallelize

    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end