Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

orpie is an ncurses rpn calculator

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information...
commit c022930f87c7bb10132656e9e0149249745a4331 1 parent 1da7795
Michael Blakeley authored mikemcquaid committed
Showing with 23 additions and 0 deletions.
  1. +23 −0 Library/Formula/orpie.rb
View
23 Library/Formula/orpie.rb
@@ -0,0 +1,23 @@
+require 'formula'
+
+class Orpie <Formula
+ url 'http://pessimization.com/software/orpie/orpie-1.5.1.tar.gz'
+ homepage 'http://pessimization.com/software/orpie/'
+ md5 '4511626ed853354af1b4b5dbbf143a1f'
+
+ depends_on 'gsl'
+ depends_on 'objective-caml'
+
+ def install
+ # 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" errrors. This is similar to,
+ # but more elegant than, the macports Makefile.in patch.
+ # 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
Please sign in to comment.
Something went wrong with that request. Please try again.