File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments