2011-05-19 15:22:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Hmmer < Formula
|
|
|
|
homepage 'http://hmmer.janelia.org/'
|
2012-02-21 06:04:21 +00:00
|
|
|
url 'http://selab.janelia.org/software/hmmer3/3.0/hmmer-3.0.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '77803c0bdb3ab07b7051a4c68c0564de31940c6d'
|
2011-05-19 15:22:47 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
|
|
|
|
# Install man pages manually as long as automatic man page install
|
|
|
|
# is deactivated in the HMMER makefile. If this changes in future
|
2012-02-21 06:04:21 +00:00
|
|
|
# versions of HMMER, these lines can be removed.
|
2011-05-19 15:22:47 +00:00
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd "documentation/man" do
|
|
|
|
# rename all *.man files to *.1 and install them into man1 section
|
|
|
|
Dir["*.man"].each do |f|
|
|
|
|
man1.install f => f.sub(/\.man/, ".1")
|
|
|
|
end
|
2011-05-19 15:22:47 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|