37 lines
1.3 KiB
Ruby
37 lines
1.3 KiB
Ruby
class Angband < Formula
|
|
desc "Dungeon exploration game"
|
|
homepage "https://rephial.org/"
|
|
url "https://rephial.org/downloads/4.2/angband-4.2.1.tar.gz"
|
|
sha256 "acd735c9d46bf86ee14337c71c56f743ad13ec2a95d62e7115604621e7560d0f"
|
|
license "GPL-2.0"
|
|
head "https://github.com/angband/angband.git"
|
|
|
|
bottle do
|
|
sha256 "b59aedacab5c3588719bfc1ebc17b936ffe5105ed8e7edd19caccc340a81271f" => :catalina
|
|
sha256 "96f6f2e31023c69aba44c4ccc40acf652d5a76bbd1b9cd6a7ebead33a0a2161e" => :mojave
|
|
sha256 "95463908fbefe4988a9ab3dcc031cd1c7d6767ed6557d1baca813446e5ca6b9c" => :high_sierra
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
|
|
def install
|
|
ENV["NCURSES_CONFIG"] = "#{MacOS.sdk_path}/usr/bin/ncurses5.4-config"
|
|
system "./autogen.sh"
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--bindir=#{bin}",
|
|
"--libdir=#{libexec}",
|
|
"--enable-curses",
|
|
"--disable-ncursestest",
|
|
"--disable-sdltest",
|
|
"--disable-x11",
|
|
"--with-ncurses-prefix=#{MacOS.sdk_path}/usr"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"angband", "--help"
|
|
end
|
|
end
|