forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
biomake.rb
32 lines (28 loc) · 1.18 KB
/
biomake.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
class Biomake < Formula
desc "GNU-Make-like utility for managing builds and complex workflows"
homepage "https://github.com/evoldoers/biomake"
url "https://github.com/evoldoers/biomake/archive/v0.1.2.tar.gz"
sha256 "3ed91b553201b2b0aeab600f1f0795f1c02cb1cb1f19a4c0a2bb78070147b096"
head "https://github.com/evoldoers/biomake.git"
# doi "10.1101/093245"
# tag "bioinformatics"
bottle do
cellar :any_skip_relocation
sha256 "8d4d692c775761ffc7ae14b2e53796aa973752855172f11e85441e90b8269c2f" => :high_sierra
sha256 "8d4d692c775761ffc7ae14b2e53796aa973752855172f11e85441e90b8269c2f" => :sierra
sha256 "8d4d692c775761ffc7ae14b2e53796aa973752855172f11e85441e90b8269c2f" => :el_capitan
sha256 "578c9fd0bab410bd697bf6a8f69f3c8c6cbab87e9a4fc00457e95b38a50cb82e" => :x86_64_linux
end
depends_on "swi-prolog"
def install
inreplace "bin/biomake", "$PATH_TO_ME/swipl_wrap", "swipl"
rm ["bin/swipl_wrap", "Makefile"]
rm_r "t"
prefix.install Dir["*"]
end
test do
assert_match "Options", shell_output("#{bin}/biomake -h")
(testpath/"Makefile").write "default: ; echo Homebrew"
assert_match /^Homebrew$/, shell_output("#{bin}/biomake")
end
end