diff options
| author | nicholas harteau | 2011-04-01 22:40:17 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-03 14:25:41 -0700 |
| commit | 2b107fb63d11d3416d5e1c8811d0644a0967111c (patch) | |
| tree | 6367bb70b08f2563a4f62b910de175213dd73926 /Library | |
| parent | 846513a618ce6b3643d941c244f86e98d280c318 (diff) | |
| download | homebrew-2b107fb63d11d3416d5e1c8811d0644a0967111c.tar.bz2 | |
add netris-0.52 w/debian patches
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/netris.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/netris.rb b/Library/Formula/netris.rb new file mode 100644 index 000000000..0448a8f64 --- /dev/null +++ b/Library/Formula/netris.rb @@ -0,0 +1,30 @@ +require 'formula' + +class Netris < Formula + url 'ftp://ftp.netris.org/pub/netris/netris-0.52.tar.gz' + homepage 'http://www.netris.org/' + md5 'b55af5697175ee06f7c6e40101979c38' + + # Debian has been applying fixes and security patches, so let's re-use their work. + # Also fixes case of "TERM=xterm-color256" which otherwise segfaults. + def patches + [ + 'http://patch-tracker.debian.org/patch/series/dl/netris/0.52-9/01_multi-games-with-scoring', + 'http://patch-tracker.debian.org/patch/series/dl/netris/0.52-9/02_line-count-patch', + 'http://patch-tracker.debian.org/patch/series/dl/netris/0.52-9/03_staircase-effect-fix', + 'http://patch-tracker.debian.org/patch/series/dl/netris/0.52-9/04_robot-close-fixup', + 'http://patch-tracker.debian.org/patch/series/dl/netris/0.52-9/05_init-static-vars', + 'http://patch-tracker.debian.org/patch/series/dl/netris/0.52-9/06_curses.c-include-term.h', + 'http://patch-tracker.debian.org/patch/series/dl/netris/0.52-9/07_curses.c-include-time.h', + 'http://patch-tracker.debian.org/patch/series/dl/netris/0.52-9/08_various-fixes', + 'http://patch-tracker.debian.org/patch/series/dl/netris/0.52-9/09_ipv6', + 'http://patch-tracker.debian.org/patch/series/dl/netris/0.52-9/10_fix-memory-leak', + ] + end + + def install + system "sh Configure" + system "make" + bin.install "netris" + end +end |
