Skip to content

Commit 73cc7a1

Browse files
SeekingMeaningSMillerDev
authored andcommitted
dosbox-staging 0.75.0 (new formula)
Closes Homebrew#57450. Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
1 parent 0148475 commit 73cc7a1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Formula/dosbox-staging.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
class DosboxStaging < Formula
2+
desc "Modernized DOSBox soft-fork"
3+
homepage "https://dosbox-staging.github.io/"
4+
url "https://github.com/dosbox-staging/dosbox-staging/archive/v0.75.0.tar.gz"
5+
sha256 "6279690a05b9cc134484b8c7d11e9c1cb53b50bdb9bf32bdf683bd66770b6658"
6+
license "GPL-2.0"
7+
head "https://github.com/dosbox-staging/dosbox-staging.git"
8+
9+
depends_on "autoconf" => :build
10+
depends_on "automake" => :build
11+
depends_on "pkg-config" => :build
12+
depends_on "libpng"
13+
depends_on "opusfile"
14+
depends_on "sdl2"
15+
depends_on "sdl2_net"
16+
17+
def install
18+
args = %W[
19+
--prefix=#{prefix}
20+
--disable-dependency-tracking
21+
--disable-sdltest
22+
--enable-core-inline
23+
]
24+
25+
system "./autogen.sh"
26+
system "./configure", *args
27+
system "make", "install"
28+
mv bin/"dosbox", bin/"dosbox-staging"
29+
end
30+
31+
test do
32+
assert_match version.to_s, shell_output("#{bin}/dosbox-staging -version")
33+
mkdir testpath/"Library/Preferences/DOSBox"
34+
touch testpath/"Library/Preferences/DOSBox/dosbox-staging.conf"
35+
output = shell_output("#{bin}/dosbox-staging -printconf")
36+
assert_equal "#{testpath}/Library/Preferences/DOSBox/dosbox-staging.conf", output.chomp
37+
end
38+
end

0 commit comments

Comments
 (0)