f8ea567573
Up to and including 10.7.4, OS X shipped with 'md' at '/usr/bin/md', a BSD utility to manage dependencies. Since OS X 10.8, 'md' is missing, which causes compilation of older software to fail with an error message along the lines of 'make: md: No such file or directory'. This formula uses the source for 'md' from OS X 10.7.4. Closes Homebrew/homebrew#13612. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
18 lines
495 B
Ruby
18 lines
495 B
Ruby
require 'formula'
|
|
|
|
class Md < Formula
|
|
homepage 'http://opensource.apple.com/source/adv_cmds/adv_cmds-147/md/'
|
|
url 'http://opensource.apple.com/tarballs/adv_cmds/adv_cmds-147.tar.gz'
|
|
sha1 '0128de65a4da2ef9655f3b1e6a94d2f8ae292414'
|
|
|
|
# OS X up to and including Lion 10.7 includes 'md'
|
|
keg_only :provided_by_osx unless MacOS.mountain_lion?
|
|
|
|
def install
|
|
cd 'md' do
|
|
system "#{ENV.cc} #{ENV.cflags} -o md md.c"
|
|
bin.install('md')
|
|
man1.install('md.1')
|
|
end
|
|
end
|
|
end
|