homebrew-core/Formula/gpx.rb
2017-09-19 18:01:09 +02:00

28 lines
1.1 KiB
Ruby

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"
bottle do
cellar :any_skip_relocation
sha256 "057c877225787dc6468db8beb07505870510d9b421e46a1fb7b9b76ad48b0ac4" => :high_sierra
sha256 "e51f98467745f27e906fa4d1152cb7fe7e73c2606872f2c9eba8d54fa250a32e" => :sierra
sha256 "29621a041a78876e963bdd922c6ea5203f102dbbcd87038d3ade22eca6bafb29" => :el_capitan
sha256 "451eab6ecaf8a42858ae0d71cfa141bc14fd3d0608285bc1a677422fcc8a662e" => :yosemite
sha256 "d1fdd06431d4efa1043c364c34d1e2f1fd0d904aa58047829ec0beda4aa47340" => :mavericks
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