50 lines
2.0 KiB
Ruby
50 lines
2.0 KiB
Ruby
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
|
|
sha256 cellar: :any, arm64_ventura: "860314162c48e96a989ba3fb787d2049ca42cfbfbf0b5300efe1dc0fd78868a9"
|
|
sha256 cellar: :any, arm64_monterey: "a0ef9a6c528dc64cb52cf715e32bf3eea4163a87c622896380a545cbf3a15a9a"
|
|
sha256 cellar: :any, arm64_big_sur: "a5aa2cc2315f882bc5845478bc6e804058fe91552b7bf0dcad61f94b41e762bf"
|
|
sha256 cellar: :any, ventura: "25ea2064b42c23129e06205029b7d7d05f8db51f8c17ee901166ceb49c15d6e2"
|
|
sha256 cellar: :any, monterey: "24d410d388e6a034b5a2e065347287aa961fbe85ca3b7d5a1ffa9c1a50d2cbdf"
|
|
sha256 cellar: :any, big_sur: "129cda4e83bf47b6d03a9fd742c2dea43d38b21a716ffc289fead5b2d081ae05"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "aaa4498b356521663380cbd57be5e28574a18854a35f7da734a3d96469df5cf8"
|
|
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, µ);
|
|
return 0;
|
|
}
|
|
EOS
|
|
system ENV.cc, "test.c", "-L#{lib}", "-I#{include}", "-lisofs", "-o", "test"
|
|
system "./test"
|
|
end
|
|
end
|