Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 33 lines (29 sloc) 1.535 kb
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 27 28 29 30 31 32
require 'formula'

class Netris < Formula
  # Official site is non-responsive - 3/19/2012 - @adamv
  homepage 'http://www.netris.org/'
  url 'ftp://ftp.netris.org/pub/netris/netris-0.52.tar.gz'
  mirror 'http://ftp.de.debian.org/debian/pool/main/n/netris/netris_0.52.orig.tar.gz'
  sha1 '5a51f68ccb6c09fbd3a940f57d0ded52c3d3a535'

  # 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
Something went wrong with that request. Please try again.