6df66cd7e5
Apple's version is quite out of date. There's no version number but man unifdef says it's from 2002. Version 2.6 shipped in February of this year. Some software like Gevent(.org) won't compile with the devtools version of unifdef. Closes Homebrew/homebrew#7283. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
18 lines
389 B
Ruby
18 lines
389 B
Ruby
require 'formula'
|
|
|
|
class Unifdef < Formula
|
|
url 'http://dotat.at/prog/unifdef/unifdef-2.6.tar.gz'
|
|
homepage 'http://dotat.at/prog/unifdef/'
|
|
md5 '18b832baea2c7b6b00bd7d4f3db38f62'
|
|
|
|
keg_only :provided_by_osx,
|
|
"The unifdef provided by Xcode cannot compile gevent."
|
|
|
|
def install
|
|
system "make prefix=#{prefix} install"
|
|
end
|
|
|
|
def test
|
|
system "echo '' | unifdef"
|
|
end
|
|
end
|