aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/curaengine.rb
blob: 1989fd15312caeb4343d51106be1d7166a13cf73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require "formula"

class Curaengine < Formula
  homepage "https://github.com/Ultimaker/CuraEngine"
  url "https://github.com/Ultimaker/CuraEngine/archive/14.12.1.tar.gz"
  sha1 "4d50fcd32e402f37b658691a4338e73fb4aaf3ec"
  head "https://github.com/Ultimaker/CuraEngine.git"

  bottle do
    cellar :any
    sha1 "5181149b63d2d62e515cb8fdebdf331dbbfc64c0" => :yosemite
    sha1 "2fa9eb0f56c238d7cf8279c64f0215a321f846e6" => :mavericks
    sha1 "cdc1b2ceaa41b6e71ed541e5f2d85936c4d08aa3" => :mountain_lion
  end

  def install
    ENV.deparallelize
    system "make"
    bin.install "build/CuraEngine"
  end

  test do
    (testpath/"t.stl").write <<-EOF.undent
      solid t
        facet normal 0 -1 0
         outer loop
          vertex 0.83404 0 0.694596
          vertex 0.36904 0 1.5
          vertex 1.78814e-006 0 0.75
         endloop
        endfacet
      endsolid Star
    EOF

    system "#{bin}/CuraEngine", "#{testpath}/t.stl"
  end
end