require 'formula' class Gabedit < Formula homepage 'http://gabedit.sourceforge.net/' url 'https://downloads.sourceforge.net/project/gabedit/gabedit/Gabedit240/GabeditSrc240.tar.gz' version '2.4.0' sha1 '9c53590051da363f419a6b746594bf9f9aa92737' devel do url 'https://downloads.sourceforge.net/project/gabedit/GabeditDevloppment/Gabedit247/GabeditSrc247.tar.gz' version '2.4.7' sha1 'fce078aced941742dc01f37b08a0ab4a2df54741' end depends_on 'pkg-config' => :build depends_on 'gtk+' depends_on 'gtkglext' def install args = [] args << "OMPLIB=" << "OMPCFLAGS=" if ENV.compiler == :clang system 'make', *args bin.install 'gabedit' end end