gpsbabel: qt5 support
Closes #5960. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
4866f4d570
commit
6159122c55
1 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
<?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
|
||||
|
|
Loading…
Reference in a new issue