2011-03-31 20:05:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cufflinks < Formula
|
|
|
|
homepage 'http://cufflinks.cbcb.umd.edu/'
|
2012-10-19 07:29:31 +00:00
|
|
|
url 'http://cufflinks.cbcb.umd.edu/downloads/cufflinks-2.0.2.tar.gz'
|
|
|
|
sha1 '91954b4945c49ca133b39bffadf51bdf9ec2ff26'
|
2011-03-31 20:05:54 +00:00
|
|
|
|
2012-10-19 07:29:31 +00:00
|
|
|
depends_on 'boost' => :build
|
|
|
|
depends_on 'samtools' => :build
|
|
|
|
depends_on 'eigen' => :build
|
2011-03-31 20:05:54 +00:00
|
|
|
|
2012-08-08 18:06:01 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 421
|
|
|
|
end
|
|
|
|
|
2011-03-31 20:05:54 +00:00
|
|
|
def install
|
2012-10-19 07:29:31 +00:00
|
|
|
ENV['EIGEN_CPPFLAGS'] = '-I'+Formula.factory('eigen').include/'eigen3'
|
|
|
|
ENV.append 'LDFLAGS', '-lboost_system-mt'
|
|
|
|
cd 'src' do
|
|
|
|
# Fixes 120 files redefining `foreach` that break building with boost
|
|
|
|
# See http://seqanswers.com/forums/showthread.php?t=16637
|
|
|
|
`for x in *.cpp *.h; do sed 's/foreach/for_each/' $x > x; mv x $x; done`
|
|
|
|
inreplace 'common.h', 'for_each.hpp', 'foreach.hpp'
|
|
|
|
end
|
2011-03-31 20:05:54 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2012-10-19 07:29:31 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
|
|
|
system 'make'
|
|
|
|
ENV.j1
|
|
|
|
system 'make install'
|
2011-03-31 20:05:54 +00:00
|
|
|
end
|
|
|
|
end
|