From b64f20ada5206437250081101ed023210c6c1242 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 26 Jan 2018 19:15:47 -0800 Subject: [PATCH] taisei 1.2 Co-authored-by: Misty De Meo Closes #23809. Signed-off-by: Misty De Meo --- Formula/taisei.rb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Formula/taisei.rb b/Formula/taisei.rb index 2bb34fde96..dc144db69a 100644 --- a/Formula/taisei.rb +++ b/Formula/taisei.rb @@ -2,9 +2,8 @@ class Taisei < Formula desc "Clone of Touhou Project shoot-em-up games" homepage "https://taisei-project.org/" url "https://github.com/taisei-project/taisei.git", - :tag => "v1.1.2", - :revision => "3c5da74722b445c6aaf8af7666ba2e7e29fb4ccb" - revision 2 + :tag => "v1.2", + :revision => "46fb0f894ad269528ac7fda533c7994eddd9b758" bottle do cellar :any @@ -13,8 +12,8 @@ class Taisei < Formula sha256 "fed47ca7b0254468f374b1319347877a8c1cdb39253985de0151003d97d65e41" => :el_capitan end - depends_on "bash" => :build - depends_on "cmake" => :build + depends_on "meson" => :build + depends_on "ninja" => :build depends_on "pkg-config" => :build depends_on "freetype" depends_on "libpng" @@ -26,9 +25,9 @@ class Taisei < Formula def install mkdir "build" do - system "cmake", "..", "-DOSX_TOOL_PREFIX=", "-DOSX_LIB_PATH=:", - *std_cmake_args - system "make", "install" + system "meson", "--prefix=#{prefix}", "-Ddocs=false", "-Dmacos_bundle=false", ".." + system "ninja" + system "ninja", "install" end end @@ -37,7 +36,7 @@ class Taisei < Formula end test do - output = shell_output("#{prefix}/Taisei.app/Contents/MacOS/Taisei -h", 1) + output = shell_output("#{bin}/taisei -h", 1) assert_match "Touhou clone", output end end