class Intercal < Formula desc "Esoteric, parody programming language" homepage "http://catb.org/~esr/intercal/" url "http://catb.org/~esr/intercal/intercal-0.30.tar.gz" mirror "https://mirrors.kernel.org/debian/pool/main/i/intercal/intercal_0.30.orig.tar.gz" sha256 "b38b62a61a3cb5b0d3ce9f2d09c97bd74796979d532615073025a7fff6be1715" revision 1 bottle do sha256 "0af682680ed91e303158222255b56bac5c20f46882b90d0e54e500e93f461119" => :sierra sha256 "aedc619191db840cebc64a0c96c7165c4f48e1af44849e4422f1839a6e7cc311" => :el_capitan sha256 "889ab74f3c682bb55558d244781899c730eecb894cfad58083202d0674d46742" => :yosemite end head do url "git://thyrsus.com/repositories/intercal.git" depends_on "automake" => :build depends_on "autoconf" => :build end def install if build.head? cd "buildaux" do system "./regenerate-build-system.sh" end end system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make", "install" (etc/"intercal").install Dir["etc/*"] pkgshare.install "pit" end test do (testpath/"lib").mkpath (testpath/"test").mkpath cp pkgshare/"pit/beer.i", "test" cd "test" do system bin/"ick", "beer.i" system "./beer" end end end