2012-09-08 17:16:31 +00:00
|
|
|
class Intercal < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Esoteric, parody programming language"
|
2015-04-27 20:07:45 +00:00
|
|
|
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"
|
|
|
|
|
|
|
|
head do
|
|
|
|
url "git://thyrsus.com/repositories/intercal.git"
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
end
|
2012-09-08 17:16:31 +00:00
|
|
|
|
2014-08-21 09:33:35 +00:00
|
|
|
bottle do
|
2015-04-27 20:17:53 +00:00
|
|
|
sha256 "a3d94e36e6d2c3f5d8e8ba26ba5c9469801dd25ddd451f672904ffdc0a84d0ce" => :yosemite
|
|
|
|
sha256 "26117079d6c5f42fc59e9f0c590ef5e8c94ab32abb606fd21b48dd307c5a1ca9" => :mavericks
|
|
|
|
sha256 "11bef1430a773dcf00a205badaadbf60166bc31a241fdc826b9fd4002638c0ae" => :mountain_lion
|
2014-08-21 09:33:35 +00:00
|
|
|
end
|
|
|
|
|
2012-09-08 17:16:31 +00:00
|
|
|
def install
|
2015-04-27 20:07:45 +00:00
|
|
|
if build.head?
|
|
|
|
cd "buildaux" do
|
|
|
|
system "./regenerate-build-system.sh"
|
|
|
|
end
|
|
|
|
end
|
2012-09-08 17:16:31 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2015-04-27 20:07:45 +00:00
|
|
|
system "make", "install"
|
|
|
|
etc.install Dir["etc/*"]
|
|
|
|
share.install "pit"
|
2012-09-08 17:16:31 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2015-04-27 20:07:45 +00:00
|
|
|
system bin/"ick", share/"pit/beer.i"
|
2012-09-08 17:16:31 +00:00
|
|
|
end
|
|
|
|
end
|