forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnp_sites.rb
31 lines (24 loc) · 765 Bytes
/
snp_sites.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
require 'formula'
class SnpSites < Formula
homepage 'https://github.com/sanger-pathogens/snp_sites'
url 'https://github.com/sanger-pathogens/snp_sites/archive/1.5.0.tar.gz'
sha1 '3b9e6dd25a6c4dd75631f95f593b18697115e110'
head 'https://github.com/sanger-pathogens/snp_sites.git'
depends_on :autoconf
depends_on :automake
depends_on :libtool
def install
inreplace "src/Makefile.am", "-lrt", "" if OS.mac? # no librt for osx
system "autoreconf -i"
system "./configure",
"--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
ln_s "#{bin}/snp-sites", "#{bin}/snp_sites"
share.install "tests/data"
end
test do
system "snp_sites"
end
end