From 6089ff3363aea17afa6f34591c856031e229d28c Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Sat, 24 Jun 2023 09:50:57 -0700 Subject: [PATCH 1/3] readpe: renamed from pev --- Formula/{pev.rb => readpe.rb} | 6 +++--- formula_renames.json | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) rename Formula/{pev.rb => readpe.rb} (92%) diff --git a/Formula/pev.rb b/Formula/readpe.rb similarity index 92% rename from Formula/pev.rb rename to Formula/readpe.rb index a9e14a0d7471..c41553adbcb4 100644 --- a/Formula/pev.rb +++ b/Formula/readpe.rb @@ -1,11 +1,11 @@ -class Pev < Formula +class Readpe < Formula desc "PE analysis toolkit" - homepage "https://pev.sourceforge.io/" + homepage "https://github.com/mentebinaria/readpe" url "https://downloads.sourceforge.net/project/pev/pev-0.81/pev-0.81.tar.gz" sha256 "4192691c57eec760e752d3d9eca2a1322bfe8003cfc210e5a6b52fca94d5172b" license "GPL-2.0-or-later" revision 1 - head "https://github.com/merces/pev.git", branch: "master" + head "https://github.com/mentebinaria/readpe.git", branch: "master" bottle do rebuild 1 diff --git a/formula_renames.json b/formula_renames.json index 09c698e7f90f..2e403585591d 100644 --- a/formula_renames.json +++ b/formula_renames.json @@ -130,6 +130,7 @@ "pangomm@2.42": "pangomm@2.46", "parallelstl": "onedpl", "perl518": "perl@5.18", + "pev": "readpe", "php72": "php@7.2", "polarssl": "mbedtls", "postgresql94": "postgresql@9.4", From 393b8902471df3e0adcf01aa651490f02b788feb Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Sat, 24 Jun 2023 10:08:50 -0700 Subject: [PATCH 2/3] readpe 0.82 --- Formula/readpe.rb | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/Formula/readpe.rb b/Formula/readpe.rb index c41553adbcb4..a26a268447cc 100644 --- a/Formula/readpe.rb +++ b/Formula/readpe.rb @@ -1,47 +1,28 @@ class Readpe < Formula desc "PE analysis toolkit" homepage "https://github.com/mentebinaria/readpe" - url "https://downloads.sourceforge.net/project/pev/pev-0.81/pev-0.81.tar.gz" - sha256 "4192691c57eec760e752d3d9eca2a1322bfe8003cfc210e5a6b52fca94d5172b" + url "https://github.com/mentebinaria/readpe/archive/refs/tags/v0.82.tar.gz" + sha256 "6ee625acedb3cbe636afe41f854b6eed5aac466d7fad52e3a48557083f8acecc" license "GPL-2.0-or-later" - revision 1 head "https://github.com/mentebinaria/readpe.git", branch: "master" - bottle do - rebuild 1 - sha256 arm64_ventura: "f88c38cd11c261d607ee24dffd8507996947261d798b05576d89e012fc63cc02" - sha256 arm64_monterey: "42e5c0a125b5fcf2053d617d1d3d7de7d654c16542641b27dbf9a204c6654f8e" - sha256 arm64_big_sur: "92683bbe4257e80a1e303ba7752b2483f26d9ca8dcd418500c8867b841010e2c" - sha256 ventura: "2922947509cd028ba0d8c3a780825f4d2892117f1f7e123be7117230320074df" - sha256 monterey: "d3b2c9704022bd9027c6b83c7584060afee39c303e22f4778a520268c9d7764d" - sha256 big_sur: "aebcd75f9fa0c70f6318759347f1f6fa9fd36daa57bfed0b0d5caebb4b0d73aa" - sha256 catalina: "509f575210d62910d65c1e7d3a0eee7c12647aa9bfee465c6c71983314b08cde" - sha256 x86_64_linux: "0bb7e6192930c868b08379aadd687ce5f28f46d576748cda2bc4e6247849a522" - end - - disable! date: "2023-06-19", because: :repo_archived - depends_on "openssl@3" - # Remove -flat_namespace. - patch do - url "https://github.com/merces/pev/commit/8169e6e9bbc4817ac1033578c2e383dc7f419106.patch?full_index=1" - sha256 "015035b34e5bed108b969ecccd690019eaa2f837c0880fa589584cb2f7ede7c0" - end - - # Make builds reproducible. - patch do - url "https://github.com/merces/pev/commit/cbcd9663ba9a5f903d26788cf6e86329fd513220.patch?full_index=1" - sha256 "8f047c8db01d3a5ef5905ce05d8624ff7353e0fab5b6b00aa877ea6a3baaadcc" + resource "homebrew-testfile" do + url "https://the.earth.li/~sgtatham/putty/0.78/w64/putty.exe" + sha256 "fc6f9dbdf4b9f8dd1f5f3a74cb6e55119d3fe2c9db52436e10ba07842e6c3d7c" end def install ENV.deparallelize + inreplace "lib/libpe/Makefile", "-flat_namespace", "" system "make", "prefix=#{prefix}", "CC=#{ENV.cc}" system "make", "prefix=#{prefix}", "install" end test do - system "#{bin}/pedis", "--version" + resource("homebrew-testfile").stage do + assert_match(/Bytes in last page:\s+120/, shell_output("#{bin}/readpe ./putty.exe")) + end end end From 72a75c5ce9391cfe402bca24d4e2195f220261bc Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Sat, 24 Jun 2023 19:26:47 +0000 Subject: [PATCH 3/3] readpe: add 0.82 bottle. --- Formula/readpe.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Formula/readpe.rb b/Formula/readpe.rb index a26a268447cc..5cdfc5d00fff 100644 --- a/Formula/readpe.rb +++ b/Formula/readpe.rb @@ -6,6 +6,16 @@ class Readpe < Formula license "GPL-2.0-or-later" head "https://github.com/mentebinaria/readpe.git", branch: "master" + bottle do + sha256 arm64_ventura: "85d348756150c1b21aacea9f81f749e2236116cb1dadfb57e98d3aece8157ec8" + sha256 arm64_monterey: "b28d3faa79d3685b5d6e08e12b35ebb916fc81e4549cff92ec70d37559e405f6" + sha256 arm64_big_sur: "71230992d921c7b7791b02b2bdb37db43385a4e61ab4e0ae9f1ef8d214527fa4" + sha256 ventura: "f4fece3b9252d4ab298d60e7162af4311b08082a5edf31bae639445e1e988f2f" + sha256 monterey: "f129d78170eaa0db46a1b318ead3dce0d7477cecb490da17f2cd186e350b944d" + sha256 big_sur: "e8c800ea2146ad608255235de5baf8d76a699131d1e4de3fb02a8930ee5d357e" + sha256 x86_64_linux: "10ec70b2f17afb4c78aa41dbef90f066ae1ddac31877a048a9b68d36bb00f4bb" + end + depends_on "openssl@3" resource "homebrew-testfile" do