From 2eb9eb442222aefc5d59d5b55e6fd70af4f800d7 Mon Sep 17 00:00:00 2001 From: Mikolaj Konarski Date: Sun, 21 Apr 2019 20:22:46 +0200 Subject: [PATCH] allureofthestars 0.9.4.0 (new formula) Closes #39142. Signed-off-by: FX Coudert --- Formula/allureofthestars.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/allureofthestars.rb diff --git a/Formula/allureofthestars.rb b/Formula/allureofthestars.rb new file mode 100644 index 0000000000..b1d6f9876f --- /dev/null +++ b/Formula/allureofthestars.rb @@ -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