From c6aacd589655c83a04b6b7e06d54b1ae0ec535ee Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Sun, 19 Sep 2021 11:09:58 -0400 Subject: [PATCH] yaze-ag 2.51.1.1 Closes #85541. Signed-off-by: rui Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/yaze-ag.rb | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Formula/yaze-ag.rb b/Formula/yaze-ag.rb index 2574da094d0..d7a9e0e44ff 100644 --- a/Formula/yaze-ag.rb +++ b/Formula/yaze-ag.rb @@ -1,10 +1,14 @@ class YazeAg < Formula desc "Yet Another Z80 Emulator (by AG)" homepage "http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/" - url "http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/devel/yaze-ag-2.40.5_with_keytrans.tar.gz" - version "2.40.5" - sha256 "d46c861eb0725b87dd5567062f277860b98d538fca477d8686f17b36ef39d9bd" - license "GPL-2.0" + url "http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/devel/yaze-ag-2.51.1.1.tar.gz" + sha256 "9144d3f2522bc369fab3b215868ef504a86452a3636f1a3c435349ea1f57125f" + license "GPL-2.0-or-later" + + livecheck do + url :homepage + regex(/href=.*?yaze-ag[._-]v?(\d+(?:\.\d+)+)\.t/i) + end bottle do sha256 arm64_big_sur: "ee904628f8d8bdcafb50f18e4909d0d5a3cffe73f864ae66214fa91c8fabaa92" @@ -17,9 +21,13 @@ class YazeAg < Formula end def install - inreplace "Makefile_solaris_gcc", "md5sum -b", "md5" + if OS.mac? + inreplace "Makefile_solaris_gcc-x86_64", "md5sum -b", "md5" + inreplace "Makefile_solaris_gcc-x86_64", /(LIBS\s+=\s+-lrt)/, '#\1' + end + bin.mkpath - system "make", "-f", "Makefile_solaris_gcc", + system "make", "-f", "Makefile_solaris_gcc-x86_64", "BINDIR=#{bin}", "MANDIR=#{man1}", "LIBDIR=#{lib}/yaze",