2012-04-23 22:20:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2013-01-21 14:18:45 +00:00
|
|
|
class LionOrNewer < Requirement
|
|
|
|
fatal true
|
|
|
|
|
2013-01-22 20:33:33 +00:00
|
|
|
satisfy MacOS.version >= :lion
|
2013-01-20 02:45:59 +00:00
|
|
|
|
2013-01-21 14:18:45 +00:00
|
|
|
def message
|
|
|
|
"rhash requires `wcsdup` which isn't in the SDK before Lion."
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2012-04-23 22:20:57 +00:00
|
|
|
class Rhash < Formula
|
|
|
|
homepage 'http://rhash.anz.ru/'
|
2013-01-18 06:47:24 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/rhash/rhash/1.2.10/rhash-1.2.10-src.tar.gz'
|
|
|
|
sha1 '130f55faf3f13760ef0ab6a25e52db5052064c63'
|
2012-04-23 22:20:57 +00:00
|
|
|
|
2013-01-27 22:49:06 +00:00
|
|
|
depends_on LionOrNewer
|
2013-01-21 14:18:45 +00:00
|
|
|
|
2012-04-23 22:20:57 +00:00
|
|
|
def install
|
2012-10-27 20:44:39 +00:00
|
|
|
system 'make', 'install', "PREFIX=",
|
2012-04-23 22:20:57 +00:00
|
|
|
"DESTDIR=#{prefix}",
|
|
|
|
"CC=#{ENV.cc}"
|
|
|
|
end
|
|
|
|
end
|