From 277cf12ee0ed75e7dcc6730c05b0b92ac3b7ebf4 Mon Sep 17 00:00:00 2001 From: Tony McDaniel Date: Mon, 4 Jun 2012 18:33:12 -0400 Subject: tetgen 1.4.3 Closes #12594. Signed-off-by: Adam Vandenberg --- Library/Formula/tetgen.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Library/Formula/tetgen.rb (limited to 'Library/Formula') diff --git a/Library/Formula/tetgen.rb b/Library/Formula/tetgen.rb new file mode 100644 index 000000000..fa7bc2a5b --- /dev/null +++ b/Library/Formula/tetgen.rb @@ -0,0 +1,18 @@ +require 'formula' + +class Tetgen < Formula + homepage 'http://tetgen.org/' + url 'http://tetgen.org/files/tetgen1.4.3.tar.gz' + sha1 '16c6de93837a34c8661dd3bfcc8171591a93564a' + + def install + system "make" # build the tetgen binary + system "make tetlib" # build the library file libtet.a + bin.install 'tetgen' + lib.install 'libtet.a' + end + + def test + system "#{bin}/tetgen" + end +end -- cgit v1.2.3