forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfasta.rb
More file actions
26 lines (23 loc) · 650 Bytes
/
fasta.rb
File metadata and controls
26 lines (23 loc) · 650 Bytes
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
require 'formula'
class Fasta < Formula
homepage 'http://faculty.virginia.edu/wrpearson/fasta/'
url 'http://faculty.virginia.edu/wrpearson/fasta/fasta36/fasta-36.3.6d.tar.gz'
sha1 '54e08a52de4e11600600c224fbd341eb668d3b0a'
def install
cd 'src' do
system 'make', '-f', case RUBY_PLATFORM.downcase
when /darwin/
'../make/Makefile.os_x86_64'
when /linux/
'../make/Makefile.linux64_sse2'
else
raise "The system `#{`uname`.chomp}' is not supported."
end
end
bin.install Dir['bin/*']
doc.install Dir['doc/*']
end
test do
system "#{bin}/fasta36"
end
end