homebrew-core/Formula/gabedit.rb
2019-06-18 14:32:12 +02:00

40 lines
1.3 KiB
Ruby

class Gabedit < Formula
desc "GUI to computational chemistry packages like Gamess-US, Gaussian, etc."
homepage "https://gabedit.sourceforge.io/"
url "https://downloads.sourceforge.net/project/gabedit/gabedit/Gabedit250/GabeditSrc250.tar.gz"
version "2.5.0"
sha256 "45cdde213a09294bbf2df5f324ea11fc4c4045b3f9d58e4d67979e6f071c7689"
revision 2
bottle do
cellar :any
rebuild 1
sha256 "c8bd86798356203a2e554310149b51299c2221827a030fd74763c9237996fc9f" => :mojave
sha256 "83b205bd7a01eb782a9346f048c3c2e217ba4dc425f620853a4da066563e6b5c" => :high_sierra
sha256 "72d3d9bda815ffda49197241c46139686fbc0a4b2c9aeab2dce258573e5ea17b" => :sierra
end
depends_on "pkg-config" => :build
depends_on "gtk+"
depends_on "gtkglext"
def install
opengl_headers = MacOS.sdk_path/"System/Library/Frameworks/OpenGL.framework/Headers"
(buildpath/"brew_include").install_symlink opengl_headers => "GL"
inreplace "CONFIG" do |s|
s.gsub! "-lX11", ""
s.gsub! "-lpangox-1.0", ""
s.gsub! "GTKCFLAGS =", "GTKCFLAGS = -I#{buildpath}/brew_include"
end
args = []
args << "OMPLIB=" << "OMPCFLAGS=" if ENV.compiler == :clang
system "make", *args
bin.install "gabedit"
end
test do
assert_predicate bin/"gabedit", :exist?
end
end