2014-05-11 19:21:09 +00:00
|
|
|
class Grap < Formula
|
|
|
|
homepage "http://www.lunabase.org/~faber/Vault/software/grap/"
|
2015-04-24 02:34:19 +00:00
|
|
|
url "http://www.lunabase.org/~faber/Vault/software/grap/grap-1.45.tar.gz"
|
|
|
|
sha256 "906743cdccd029eee88a4a81718f9d0777149a3dc548672b3ef0ceaaf36a4ae0"
|
2014-05-11 19:21:09 +00:00
|
|
|
|
|
|
|
def install
|
2015-04-24 02:34:19 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2014-05-11 19:21:09 +00:00
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-example-dir=#{share}/grap/examples"
|
2015-04-24 02:34:19 +00:00
|
|
|
system "make"
|
|
|
|
ENV.deparallelize
|
2014-05-11 19:21:09 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
2015-04-24 02:34:19 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.d").write <<-EOS.undent
|
|
|
|
.G1
|
|
|
|
54.2
|
|
|
|
49.4
|
|
|
|
49.2
|
|
|
|
50.0
|
|
|
|
48.2
|
|
|
|
43.87
|
|
|
|
.G2
|
|
|
|
EOS
|
|
|
|
system bin/"grap", testpath/"test.d"
|
|
|
|
end
|
2014-05-11 19:21:09 +00:00
|
|
|
end
|