2020-10-08 15:01:14 +00:00
|
|
|
class Fpart < Formula
|
|
|
|
desc "Sorts file trees and packs them into bags"
|
|
|
|
homepage "https://github.com/martymac/fpart/"
|
|
|
|
url "https://github.com/martymac/fpart/archive/fpart-1.2.0.tar.gz"
|
|
|
|
sha256 "ced59d68236d960473b5d9481f3d0c083f10a7be806c33125cc490ef2c1705f8"
|
|
|
|
license "BSD-2-Clause"
|
|
|
|
|
2020-10-14 13:42:51 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "86e086c356acb32a5c69d8f27426b73a766c7eb6afa685f06f9a23449aa14983" => :catalina
|
|
|
|
sha256 "3530748c1b13e7c12ab59cb31d97bf0a86d01dda91676225d76bf0b209066bab" => :mojave
|
|
|
|
sha256 "2dda0b4cbd994c5017392eb43c870a85e7e567a0d13cba179a2786762067e7c2" => :high_sierra
|
|
|
|
end
|
|
|
|
|
2020-10-08 15:01:14 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "autoreconf", "-i"
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"myfile1").write("")
|
|
|
|
(testpath/"myfile2").write("")
|
|
|
|
system bin/"fpart", "-n", "2", "-o", (testpath/"mypart"), (testpath/"myfile1"), (testpath/"myfile2")
|
|
|
|
(testpath/"mypart.0").exist?
|
|
|
|
(testpath/"mypart.1").exist?
|
|
|
|
!(testpath/"mypart.2").exist?
|
|
|
|
end
|
|
|
|
end
|