homebrew-core/Formula/vecx.rb

33 lines
1.1 KiB
Ruby

class Vecx < Formula
desc "Vectrex emulator"
homepage "https://github.com/jhawthorn/vecx"
url "https://github.com/jhawthorn/vecx/archive/v1.1.tar.gz"
sha256 "206ab30db547b9c711438455917b5f1ee96ff87bd025ed8a4bd660f109c8b3fb"
head "https://github.com/jhawthorn/vecx.git"
bottle do
cellar :any
sha256 "2a2b5d63a8be0bcf51a9b4eee05b0751fd3757b5576e515931a55ad6f729a465" => :high_sierra
sha256 "9417cc9e5938dc117b4ab7ab41518a2b28e366cae15cdf1192af15e6237a35e6" => :sierra
sha256 "48d404ad79ecd0ac870ca0b3390a6465e7ed2755d58eaf130ec93a4e874e5f34" => :el_capitan
sha256 "65e4cd91159f3772ec9e688d93bb1c1dd823e9c397b5163a62b1499909a2b74b" => :yosemite
end
depends_on "sdl"
depends_on "sdl_gfx"
depends_on "sdl_image"
def install
# Fix missing symobls for inline functions
# https://github.com/jhawthorn/vecx/pull/3
inreplace ["e6809.c", "vecx.c"], /__inline/, 'static \1'
system "make"
bin.install "vecx"
end
test do
assert_match "rom.dat: No such file or directory", shell_output("#{bin}/vecx 2>&1", 1)
end
end