2013-04-28 15:31:46 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Brainfuck < Formula
|
|
|
|
homepage 'https://github.com/FabianM/brainfuck'
|
|
|
|
url 'https://github.com/FabianM/brainfuck/archive/0.1.2.tar.gz'
|
|
|
|
sha1 'c656c932ede90972f1b3c3cfeb15b3cc1df0caea'
|
|
|
|
|
2013-04-30 19:28:29 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 425
|
|
|
|
cause "cannot specify -o when generating multiple output files"
|
|
|
|
end
|
|
|
|
|
2013-04-28 15:31:46 +00:00
|
|
|
def install
|
|
|
|
system "make", "all", "CC=#{ENV.cc}", "CCFLAGS=#{ENV.cflags}"
|
|
|
|
bin.install 'bin/brainfuck'
|
|
|
|
man1.install 'man/brainfuck.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/brainfuck | cat"
|
|
|
|
end
|
|
|
|
end
|