homebrew-core/Formula/genstats.rb
Adam Vandenberg 0ae40dc4d7 genstats 1.2
Uses strndup, so marked as needing lion
2013-09-27 21:29:47 -07:00

26 lines
725 B
Ruby

require 'formula'
class Genstats < Formula
homepage 'http://www.vanheusden.com/genstats/'
url 'http://www.vanheusden.com/genstats/genstats-1.2.tgz'
sha1 '9b60278d3b0cc5dace63f081f4d5a7c3b6cbc473'
depends_on :macos => :lion # uses strndup
def install
# Tried to make this a patch. Applying the patch hunk would
# fail, even though I used "git diff | pbcopy". Tried messing
# with whitespace, # lines, etc. Ugh.
inreplace 'br.cpp' do |s|
s.gsub! /if \(_XOPEN_VERSION >= 600\)/, 'if (_XOPEN_VERSION >= 600) && !__APPLE__'
end
system 'make'
bin.install('genstats')
man.install('genstats.1')
end
def test
system "genstats -h | grep folkert@vanheusden.com"
end
end