homebrew-core/Formula/ffe.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

45 lines
1.3 KiB
Ruby

class Ffe < Formula
desc "Parse flat file structures and print them in different formats"
homepage "http://ff-extractor.sourceforge.net/"
url "https://downloads.sourceforge.net/project/ff-extractor/ff-extractor/0.3.4/ffe-0.3.4.tar.gz"
sha256 "628b74c2b3b50fcd6dee9264d409d19a1b32f27112c4ddc3e187535c2aa7b13e"
bottle do
cellar :any
sha1 "7410c7c429880b06631ad40ae2de9c327a753a2b" => :yosemite
sha1 "ae4d3ab7b308b788b26051ae5df452a473cbc573" => :mavericks
sha1 "d58fb6890e7732247a1a99fb12a4dd131c7cabd3" => :mountain_lion
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"source").write "EArthur Guinness 25"
(testpath/"test.rc").write <<-EOS.undent
structure personel_fix {
type fixed
record employee {
id 1 E
field EmpType 1
field FirstName 7
field LastName 11
field Age 2
}
}
output default {
record_header "<tr>"
data "<td>%t</td>"
record_trailer "</tr>"
no-data-print no
}
EOS
system "#{bin}/ffe", "-c", "test.rc", "source"
end
end