Skip to content

Commit

Permalink
admesh 0.98.0 (new formula)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-clemente authored and MikeMcQuaid committed Sep 21, 2014
1 parent 2220991 commit f709842
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Formula/admesh.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
require "formula"

class Admesh < Formula
homepage "https://github.com/admesh/admesh"
url "https://github.com/admesh/admesh/releases/download/v0.98.0/admesh-0.98.0.tar.gz"
sha1 "aeb5857161c077a85ec0744c1d5c4fa0c99a03a9"

def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end

test do
# Test file is the beginning of block.stl from admesh's source
(testpath/"test.stl").write <<-EOF
SOLID Untitled1
FACET NORMAL 0.00000000E+00 0.00000000E+00 1.00000000E+00
OUTER LOOP
VERTEX -1.96850394E+00 1.96850394E+00 1.96850394E+00
VERTEX -1.96850394E+00 -1.96850394E+00 1.96850394E+00
VERTEX 1.96850394E+00 -1.96850394E+00 1.96850394E+00
ENDLOOP
ENDFACET
ENDSOLID Untitled1
EOF
system "admesh test.stl"
end
end

0 comments on commit f709842

Please sign in to comment.