forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bedops.rb
39 lines (32 loc) · 1.02 KB
/
bedops.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
class Bedops < Formula
homepage 'https://github.com/bedops/bedops'
#doi "10.1093/bioinformatics/bts277"
#tag "bioinformatics"
url "https://github.com/bedops/bedops/archive/v2.4.14.tar.gz"
sha1 "7e7f721b033f9d4b706c036d439af3f3bb0c5efe"
head 'https://github.com/bedops/bedops.git'
bottle do
root_url "https://homebrew.bintray.com/bottles-science"
cellar :any
sha256 "ac1a745078141fc3c14950ba1bd27b15cc886ac5290942f03572d8f76b127a8a" => :yosemite
sha256 "24f16e72a7f1401a67e50c851bcc02ea1d694fc08092331ebc611010acc24085" => :mavericks
sha256 "c4c3d988b952f794b2bd41c7d9be8ec13ea27549c26d60a50611ed97ad0825bb" => :mountain_lion
end
env :std
fails_with :gcc do
build 5666
cause 'BEDOPS toolkit requires a C++11 compliant compiler'
end
def install
ENV.O3
ENV.delete('CFLAGS')
ENV.delete('CXXFLAGS')
system 'make'
system 'make', 'install'
bin.install Dir['bin/*']
doc.install %w[LICENSE README.md]
end
test do
system "#{bin}/bedops", '--version'
end
end