2010-12-08 19:42:51 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Orpie < Formula
|
2010-12-08 19:42:51 +00:00
|
|
|
url 'http://pessimization.com/software/orpie/orpie-1.5.1.tar.gz'
|
|
|
|
homepage 'http://pessimization.com/software/orpie/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '4e4887d8abcf015a5b423a2d1164ace95ab2d5c1'
|
2010-12-08 19:42:51 +00:00
|
|
|
|
|
|
|
depends_on 'gsl'
|
|
|
|
depends_on 'objective-caml'
|
|
|
|
|
|
|
|
def install
|
2010-12-08 21:13:49 +00:00
|
|
|
# OCAMLOPT=/usr/bin/false prevents configure from finding ocaml.opt
|
|
|
|
# so orpie is built and runs as bytecode otherwise the build
|
|
|
|
# fails with "undefined symbol" errors.
|
2010-12-08 19:42:51 +00:00
|
|
|
# This mechanism still works if /usr/bin/false doesn't exist,
|
|
|
|
# although the build output will be uglier in that scenario.
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}", "--mandir=#{man}", "OCAMLOPT=/usr/bin/false"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|