aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMichael Blakeley2010-12-08 11:42:51 -0800
committerMike McQuaid2010-12-08 20:38:26 +0000
commitc022930f87c7bb10132656e9e0149249745a4331 (patch)
tree3d178faaf899214fa2d3a7a527e0d7368c0e4547 /Library/Formula
parent1da7795b84c82b4822739bffb39dc2fbb69ed3cf (diff)
downloadhomebrew-c022930f87c7bb10132656e9e0149249745a4331.tar.bz2
orpie is an ncurses rpn calculator
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/orpie.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/orpie.rb b/Library/Formula/orpie.rb
new file mode 100644
index 000000000..5e04a3cb8
--- /dev/null
+++ b/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