diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-04-03 02:12:11 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-04-03 08:27:01 +0000 |
commit | 5e735c4d135bd78c6a0a875e9eaabfbdbf411ef2 (patch) | |
tree | bdad7d7bbd28bc5de59ad604419ace50724c6141 /Formula/autodock-vina.rb | |
parent | 721376bf55f2ee22bcae969a98dafe5bbb05aebc (diff) |
rebuild
Closes #4.
Signed-off-by: Navan Chauhan <navanchauhan@gmail.com>
Diffstat (limited to 'Formula/autodock-vina.rb')
-rw-r--r-- | Formula/autodock-vina.rb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Formula/autodock-vina.rb b/Formula/autodock-vina.rb new file mode 100644 index 0000000..078b16c --- /dev/null +++ b/Formula/autodock-vina.rb @@ -0,0 +1,43 @@ +class AutodockVina < Formula + desc "Open-source program for doing molecular docking" + homepage "https://vina.scripps.edu" + url "https://github.com/ccsb-scripps/AutoDock-Vina/archive/refs/tags/v1.2.5.tar.gz" + sha256 "38aec306bff0e47522ca8f581095ace9303ae98f6a64031495a9ff1e4b2ff712" + 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 -fvisibility=hidden", "C_OPTIONS= -O3 -DNDEBUG \ + -std=c++14 -fvisibility=hidden -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 |