homebrew-core/Formula/mathomatic.rb
nibbles 2bits c3c0a58db1 mathomatic 15.8.4
* Upgrade mathomatic to version 15.8.4
* Switch from `make install` to `make m4install`
* Add a `make` in the primes subdirectory

By switching to `make m4install` we get everything in the previous
formula plus the m4 macros "which allow easy entry of math
functions like sqrt(x) and sin(x) as macros."

By adding `make` in the primes subdirectory we get the Mathomatic
prime number tools, `matho-primes`.

Changelog is here: http://www.mathomatic.org/NEWS

Mathomatic runs, and testing it by doing simple math is successful
when it's built with clang or llvm from XCode-4.3.2 on Lion.

Closes Homebrew/homebrew#12219.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-13 13:34:57 -05:00

17 lines
381 B
Ruby

require 'formula'
class Mathomatic < Formula
homepage 'http://www.mathomatic.org/math/'
url 'http://mathomatic.org/mathomatic-15.8.4.tar.bz2'
sha1 '2e5572685577050f0f0587c60c974bf4c34e0d60'
def install
ENV['prefix'] = prefix
system "make READLINE=1"
system "make m4install"
cd 'primes' do
system 'make'
system 'make install'
end
end
end