wesnoth: migrate to cask (#48158)
This commit is contained in:
parent
1d35f6f1b2
commit
2f7b3bbe03
2 changed files with 2 additions and 47 deletions
|
@ -1,46 +0,0 @@
|
|||
class Wesnoth < Formula
|
||||
desc "Single- and multi-player turn-based strategy game"
|
||||
homepage "https://www.wesnoth.org/"
|
||||
url "https://downloads.sourceforge.net/project/wesnoth/wesnoth-1.12/wesnoth-1.12.6/wesnoth-1.12.6.tar.bz2"
|
||||
sha256 "a50f384cead15f68f31cfa1a311e76a12098428702cb674d3521eb169eb92e4e"
|
||||
revision 10
|
||||
head "https://github.com/wesnoth/wesnoth.git"
|
||||
|
||||
bottle do
|
||||
sha256 "2edf0d0aefea381bb679a1530ad07029ba01c0fbf28ac61ca84e229b07263c64" => :mojave
|
||||
sha256 "13978002d0394113986b5afd21a521dbbe20dde151c43cff0765b3513e9238ec" => :high_sierra
|
||||
sha256 "48457b031fc7b69e86ac34f912031957cf53f76f1b6767f3a22f0b4f1071c3f5" => :sierra
|
||||
end
|
||||
|
||||
depends_on "gettext" => :build
|
||||
depends_on "scons" => :build
|
||||
depends_on "boost"
|
||||
depends_on "cairo"
|
||||
depends_on "fontconfig"
|
||||
depends_on "fribidi"
|
||||
depends_on "libpng"
|
||||
depends_on "pango"
|
||||
depends_on "sdl"
|
||||
depends_on "sdl_image" # Must have png support
|
||||
depends_on "sdl_mixer" # The music is in .ogg format
|
||||
depends_on "sdl_net"
|
||||
depends_on "sdl_ttf"
|
||||
|
||||
def install
|
||||
mv "scons/gettext.py", "scons/gettext_tool.py"
|
||||
inreplace "SConstruct", ", \"gettext\",", ", \"gettext_tool\","
|
||||
|
||||
args = %W[prefix=#{prefix} docdir=#{doc} mandir=#{man} fifodir=#{var}/run/wesnothd gettextdir=#{Formula["gettext"].opt_prefix}]
|
||||
args << "OS_ENV=true"
|
||||
args << "install"
|
||||
args << "wesnoth"
|
||||
args << "wesnothd"
|
||||
args << "-j#{ENV.make_jobs}"
|
||||
|
||||
system "scons", *args
|
||||
end
|
||||
|
||||
test do
|
||||
system bin/"wesnoth", "-p", pkgshare/"data/campaigns/tutorial/", testpath
|
||||
end
|
||||
end
|
|
@ -26,5 +26,6 @@
|
|||
"quassel": "homebrew/cask",
|
||||
"schismtracker": "homebrew/cask/schism-tracker",
|
||||
"transmission-remote-gtk": "homebrew/cask/transmission-remote-gui",
|
||||
"tuntap": "homebrew/cask"
|
||||
"tuntap": "homebrew/cask",
|
||||
"wesnoth": "homebrew/cask/the-battle-for-wesnoth"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue