blob: 82bf35812e8500d6472df49e1f4db9620c648b3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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
test do
system "#{bin}/genstats -h | grep folkert@vanheusden.com"
end
end
|