forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsmc.rb
31 lines (26 loc) · 1.03 KB
/
psmc.rb
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
29
30
31
class Psmc < Formula
desc "Pairwise Sequentially Markovian Coalescent (PSMC) model"
homepage "https://github.com/lh3/psmc"
bottle do
cellar :any
sha256 "fc899e94c6d9eaafaaacb1af70d3aa074bb0cd4c8f8d9895670c2ba8b3e6f761" => :yosemite
sha256 "2c45d58d00910f8502bae0bf520ee345093bf57cb24edfb02252fccbdf062f53" => :mavericks
sha256 "af3b4d8927a341412c0d4dbde99ddb0f88dd28bc1250079c24d4846c3816d066" => :mountain_lion
sha256 "393528a080f7953435fde83fa3f1a42fbfe7f6f746780a573f9dd0d37e59e936" => :x86_64_linux
end
# doi "10.1038/nature10231"
# tag "bioinformatics"
url "https://github.com/lh3/psmc/archive/0.6.5.tar.gz"
sha256 "0954b3e28dda4ae350bdb9ebe9eeb3afb3a6d4448cf794dac3b4fde895c3489b"
head "https://github.com/lh3/psmc.git"
def install
system "make"
system "make", "-C", "utils"
bin.install "psmc"
doc.install "README"
bin.install Dir["utils/*"].select { |x| File.executable?(x) && !x.end_with?(".c") }
end
test do
assert_match "Usage", shell_output("#{bin}/psmc 2>&1", 1)
end
end