blob: 6f2c8188d9f6730a53e0d9565c723b64a8fb217f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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'
sha1 'b9ef2eb0de0cd26c3c92e0b3342d0ea4c37e8975'
conflicts_with 'nmap', :because => 'both install `ndiff` binaries'
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
test do
system "#{bin}/ndiff", "--help"
end
end
|