2011-03-18 02:05:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Wiggle < Formula
|
|
|
|
homepage 'http://neil.brown.name/blog/20100324064620'
|
2012-05-18 09:31:26 +00:00
|
|
|
url 'http://neil.brown.name/wiggle/wiggle-0.9.tar.gz'
|
|
|
|
sha1 '9091671b939559025d217b8830eaab4b313f6b44'
|
2011-03-18 02:05:27 +00:00
|
|
|
|
2012-05-18 09:31:26 +00:00
|
|
|
# Patches 1,2,4 are fixes for OSX in response to a report for Homebrew.
|
|
|
|
# Patches 3 & 5 are unrelated but were added the day after 0.9 was released.
|
|
|
|
# As all 5 patches are in HEAD, remove them after version 0.9.
|
|
|
|
def patches
|
|
|
|
[
|
2012-11-27 21:08:29 +00:00
|
|
|
'http://neil.brown.name/git?p=wiggle.git;a=patch;h=b5281154078e768c43bf75d70df66c61542c580a',
|
|
|
|
'http://neil.brown.name/git?p=wiggle.git;a=patch;h=9c7b89a7b7bfa33ec24c04dfebceba1a464cbf1b',
|
|
|
|
'http://neil.brown.name/git?p=wiggle.git;a=patch;h=0da9cb2c412ad27802788bdb5e23854f2478dbe6',
|
|
|
|
'http://neil.brown.name/git?p=wiggle.git;a=patch;h=5eb651029aed24bbe4e093ffb11b6a70c02b44e2',
|
|
|
|
'http://neil.brown.name/git?p=wiggle.git;a=patch;h=22612c04075b1bce61922e396cca4641760f226b'
|
2012-05-18 09:31:26 +00:00
|
|
|
]
|
|
|
|
end
|
2011-03-18 02:05:27 +00:00
|
|
|
|
2012-05-18 09:31:26 +00:00
|
|
|
def install
|
|
|
|
# Adjust debug flags according to INSTALL doc
|
|
|
|
inreplace 'Makefile', 'OptDbg=-ggdb', "OptDbg=-g #{ENV.cflags}"
|
2011-03-18 02:05:27 +00:00
|
|
|
|
2012-05-18 09:31:26 +00:00
|
|
|
# Avoid broken install that uses an unrecognized flag, '-D'. Let it run
|
|
|
|
# the tests because we are trusting it to patch files correctly (~2sec).
|
|
|
|
system "make wiggle wiggle.man test"
|
2011-03-18 02:05:27 +00:00
|
|
|
# Manual install into Homebrew prefix
|
|
|
|
bin.install "wiggle"
|
|
|
|
man1.install "wiggle.1"
|
|
|
|
end
|
|
|
|
end
|