blob: bcb04278b4df6cc5713cf6589e946d63c1d604ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require "formula"
class Picolisp < Formula
homepage "http://picolisp.com/wiki/?home"
url "http://software-lab.de/picoLisp-3.1.6.tgz"
sha256 "8568b5b13002ff7ba35248dc31508e1579e96428c0cef90a2d47b4a5f875cc2c"
def install
src_dir = MacOS.prefer_64_bit? ? "src64" : "src"
system "make", "-C", src_dir
bin.install "bin/picolisp"
end
test do
path = testpath/"hello.lisp"
path.write '(prinl "Hello world") (bye)'
out = `#{bin}/picolisp #{path}`
assert_equal "Hello world\n", out
assert_equal 0, $?.exitstatus
end
end
|