homebrew-core/Formula/brainfuck.rb
2013-04-30 12:28:29 -07:00

22 lines
534 B
Ruby

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'
fails_with :clang do
build 425
cause "cannot specify -o when generating multiple output files"
end
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