diff options
| author | nibbles 2bits | 2012-05-18 02:31:26 -0700 |
|---|---|---|
| committer | Jack Nagel | 2012-05-24 20:47:08 -0500 |
| commit | 3f070ef24522adf624d2ecb11c5596dcc648e9a4 (patch) | |
| tree | c06f86ef1f387f571e68a7a36e85847dd4e45959 /Library/Formula | |
| parent | 70fa1d6e94cc1ab00c5f9398fc7820b56753a22d (diff) | |
| download | homebrew-3f070ef24522adf624d2ecb11c5596dcc648e9a4.tar.bz2 | |
wiggle 0.9
Upgrade wiggle to version 0.9.
Patch OSX compile errors using the developer's git repo.
Patch two functionality issues released the day after 0.9.
Include patch removal information in the comments.
Remove the `malloc` patches. They are fixed in this version.
Remove the `-w` from cflags lets the developer use `-Werror`.
Use our `cflags` and `-g` rather than `-ggdb` to support clang.
Add the `test` make target (~2sec) to verify the build because
we are trusting wiggle to do complex patching.
Closes #12305.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/wiggle.rb | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/Library/Formula/wiggle.rb b/Library/Formula/wiggle.rb index 8ef3c148f..b7122a219 100644 --- a/Library/Formula/wiggle.rb +++ b/Library/Formula/wiggle.rb @@ -1,18 +1,30 @@ require 'formula' class Wiggle < Formula - url 'http://neil.brown.name/wiggle/wiggle-0.8.tar.gz' homepage 'http://neil.brown.name/blog/20100324064620' - md5 '17aae004f63791faa4ff1d0e7639131d' + url 'http://neil.brown.name/wiggle/wiggle-0.9.tar.gz' + sha1 '9091671b939559025d217b8830eaab4b313f6b44' - def install - # Deal with OS X malloc vs stdlib - inreplace "load.c", "#include <malloc.h>", "#include <stdlib.h>" - inreplace Dir["*.c"], /#include\s+<malloc\.h>/, "" + # 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 + [ + 'http://neil.brown.name/git?p=wiggle;a=patch;h=b5281154078e768c43bf75d70df66c61542c580a', + 'http://neil.brown.name/git?p=wiggle;a=patch;h=9c7b89a7b7bfa33ec24c04dfebceba1a464cbf1b', + 'http://neil.brown.name/git?p=wiggle;a=patch;h=0da9cb2c412ad27802788bdb5e23854f2478dbe6', + 'http://neil.brown.name/git?p=wiggle;a=patch;h=5eb651029aed24bbe4e093ffb11b6a70c02b44e2', + 'http://neil.brown.name/git?p=wiggle;a=patch;h=22612c04075b1bce61922e396cca4641760f226b' + ] + end - # Avoid running tests - system "make wiggle wiggle.man" + def install + # Adjust debug flags according to INSTALL doc + inreplace 'Makefile', 'OptDbg=-ggdb', "OptDbg=-g #{ENV.cflags}" + # 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" # Manual install into Homebrew prefix bin.install "wiggle" man1.install "wiggle.1" |
