2012-11-10 19:42:56 +00:00
|
|
|
class Buildapp < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Creates executables with SBCL"
|
2015-04-17 20:26:41 +00:00
|
|
|
homepage "http://www.xach.com/lisp/buildapp/"
|
2016-05-05 05:15:37 +00:00
|
|
|
url "https://github.com/xach/buildapp/archive/release-1.5.6.tar.gz"
|
|
|
|
sha256 "d77fb6c151605da660b909af058206f7fe7d9faf972e2c30876d42cb03d6a3ed"
|
2015-04-17 20:26:41 +00:00
|
|
|
head "https://github.com/xach/buildapp.git"
|
2012-11-10 19:42:56 +00:00
|
|
|
|
2014-12-15 20:16:58 +00:00
|
|
|
bottle do
|
2016-05-05 05:31:45 +00:00
|
|
|
sha256 "672cce34c7c3d0ce4ed2a434fc4c3933a3ba06e07ddff80f0aad24e92ce5ed51" => :el_capitan
|
|
|
|
sha256 "353795727bd0ef56e9597de4a6e5d3352e4e07f8d8d61d0610a68810aac90bf1" => :yosemite
|
|
|
|
sha256 "6e7ad94bb743298d8fe8fa64c73d70a156e5aae829c48aef9e0ac300fac97488" => :mavericks
|
2014-12-15 20:16:58 +00:00
|
|
|
end
|
|
|
|
|
2015-04-17 20:26:41 +00:00
|
|
|
depends_on "sbcl"
|
2012-11-10 19:42:56 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
bin.mkpath
|
|
|
|
system "make", "install", "DESTDIR=#{prefix}"
|
|
|
|
end
|
2014-12-15 20:01:43 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
code = "(defun f (a) (declare (ignore a)) (write-line \"Hello, homebrew\"))"
|
|
|
|
system "#{bin}/buildapp", "--eval", code,
|
|
|
|
"--entry", "f",
|
|
|
|
"--output", "t"
|
|
|
|
assert_equal `./t`, "Hello, homebrew\n"
|
|
|
|
end
|
2012-11-10 19:42:56 +00:00
|
|
|
end
|