41 lines
1.5 KiB
Ruby
41 lines
1.5 KiB
Ruby
class Recutils < Formula
|
|
desc "Tools to work with human-editable, plain text data files"
|
|
homepage "https://www.gnu.org/software/recutils/"
|
|
url "https://ftp.gnu.org/gnu/recutils/recutils-1.8.tar.gz"
|
|
mirror "https://ftpmirror.gnu.org/gnu/recutils/recutils-1.8.tar.gz"
|
|
sha256 "df8eae69593fdba53e264cbf4b2307dfb82120c09b6fab23e2dad51a89a5b193"
|
|
license "GPL-3.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "0ce93377375f551690f93d4cd68d2042f72354596dcae615ee632e8794bd7744"
|
|
sha256 cellar: :any, big_sur: "20ea3e2b014d2300a75f02b3c2beaf4c888c37214df878c5dccbad9255f65de4"
|
|
sha256 cellar: :any, catalina: "a55cbe91cc2c264fe53e5e6425c1f3bb0c090f097f16098fdce766807a38ea6d"
|
|
sha256 cellar: :any, mojave: "1503a69c0ed988355b959c47b2c8a5e5a4f451d41027f5a06cdf5de19f7d171f"
|
|
sha256 cellar: :any, high_sierra: "c2ca0221b7e7091c11840a000f02b130325a188aeb03b100947562aa8d9ce3ef"
|
|
sha256 cellar: :any, sierra: "694cfda88a56f30c66d71080b8a1a4763a17789e0ea54b37c778ba84107f6430"
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--datarootdir=#{elisp}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.csv").write <<~EOS
|
|
a,b,c
|
|
1,2,3
|
|
EOS
|
|
system "#{bin}/csv2rec", "test.csv"
|
|
|
|
(testpath/"test.rec").write <<~EOS
|
|
%rec: Book
|
|
%mandatory: Title
|
|
|
|
Title: GNU Emacs Manual
|
|
EOS
|
|
system "#{bin}/recsel", "test.rec"
|
|
end
|
|
end
|