aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony McDaniel2012-06-04 18:33:12 -0400
committerAdam Vandenberg2012-06-07 07:09:56 -0700
commit277cf12ee0ed75e7dcc6730c05b0b92ac3b7ebf4 (patch)
treef6f49fc68f9c4428b0e00b20dbd7abd7dc40717a
parent96dd880f4a3b70bb01cfb609e26e57dc7b80b70e (diff)
downloadhomebrew-277cf12ee0ed75e7dcc6730c05b0b92ac3b7ebf4.tar.bz2
tetgen 1.4.3
Closes #12594. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/tetgen.rb18
1 files changed, 18 insertions, 0 deletions
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