aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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