-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmash.rb
41 lines (35 loc) · 1.12 KB
/
mash.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
36
37
38
39
40
41
class Mash < Formula
# cite Ondov_2016: "https://doi.org/10.1186/s13059-016-0997-x"
desc "Fast genome distance estimation using MinHash"
homepage "https://github.com/marbl/Mash"
# tag "bioinformatics"
# doi "10.1101/029827"
# tag origin homebrew-science
# tag derived
url "https://github.com/marbl/Mash/archive/v2.0.tar.gz"
sha256 "7bea8cd3c266640bbd97f2e1c9d0168892915c1c14f7d03a9751bf7a3709dd01"
head "https://github.com/marbl/Mash.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "capnp"
depends_on "gsl"
depends_on "zlib" unless OS.mac?
def install
# https://github.com/marbl/Mash/issues/98
inreplace "configure.ac", "c++11", "c++14"
inreplace "Makefile.in", "c++11", "c++14"
system "./bootstrap.sh"
system "./configure",
"--prefix=#{prefix}",
"--with-capnp=#{Formula["capnp"].opt_prefix}",
"--with-gsl=#{Formula["gsl"].opt_prefix}"
system "make"
bin.install "mash"
doc.install Dir["doc/sphinx/*"]
end
test do
system bin/"mash", "-h"
end
end