homebrew-core/Formula/md5sha1sum.rb
Jack Nagel 2608cfc44c md5sha1sum: fix binary mis-naming issue
The md5sha1sum configure script looks in PREFIX (/usr/local by default)
to see if there are existing md5sum and sha1sum binaries, and adds the
prefix 'ub' to its own binaries if it finds them. This breaks
compatibility with sloccount, which depends on this specific md5
package. Fix it by passing '--prefix=#{prefix}' to configure.

They will override existing md5sum and sha1sum binaries when linked into
the prefix, but some measure of responsibility has to be on the user.

Fixes Homebrew/homebrew#5472.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-01 19:43:43 -05:00

14 lines
399 B
Ruby

require 'formula'
class Md5sha1sum < Formula
url 'http://www.microbrew.org/tools/md5sha1sum/md5sha1sum-0.9.5.tar.gz'
homepage 'http://www.microbrew.org/tools/md5sha1sum/'
md5 'a75c5e21071ffa66fad1001de040517a'
def install
system "./configure --prefix=#{prefix}"
system "make"
bin.install "md5sum"
['sha1sum', 'ripemd160sum'].each { |s| ln_s bin+'md5sum', bin+s }
end
end