2012-07-26 21:20:08 +00:00
|
|
|
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'
|
2012-09-05 04:04:01 +00:00
|
|
|
keg_only :provided_by_osx unless MacOS.version >= :mountain_lion
|
2012-07-26 21:20:08 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
cd 'md' do
|
|
|
|
system "#{ENV.cc} #{ENV.cflags} -o md md.c"
|
|
|
|
bin.install('md')
|
|
|
|
man1.install('md.1')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|