blob: 284873d315f879f581b64f7269886c75fc4211ef (
plain)
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
42
43
|
class AutodockVina < Formula
desc "Open-source program for doing molecular docking"
homepage "http://vina.scripps.edu"
url "https://github.com/ccsb-scripps/AutoDock-Vina/archive/refs/tags/v1.2.3.tar.gz"
sha256 "22f85b2e770b6acc363429153b9551f56e0a0d88d25f747a40d2f55a263608e0"
license "Apache-2.0"
depends_on "swig" => :build
depends_on "boost"
def install
if OS.mac?
cd "build/mac/release" do
inreplace "Makefile" do |s|
s.gsub! "C_OPTIONS= -O3 -DNDEBUG -std=c++11", "C_OPTIONS= -O3 -DNDEBUG \
-std=c++14 -DBOOST_TIMER_ENABLE_DEPRECATED"
s.gsub! "BASE=/usr/local", "BASE=#{HOMEBREW_PREFIX}"
end
system "make"
system "make"
bin.install "vina"
bin.install "vina_split"
end
else
cd "build/linux/release" do
inreplace "Makefile" do |s|
s.gsub! "C_OPTIONS= -O3 -DNDEBUG -std=c++11", "C_OPTIONS= -O3 -DNDEBUG \
-std=c++14 -DBOOST_TIMER_ENABLE_DEPRECATED"
s.gsub! "BASE=/usr/local", "BASE=#{HOMEBREW_PREFIX}"
end
system "make"
system "make"
bin.install "vina"
bin.install "vina_split"
end
end
end
test do
system "#{HOMEBREW_PREFIX}/bin/vina", "--version"
system "#{HOMEBREW_PREFIX}/bin/vina_split", "--version"
end
end
|