36 lines
1.1 KiB
Ruby
36 lines
1.1 KiB
Ruby
class OpenBabel < Formula
|
|
desc "Chemical toolbox"
|
|
homepage "https://openbabel.org"
|
|
url "https://github.com/openbabel/openbabel/archive/openbabel-2-4-1.tar.gz"
|
|
version "2.4.1"
|
|
sha256 "594c7f8a83f3502381469d643f7b185882da1dd4bc2280c16502ef980af2a776"
|
|
revision 1
|
|
head "https://github.com/openbabel/openbabel.git"
|
|
|
|
bottle do
|
|
sha256 "4ab9e67beff60ffa0f90c8f35b3fc729ecbf44387deca6d42a57feb6b399d6ca" => :catalina
|
|
sha256 "61c3b83067ef6ecff739ad64af1f7dee20c66459838f2584b5ace1077261cbef" => :mojave
|
|
sha256 "0383df12c965d3e2b0087812186992b32ed6d02fc7bcfef397b071db2b96e568" => :high_sierra
|
|
sha256 "fac962fa1127ac9476e5dd1c44ba593c6184bb49444eac28804e45609243e8f9" => :sierra
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "eigen"
|
|
|
|
def install
|
|
args = std_cmake_args + %w[
|
|
-DCAIRO_LIBRARY:FILEPATH=
|
|
]
|
|
|
|
mkdir "build" do
|
|
system "cmake", "..", *args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/obabel", "-:'C1=CC=CC=C1Br'", "-omol"
|
|
end
|
|
end
|