From ff3933f193a6a1cb5d8a7a05ab762bdac8f33b44 Mon Sep 17 00:00:00 2001 From: Dan Fortunato Date: Wed, 14 Feb 2024 16:49:58 -0500 Subject: [PATCH] Add mwrap formula --- Formula/mwrap.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/mwrap.rb diff --git a/Formula/mwrap.rb b/Formula/mwrap.rb new file mode 100644 index 0000000..3fa5b54 --- /dev/null +++ b/Formula/mwrap.rb @@ -0,0 +1,22 @@ +class Mwrap < Formula + desc "MATLAB MEX gateway generator" + homepage "https://github.com/zgimbutas/mwrap" + url "https://github.com/zgimbutas/mwrap/archive/refs/tags/v1.1.1.tar.gz" + sha256 "7c007a2c833d956d4805f12922920c8c8f9a47dc3f483ba0ffffca5aa130daed" + license "MIT" + head "https://github.com/zgimbutas/mwrap.git", branch: "master" + + uses_from_macos "bison" => :build + uses_from_macos "flex" => :build + + def install + system "make", "bin" + bin.install "mwrap" + man1.install "doc/mwrap.1" + share.install "mwrap.pdf" + end + + test do + system "#{bin}/mwrap" + end +end