aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSimon Heimlicher2012-07-26 23:20:08 +0200
committerMisty De Meo2012-07-28 20:27:46 -0300
commit0b296b217d813dd30c574639c203c9ccc110780c (patch)
treee596262bb4b5b407e3f49d6d927aaca31a3f8814 /Library/Formula
parentaefdb1b9d74d7e08950772b0a2e8edd218f07f16 (diff)
downloadhomebrew-0b296b217d813dd30c574639c203c9ccc110780c.tar.bz2
Added formula for md (1), which is missing from OS X Mountain Lion
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 #13612. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/md.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/md.rb b/Library/Formula/md.rb
new file mode 100644
index 000000000..e113b1504
--- /dev/null
+++ b/Library/Formula/md.rb
@@ -0,0 +1,18 @@
+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