Use non-interactive mode and assume yes for Flatpak dependencies.
[SquirrelJME.git] / Formula / squirreljme-standalone.rb
blob360827a886a4b96a0b47147bbb3c03f96952bfee
1 # ---------------------------------------------------------------------------
2 # Multi-Phasic Applications: SquirrelJME
3 #     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
4 #     Copyright (C) Multi-Phasic Applications <multiphasicapps.net>
5 # ---------------------------------------------------------------------------
6 # SquirrelJME is under the Mozilla Public License Version 2.0.
7 # For more information see license.txt.
8 # ---------------------------------------------------------------------------
10 # Cookbook: https://docs.brew.sh/Formula-Cookbook
11 # Formula Documentation: https://rubydoc.brew.sh/Formula
12 # Can be installed via: brew install --HEAD Formula/squirreljme-standalone.rb
13 class SquirreljmeStandalone < Formula
14   desc 'Standalone Test Virtual Machine Jar, written purely in Java'
15   homepage 'https://squirreljme.cc/'
16   url 'https://squirreljme.cc/tarball/squirreljme-src.tar.gz?name=squirreljme-src&uuid=trunk'
17   version '0.3.0'
18   license 'MPL-2.0'
19   head 'https://squirreljme.cc/', using: :fossil
21   depends_on 'openjdk@11'
23   def install
24     system './gradlew', ':emulators:standalone:shadowJar'
25     mkdir "#{bin}/"
26     system './Formula/brew-install.sh', "#{bin}/", 'emulators/standalone/build/libs/'
27   end
29   test do
30     system 'true'
31   end
32 end