homebrew-core/Formula/gnu-prolog.rb
Adam Vandenberg da3fdbd0cf Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00

25 lines
591 B
Ruby

require 'formula'
class GnuProlog < Formula
url 'http://gprolog.univ-paris1.fr/gprolog-1.4.0.tar.gz'
homepage 'http://www.gprolog.org/'
md5 'cc944e5637a04a9184c8aa46c947fd16'
skip_clean :all
fails_with_llvm :build => 2334
def install
ENV.j1 # make won't run in parallel
cd 'src' do
# Applies fix as seen here:
# http://lists.gnu.org/archive/html/users-prolog/2011-07/msg00013.html
inreplace "configure", "darwin10", "darwin1"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install-strip"
end
end
end