fpart 1.2.0 (new formula)

fpart (https://github.com/martymac/fpart/) is a tool that helps you sort
file trees and pack them into bags (called "partitions"). It includes
the fpart tool itself as well as fpsync, which can be used to rsync a
hierarchy using multiple parallel processes.

Closes #62573.

Signed-off-by: chenrui <chenrui333@gmail.com>
Signed-off-by: Dawid Dziurla <dawidd0811@gmail.com>
master
Benjamin Stiglitz 2020-10-08 11:01:14 -04:00 committed by Dawid Dziurla
parent 872b97cba9
commit ba819969cd
1 changed files with 28 additions and 0 deletions

28
Formula/fpart.rb Normal file
View File

@ -0,0 +1,28 @@
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"
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