allureofthestars 0.9.4.0 (new formula)

Closes #39142.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Mikolaj Konarski 2019-04-21 20:22:46 +02:00 committed by FX Coudert
parent 8c035cb69f
commit 2eb9eb4422

View file

@ -0,0 +1,28 @@
require "language/haskell"
class Allureofthestars < Formula
include Language::Haskell::Cabal
desc "Near-future Sci-Fi roguelike and tactical squad combat game"
homepage "http://allureofthestars.com"
url "https://hackage.haskell.org/package/Allure-0.9.4.0/Allure-0.9.4.0.tar.gz"
sha256 "503cd08dd6dd71d0afe63920b8fa171047449e95a35369dab0936c490d3dabf4"
head "https://github.com/AllureOfTheStars/Allure.git"
depends_on "cabal-install" => :build
depends_on "ghc" => :build
depends_on "pkg-config" => :build
depends_on "sdl2_ttf"
def install
install_cabal_package :using => ["happy", "alex"]
end
test do
non_debug_args = "--logPriority 0 --newGame 3 --maxFps 100000 --stopAfterFrames 50 --automateAll --keepAutomated --gameMode battle --setDungeonRng 7 --setMainRng 7"
output = shell_output("#{bin}/Allure --dbgMsgSer --dbgMsgCli #{non_debug_args}")
assert_equal "", output
assert_equal "", shell_output("cat ~/.Allure/stderr.txt")
assert_match "UI client FactionId 1 stopped", shell_output("cat ~/.Allure/stdout.txt")
end
end