2012-03-30 17:44:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ndiff < Formula
|
|
|
|
homepage 'http://www.math.utah.edu/~beebe/software/ndiff/'
|
|
|
|
url 'ftp://ftp.math.utah.edu/pub/misc/ndiff-2.00.tar.gz'
|
2012-09-04 17:45:36 +00:00
|
|
|
sha1 'b9ef2eb0de0cd26c3c92e0b3342d0ea4c37e8975'
|
2012-03-30 17:44:04 +00:00
|
|
|
|
2013-11-13 04:48:13 +00:00
|
|
|
conflicts_with 'namp', :because => 'both install `ndiff` binaries'
|
|
|
|
|
2012-03-30 17:44:04 +00:00
|
|
|
def install
|
|
|
|
ENV.j1
|
|
|
|
# Install manually as the `install` make target is crufty
|
|
|
|
system "./configure", "--prefix=.", "--mandir=."
|
|
|
|
mkpath 'bin'
|
|
|
|
mkpath 'man/man1'
|
|
|
|
system "make install"
|
|
|
|
bin.install "bin/ndiff"
|
|
|
|
man1.install "man/man1/ndiff.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/ndiff", "--help"
|
2012-03-30 17:44:04 +00:00
|
|
|
end
|
|
|
|
end
|