-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, µ); | ||
return 0; | ||
} | ||
EOS | ||
system ENV.cc, "test.c", "-L#{lib}", "-I#{include}", "-lisofs", "-o", "test" | ||
system "./test" | ||
end | ||
end |