31 lines
1 KiB
Ruby
31 lines
1 KiB
Ruby
class Ledit < Formula
|
|
desc "Line editor for interactive commands"
|
|
homepage "http://pauillac.inria.fr/~ddr/ledit/"
|
|
url "http://pauillac.inria.fr/~ddr/ledit/distrib/src/ledit-2.04.tgz"
|
|
sha256 "484897016b001b6d64eb24e38a213177b230ebf8e0d9808a969b62f012e70ee4"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "55df7d80dfcfb5c04274f9a33a5fc03a4a1b9b2b1fb4f3b08c0cef83759c74a3" => :high_sierra
|
|
sha256 "b7e2b19079d843f9704572bf21de6251e7a6619d809ce230e22be5440517ab57" => :sierra
|
|
sha256 "952162580a2542b7038b2702b8a2ed9223e519ca703b221daf054566723ecd59" => :el_capitan
|
|
end
|
|
|
|
depends_on "ocaml"
|
|
depends_on "camlp5"
|
|
|
|
def install
|
|
# like camlp5, this build fails if the jobs are parallelized
|
|
ENV.deparallelize
|
|
args = %W[BINDIR=#{bin} LIBDIR=#{lib} MANDIR=#{man}]
|
|
system "make", *args
|
|
system "make", "install", *args
|
|
end
|
|
|
|
test do
|
|
history = testpath/"history"
|
|
pipe_output("#{bin}/ledit -x -h #{history} bash", "exit\n", 0)
|
|
assert_predicate history, :exist?
|
|
assert_equal "exit\n", history.read
|
|
end
|
|
end
|