2011-03-10 05:11:03 +00:00
|
|
|
class Aterm < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "AfterStep terminal emulator"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://strategoxt.org/Tools/ATermFormat"
|
|
|
|
url "http://www.meta-environment.org/releases/aterm-2.8.tar.gz"
|
|
|
|
sha256 "bab69c10507a16f61b96182a06cdac2f45ecc33ff7d1b9ce4e7670ceeac504ef"
|
2011-01-01 03:35:50 +00:00
|
|
|
|
2014-08-01 16:50:41 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2016-09-27 22:54:18 +00:00
|
|
|
rebuild 1
|
|
|
|
sha256 "dd7b81b3bd9a31746ab461b8d79e4c32838b7e86f540769e4c17825a4b89c1c2" => :sierra
|
2015-11-07 05:47:50 +00:00
|
|
|
sha256 "5140e20287eda941f8756dfdaf377663f84f6872d1ca3f6d70e04b554591d11a" => :el_capitan
|
|
|
|
sha256 "d12bebbfa2e764abb9cfac1aecd6fc04e58f83eadf0fb3db298d5be03d7f8dca" => :yosemite
|
|
|
|
sha256 "f565d64b5b19b549cfe6eacedd587ff6d2b0e0b3129e1018b364edc0c2d9c415" => :mavericks
|
2014-08-01 16:50:41 +00:00
|
|
|
end
|
|
|
|
|
2011-01-01 03:35:50 +00:00
|
|
|
def install
|
2012-11-15 00:43:13 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2016-12-19 17:24:51 +00:00
|
|
|
ENV.deparallelize # Parallel builds don't work
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2011-01-01 03:35:50 +00:00
|
|
|
end
|
2015-11-07 04:35:03 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.c").write <<-EOS.undent
|
|
|
|
#include <aterm1.h>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
ATerm bottomOfStack;
|
|
|
|
ATinit(argc, argv, &bottomOfStack);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
system ENV.cc, "test.c", "-L#{lib}", "-lATerm", "-o", "test"
|
|
|
|
system "./test"
|
|
|
|
end
|
2011-01-01 03:35:50 +00:00
|
|
|
end
|