diff options
| author | Adam Vandenberg | 2013-01-21 06:18:45 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-21 06:18:45 -0800 |
| commit | d22fe630ef2ccdcad741a154a8480e06a2bc988a (patch) | |
| tree | b77219431335f52d8d06779b20595361551c45ea /Library | |
| parent | 833c706dff2fd72dde99a5b8c0c73798085cfdbf (diff) | |
| download | homebrew-d22fe630ef2ccdcad741a154a8480e06a2bc988a.tar.bz2 | |
rhash: add Lion requirement
Closes #17132.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rhash.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/rhash.rb b/Library/Formula/rhash.rb index 1b611ed7a..2b497c13b 100644 --- a/Library/Formula/rhash.rb +++ b/Library/Formula/rhash.rb @@ -1,10 +1,24 @@ require 'formula' +class LionOrNewer < Requirement + fatal true + + def satisfied? + MacOS.version >= :lion + end + def message + "rhash requires `wcsdup` which isn't in the SDK before Lion." + end +end + + class Rhash < Formula homepage 'http://rhash.anz.ru/' url 'http://downloads.sourceforge.net/project/rhash/rhash/1.2.10/rhash-1.2.10-src.tar.gz' sha1 '130f55faf3f13760ef0ab6a25e52db5052064c63' + depends_on LionOrNewer.new + def install system 'make', 'install', "PREFIX=", "DESTDIR=#{prefix}", |
