gpsbabel: qt5 support

Closes #5960.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Eitot 2016-10-16 05:49:43 +02:00 committed by Mike McQuaid
parent 4866f4d570
commit 6159122c55

View file

@ -1,5 +1,5 @@
class Gpsbabel < Formula 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/" homepage "https://www.gpsbabel.org/"
url "https://github.com/gpsbabel/gpsbabel/archive/gpsbabel_1_5_3.tar.gz" url "https://github.com/gpsbabel/gpsbabel/archive/gpsbabel_1_5_3.tar.gz"
sha256 "10b7aaca44ce557fa1175fec37297b8df55611ab2c51cb199753a22dbf2d3997" sha256 "10b7aaca44ce557fa1175fec37297b8df55611ab2c51cb199753a22dbf2d3997"
@ -13,7 +13,7 @@ class Gpsbabel < Formula
end end
depends_on "libusb" => :optional depends_on "libusb" => :optional
depends_on "qt" depends_on "qt5"
def install def install
args = ["--disable-debug", "--disable-dependency-tracking", args = ["--disable-debug", "--disable-dependency-tracking",
@ -22,4 +22,18 @@ class Gpsbabel < Formula
system "./configure", *args system "./configure", *args
system "make", "install" system "make", "install"
end end
test do
(testpath/"test.loc").write <<-EOS.undent
<?xml version="1.0"?>
<loc version="1.0">
<waypoint>
<name id="1 Infinite Loop"><![CDATA[Apple headquarters]]></name>
<coord lat="37.331695" lon="-122.030091"/>
</waypoint>
</loc>
EOS
system bin/"gpsbabel", "-i", "geo", "-f", "test.loc", "-o", "gpx", "-F", "test.gpx"
assert File.exist? "test.gpx"
end
end end