2017-11-26 15:26:18 +00:00
|
|
|
class Mrboom < Formula
|
|
|
|
desc "Eight player Bomberman clone"
|
|
|
|
homepage "http://mrboom.mumblecore.org/"
|
2017-12-06 16:50:42 +00:00
|
|
|
url "https://github.com/Javanaise/mrboom-libretro/archive/4.1.tar.gz"
|
|
|
|
sha256 "97fde7a2ce7c1e9de7691d2ebd9987c61feaa6997a449c45320db31f496996c8"
|
2017-11-26 15:26:18 +00:00
|
|
|
|
2017-11-26 15:31:58 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2017-12-07 03:54:51 +00:00
|
|
|
sha256 "0639f07ac18a65cdea793a5f7041fbe6f9760a00a149dc3d6b6be19235b24c16" => :high_sierra
|
|
|
|
sha256 "9850e96338eea22b8c1bcdd322edf9fd356afe5875e211f5c132e069330b8d4c" => :sierra
|
|
|
|
sha256 "8fbd06b443e54465ebb70354d4790b5b4732443add94f8de0f2ab4790e0157c5" => :el_capitan
|
2017-11-26 15:31:58 +00:00
|
|
|
end
|
|
|
|
|
2017-11-26 15:26:18 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "libmodplug"
|
|
|
|
depends_on "minizip"
|
|
|
|
depends_on "sdl2"
|
|
|
|
depends_on "sdl2_mixer"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "mrboom", "LIBSDL2=1"
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
require "pty"
|
|
|
|
PTY.spawn(bin/"mrboom", "-m") do |r, _w, pid|
|
|
|
|
begin
|
|
|
|
sleep 1
|
|
|
|
Process.kill "SIGINT", pid
|
|
|
|
assert_match "monster", r.read
|
|
|
|
ensure
|
|
|
|
Process.wait pid
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|