require 'formula' class Sl < Formula homepage 'http://packages.debian.org/source/stable/sl' url 'http://mirrors.kernel.org/debian/pool/main/s/sl/sl_3.03.orig.tar.gz' mirror 'http://ftp.us.debian.org/debian/pool/main/s/sl/sl_3.03.orig.tar.gz' md5 'd0d997b964bb3478f7f4968eee13c698' def install ENV.llvm if MacOS.clang_version.to_f <= 3.1 system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}" bin.install "sl" man1.install "sl.1" end end