diff options
author | Sam Jorna (wraeth) <wraeth@gentoo.org> | 2016-03-15 07:29:37 +1100 |
---|---|---|
committer | Sam Jorna <wraeth@wraeth.id.au> | 2016-03-15 10:20:58 +1100 |
commit | c11ac51e227efd10368dbd4b0aa450aa20d46dc9 (patch) | |
tree | 8b05ba0333479a38123907f1c47b0490b9512d29 /sci-geosciences/merkaartor/files | |
parent | gnome-base/gnome-shell: Fix crash after enabling vpn (diff) | |
download | gentoo-c11ac51e227efd10368dbd4b0aa450aa20d46dc9.tar.gz gentoo-c11ac51e227efd10368dbd4b0aa450aa20d46dc9.tar.bz2 gentoo-c11ac51e227efd10368dbd4b0aa450aa20d46dc9.zip |
sci-geosciences/merkaartor: bump to 0.18.2
Bump to version 0.18.2, add conditional support for qt5, add
REQUIRED_USE, fix build system expecting to build from git, fix
installation paths, fix broken includes. Original ebuild based on
0.18.1-r1 by Malte E. per bug.
Gentoo-bug: 555362
Package-Manager: portage-2.2.28
Diffstat (limited to 'sci-geosciences/merkaartor/files')
3 files changed, 106 insertions, 0 deletions
diff --git a/sci-geosciences/merkaartor/files/merkaartor-0.18.2-fix-qtgui-include.patch b/sci-geosciences/merkaartor/files/merkaartor-0.18.2-fix-qtgui-include.patch new file mode 100644 index 000000000000..4bbd129db327 --- /dev/null +++ b/sci-geosciences/merkaartor/files/merkaartor-0.18.2-fix-qtgui-include.patch @@ -0,0 +1,40 @@ +diff --git a/src/Docks/GeoImageDock.cpp b/src/Docks/GeoImageDock.cpp +index c05d09f..6afbfa8 100644 +--- a/src/Docks/GeoImageDock.cpp ++++ b/src/Docks/GeoImageDock.cpp +@@ -12,13 +12,13 @@ + #include <zbar/QZBarImage.h> + #endif + +-#include <QtWidgets/QInputDialog> +-#include <QtWidgets/QMessageBox> +-#include <QtWidgets/QProgressDialog> ++#include <QtGui/QInputDialog> ++#include <QtGui/QMessageBox> ++#include <QtGui/QProgressDialog> + #include <QtGui/QClipboard> +-#include <QtWidgets/QRadioButton> +-#include <QtWidgets/QTimeEdit> +-#include <QtWidgets/QDialogButtonBox> ++#include <QtGui/QRadioButton> ++#include <QtGui/QTimeEdit> ++#include <QtGui/QDialogButtonBox> + #include <QFileDialog> + + #include <QNetworkAccessManager> +diff --git a/src/Docks/GeoImageDock.h b/src/Docks/GeoImageDock.h +index ab7bbf6..a2606b0 100644 +--- a/src/Docks/GeoImageDock.h ++++ b/src/Docks/GeoImageDock.h +@@ -4,9 +4,9 @@ + #include "Document.h" + + #include <QtGui/QPainter> +-#include <QtWidgets/QDockWidget> ++#include <QtGui/QDockWidget> + #include <QtGui/QMouseEvent> +-#include <QtWidgets/QShortcut> ++#include <QtGui/QShortcut> + #include <exiv2/image.hpp> + #include <exiv2/exif.hpp> + diff --git a/sci-geosciences/merkaartor/files/merkaartor-0.18.2-geoimagedock.patch b/sci-geosciences/merkaartor/files/merkaartor-0.18.2-geoimagedock.patch new file mode 100644 index 000000000000..8ca40f873b14 --- /dev/null +++ b/sci-geosciences/merkaartor/files/merkaartor-0.18.2-geoimagedock.patch @@ -0,0 +1,34 @@ +diff --git a/src/Docks/GeoImageDock.cpp b/src/Docks/GeoImageDock.cpp +index c05d09f..5cd3a98 100644 +--- a/src/Docks/GeoImageDock.cpp ++++ b/src/Docks/GeoImageDock.cpp +@@ -458,7 +458,7 @@ void GeoImageDock::loadImages(QStringList fileNames) + + Exiv2::Image::AutoPtr image; + Exiv2::ExifData exifData; +- bool positionValid = FALSE; ++ bool positionValid = false; + + Layer *theLayer; + if (photoLayer == NULL) { +@@ -894,7 +894,7 @@ Coord GeoImageDock::getGeoDataFromImage(const QString & file) + double lat = 0.0, lon = 0.0; + Exiv2::Image::AutoPtr image; + Exiv2::ExifData exifData; +- bool positionValid = FALSE; ++ bool positionValid = false; + + if (!QFile::exists(file)) { + return pos; +diff --git a/src/Docks/GeoImageDock.h b/src/Docks/GeoImageDock.h +index ab7bbf6..3153219 100644 +--- a/src/Docks/GeoImageDock.h ++++ b/src/Docks/GeoImageDock.h +@@ -9,6 +9,7 @@ + #include <QtWidgets/QShortcut> + #include <exiv2/image.hpp> + #include <exiv2/exif.hpp> ++#include <QDrag> + + class ImageView; + diff --git a/sci-geosciences/merkaartor/files/merkaartor-0.18.2-gpsdata-handling-gpsd-3.12.patch b/sci-geosciences/merkaartor/files/merkaartor-0.18.2-gpsdata-handling-gpsd-3.12.patch new file mode 100644 index 000000000000..ee1052c0a0c6 --- /dev/null +++ b/sci-geosciences/merkaartor/files/merkaartor-0.18.2-gpsdata-handling-gpsd-3.12.patch @@ -0,0 +1,32 @@ +From 3f2209970cca8d9b2b977be3eab7587f72f65fbb Mon Sep 17 00:00:00 2001 +From: Bas Couwenberg <sebastic@xs4all.nl> +Date: Sun, 1 Nov 2015 16:26:15 +0100 +Subject: [PATCH] Fix gpsdata handling for gpsd >= 3.12 (libgps22 | + GPSD_API_MAJOR_VERSION 6) #76 + +--- + src/GPS/qgpsdevice.cpp | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/src/GPS/qgpsdevice.cpp b/src/GPS/qgpsdevice.cpp +index 04889f6..b0c146a 100644 +--- a/src/GPS/qgpsdevice.cpp ++++ b/src/GPS/qgpsdevice.cpp +@@ -1056,10 +1056,17 @@ void QGPSDDevice::onDataAvailable() + satArray[i][0] = satArray[i][1] = satArray[i][2] = 0; + for (int i=0; i<num_sat; ++i) + { ++#if GPSD_API_MAJOR_VERSION > 5 ++ int id = gpsdata->skyview[i].PRN; ++ satArray[id][0] = gpsdata->skyview[i].elevation; ++ satArray[id][1] = gpsdata->skyview[i].azimuth; ++ satArray[id][2] = gpsdata->skyview[i].ss; ++#else + int id = gpsdata->PRN[i]; + satArray[id][0] = gpsdata->elevation[i]; + satArray[id][1] = gpsdata->azimuth[i]; + satArray[id][2] = gpsdata->ss[i]; ++#endif + } + setNumSatellites(num_sat); + |