aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/hmmer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/hmmer.rb')
-rw-r--r--Library/Formula/hmmer.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/Library/Formula/hmmer.rb b/Library/Formula/hmmer.rb
index 1c91a3e4e..ebb1cb551 100644
--- a/Library/Formula/hmmer.rb
+++ b/Library/Formula/hmmer.rb
@@ -1,8 +1,8 @@
require 'formula'
class Hmmer < Formula
- url 'http://selab.janelia.org/software/hmmer3/3.0/hmmer-3.0.tar.gz'
homepage 'http://hmmer.janelia.org/'
+ url 'http://selab.janelia.org/software/hmmer3/3.0/hmmer-3.0.tar.gz'
md5 '4cf685f3bc524ba5b5cdaaa070a83588'
def install
@@ -11,12 +11,13 @@ class Hmmer < Formula
# Install man pages manually as long as automatic man page install
# is deactivated in the HMMER makefile. If this changes in future
- # versions of HMMER, these lines can be removed:
+ # versions of HMMER, these lines can be removed.
- Dir.chdir "documentation/man"
- # rename all *.man files to *.1 and install them into man1 section
- Dir.glob("*.man") do |filename|
- man1.install filename => filename.sub(/\.man/, ".1")
+ 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
end
end
end