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/"
|
2015-08-07 21:01:30 +00:00
|
|
|
url "https://github.com/xach/buildapp/archive/release-1.5.5.tar.gz"
|
|
|
|
sha256 "dbe5dd4e0d35eb36f1f6870fa820c841db9cbbef4090d4b4e5bb10f4ea37882c"
|
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
|
2015-08-08 05:10:18 +00:00
|
|
|
sha256 "71e3f67dd4b480bc565933f8afa20b0e8164a02527beb4df97a639fb4673022c" => :yosemite
|
|
|
|
sha256 "d489a1979f0c262d2e104e4a69afacb2bdd18fecd261ad182d95867225ca3d10" => :mavericks
|
|
|
|
sha256 "e457be5e4a396afa7b748913cd52dac9935b911c8b68e6ede8745b56509a76be" => :mountain_lion
|
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
|