2017-02-06 10:26:50 +00:00
|
|
|
class Cockatrice < Formula
|
|
|
|
desc "Virtual tabletop for multiplayer card games"
|
|
|
|
homepage "https://github.com/Cockatrice/Cockatrice"
|
|
|
|
url "https://github.com/Cockatrice/Cockatrice.git",
|
2017-04-16 05:03:46 +00:00
|
|
|
:tag => "2017-04-15-Release-2.3.16",
|
|
|
|
:revision => "dc6c3752201bd5a93f588a690cc462a118b3d40c"
|
|
|
|
version "2.3.16"
|
|
|
|
version_scheme 1
|
2017-02-06 10:26:50 +00:00
|
|
|
head "https://github.com/Cockatrice/Cockatrice.git"
|
|
|
|
|
|
|
|
bottle do
|
2017-04-16 05:10:15 +00:00
|
|
|
sha256 "356615f5a2bbad45351cc4484743f8616335ffef95d01e2901ca47b09ff1a408" => :sierra
|
|
|
|
sha256 "0f453dce61b0bc6fe442f431ac53b895ba4b47de26f50ab89e26f048ea28503c" => :el_capitan
|
|
|
|
sha256 "9233b939255152d97a70fcad4e40292584e8a309d36a9ff676b705038756ce21" => :yosemite
|
2017-02-06 10:26:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
option "with-server", "Build `servatrice` for running game servers"
|
|
|
|
|
|
|
|
depends_on :macos => :mavericks
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "protobuf"
|
|
|
|
|
|
|
|
if build.with? "server"
|
2017-04-06 08:03:07 +00:00
|
|
|
depends_on "qt" => "with-mysql"
|
2017-02-06 10:26:50 +00:00
|
|
|
else
|
2017-04-06 08:03:07 +00:00
|
|
|
depends_on "qt"
|
2017-02-06 10:26:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
fails_with :clang do
|
|
|
|
build 503
|
|
|
|
cause "Undefined symbols for architecture x86_64: google::protobuf"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
mkdir "build" do
|
|
|
|
args = std_cmake_args
|
|
|
|
args << "-DWITH_SERVER=ON" if build.with? "server"
|
|
|
|
system "cmake", "..", *args
|
|
|
|
system "make", "install"
|
|
|
|
prefix.install Dir["release/*.app"]
|
|
|
|
end
|
|
|
|
doc.install Dir["doc/usermanual/*"]
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(prefix/"cockatrice.app/Contents/MacOS/cockatrice").executable?
|
|
|
|
(prefix/"oracle.app/Contents/MacOS/oracle").executable?
|
|
|
|
end
|
|
|
|
end
|