aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/curaengine.rb26
1 files changed, 19 insertions, 7 deletions
diff --git a/Library/Formula/curaengine.rb b/Library/Formula/curaengine.rb
index dec4fd178..2f6a9e529 100644
--- a/Library/Formula/curaengine.rb
+++ b/Library/Formula/curaengine.rb
@@ -2,17 +2,29 @@ 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"
- url "https://github.com/Ultimaker/CuraEngine/archive/14.03.tar.gz"
- sha1 "d782c90d6e66580cc7e4b43a013da399e4623259"
def install
ENV.deparallelize
system "make"
- if build.head?
- bin.install "build/CuraEngine"
- else
- bin.install "CuraEngine"
- end
+ 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