homebrew-core/Formula/gpx.rb

27 lines
972 B
Ruby
Raw Normal View History

class Gpx < Formula
desc "Gcode to x3g converter for 3D printers running Sailfish"
homepage "https://github.com/markwal/GPX/blob/master/README.md"
url "https://github.com/markwal/GPX/archive/2.5.2.tar.gz"
sha256 "8b637a366a2863ca3a11b4c6a33d8ebc10806bf7de3e3ac90f2a3a57529ea864"
head "https://github.com/markwal/GPX.git"
2016-05-04 10:38:00 +00:00
bottle do
cellar :any_skip_relocation
2016-05-05 00:38:46 +00:00
sha256 "29621a041a78876e963bdd922c6ea5203f102dbbcd87038d3ade22eca6bafb29" => :el_capitan
sha256 "451eab6ecaf8a42858ae0d71cfa141bc14fd3d0608285bc1a677422fcc8a662e" => :yosemite
sha256 "d1fdd06431d4efa1043c364c34d1e2f1fd0d904aa58047829ec0beda4aa47340" => :mavericks
2016-05-04 10:38:00 +00:00
end
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"test.gcode").write("G28 X Y Z")
system "#{bin}/gpx", "test.gcode"
end
end