taisei 1.2

Co-authored-by: Misty De Meo <mistydemeo@gmail.com>

Closes #23809.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
master
ilovezfs 2018-01-26 19:15:47 -08:00 committed by Misty De Meo
parent 914a9f722b
commit b64f20ada5
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C
1 changed files with 8 additions and 9 deletions

View File

@ -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