forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkmc.rb
35 lines (28 loc) · 869 Bytes
/
kmc.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
32
33
34
35
class Kmc < Formula
homepage "http://sun.aei.polsl.pl/kmc/"
# doi "10.1093/bioinformatics/btv022"
# tag "bioinformatics"
url "https://github.com/marekkokot/KMC/archive/2.1.1.tar.gz"
sha1 "4e02620f4afc034d99b7d8bed41ba02fc71c291f"
head "https://github.com/marekkokot/KMC.git"
bottle do
sha1 "372e4be330575a56c2fcf97b3b687d6a52921d2f" => :yosemite
sha1 "7875e23b857d2517090bfef5ee7db7c454d2d0e9" => :mavericks
sha1 "e6c87b894020a6f386d18828c494832ca7a0b6db" => :mountain_lion
end
fails_with :clang do
build 600
cause "error: 'ext/algorithm' file not found"
end
needs :cxx11
needs :openmp
def install
system "make", "CC=#{ENV.cxx}",
OS.mac? ? "-fmakefile_mac" : "-fmakefile"
bin.install "bin/kmc", "bin/kmc_dump"
doc.install "README.md", "readme.txt"
end
test do
system "#{bin}/kmc"
end
end