Skip to content

Commit

Permalink
libisofs: add 1.5.4 bottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
gromgit committed Jan 17, 2023
1 parent 7e410db commit 790925a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Formula/libisofs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
class Libisofs < Formula
desc "Library to create an ISO-9660 filesystem with various extensions"
homepage "https://dev.lovelyhq.com/libburnia/libisofs"
url "http://files.libburnia-project.org/releases/libisofs-1.5.4.tar.gz"
sha256 "aaa0ed80a7501979316f505b0b017f29cba0ea5463b751143bad2c360215a88e"
license "GPL-2.0-or-later"

bottle do
root_url "https://github.com/gromgit/homebrew-core-mojave/releases/download/libisofs"
sha256 cellar: :any, mojave: "14e93530acc549a8e7b3d2efa9dcf26ed7cd4700f5c6d8a5c718e18919b2727a"
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "libzip"

def install
# use gnu libtool instead of apple libtool
inreplace "bootstrap", "libtool", "glibtool"
# regenerate configure as release uses old version of libtool
# which causes flat_namespace
system "./bootstrap"

system "./configure", *std_configure_args
system "make"
system "make", "install"
end

test do
(testpath/"test.c").write <<~EOS
#include <stdint.h>
#include <libisofs/libisofs.h>
int main() {
int major, minor, micro;
iso_lib_version(&major, &minor, &micro);
return 0;
}
EOS
system ENV.cc, "test.c", "-L#{lib}", "-I#{include}", "-lisofs", "-o", "test"
system "./test"
end
end

0 comments on commit 790925a

Please sign in to comment.