diff --git a/Formula/gpsbabel.rb b/Formula/gpsbabel.rb index 877a6d59d5..7cd7b17041 100644 --- a/Formula/gpsbabel.rb +++ b/Formula/gpsbabel.rb @@ -1,5 +1,5 @@ class Gpsbabel < Formula - desc "GPSBabel converts/uploads GPS waypoints, tracks, and routes" + desc "Converts/uploads GPS waypoints, tracks, and routes" homepage "https://www.gpsbabel.org/" url "https://github.com/gpsbabel/gpsbabel/archive/gpsbabel_1_5_3.tar.gz" sha256 "10b7aaca44ce557fa1175fec37297b8df55611ab2c51cb199753a22dbf2d3997" @@ -13,7 +13,7 @@ class Gpsbabel < Formula end depends_on "libusb" => :optional - depends_on "qt" + depends_on "qt5" def install args = ["--disable-debug", "--disable-dependency-tracking", @@ -22,4 +22,18 @@ class Gpsbabel < Formula system "./configure", *args system "make", "install" end + + test do + (testpath/"test.loc").write <<-EOS.undent + + + + + + + + EOS + system bin/"gpsbabel", "-i", "geo", "-f", "test.loc", "-o", "gpx", "-F", "test.gpx" + assert File.exist? "test.gpx" + end end