mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
Update to upstream version 1.5.4; use QT5 instead of QT4
PR: 227538 Submitted by: cmt Approved by: Maintainer timeout
This commit is contained in:
parent
bab6b1da60
commit
61a2252afb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=469231
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= gpsbabel
|
||||
DISTVERSIONPREFIX= ${PORTNAME}_
|
||||
DISTVERSION= 1_5_3
|
||||
DISTVERSION= 1_5_4
|
||||
CATEGORIES= astro geography
|
||||
|
||||
MAINTAINER= dev2@heesakkers.info
|
||||
@ -19,7 +19,7 @@ USE_GITHUB= yes
|
||||
|
||||
CONFLICTS= gpsbabel14-[0-9]*
|
||||
|
||||
USE_QT4= corelib qmake_build
|
||||
USE_QT5= core qmake_build
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-zlib=system
|
||||
USES= localbase
|
||||
@ -28,8 +28,8 @@ OPTIONS_DEFINE= GUI
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
GUI_ALL_TARGET= gui
|
||||
GUI_USE= QT4=gui,xml,network,webkit
|
||||
GUI_USE+= QT4=linguisttools_build,moc_build,rcc_build,uic_build
|
||||
GUI_USE= QT5=gui,xml,network,webkit
|
||||
GUI_USE+= QT5=linguisttools_build,moc_build,rcc_build,uic_build
|
||||
GUI_VARS= MAKE_JOBS_UNSAFE=yes
|
||||
|
||||
post-patch:
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (gpsbabel-gpsbabel-gpsbabel_1_5_3_GH0.tar.gz) = 10b7aaca44ce557fa1175fec37297b8df55611ab2c51cb199753a22dbf2d3997
|
||||
SIZE (gpsbabel-gpsbabel-gpsbabel_1_5_3_GH0.tar.gz) = 8516277
|
||||
TIMESTAMP = 1523450580
|
||||
SHA256 (gpsbabel-gpsbabel-gpsbabel_1_5_4_GH0.tar.gz) = 8cd740db0b92610abff71e942e8a987df58cd6ca5f25cca86e15f2b00e190704
|
||||
SIZE (gpsbabel-gpsbabel-gpsbabel_1_5_4_GH0.tar.gz) = 9121510
|
||||
|
@ -1,26 +0,0 @@
|
||||
--- exif.cc.orig 2016-01-03 02:09:17 UTC
|
||||
+++ exif.cc
|
||||
@@ -1100,7 +1100,7 @@ exif_find_wpt_by_time(const Waypoint* wp
|
||||
|
||||
if (exif_wpt_ref == NULL) {
|
||||
exif_wpt_ref = wpt;
|
||||
- } else if (abs(exif_time_ref - wpt->creation_time.toTime_t()) < abs(exif_time_ref - exif_wpt_ref->creation_time.toTime_t())) {
|
||||
+ } else if (qAbs(exif_time_ref - wpt->creation_time.toTime_t()) < qAbs(exif_time_ref - exif_wpt_ref->creation_time.toTime_t())) {
|
||||
exif_wpt_ref = wpt;
|
||||
}
|
||||
}
|
||||
@@ -1447,12 +1447,12 @@ exif_write(void)
|
||||
|
||||
if (exif_wpt_ref == NULL) {
|
||||
warning(MYNAME ": No point with a valid timestamp found.\n");
|
||||
- } else if (abs(exif_time_ref - exif_wpt_ref->creation_time.toTime_t()) > frame) {
|
||||
+ } else if (qAbs(exif_time_ref - exif_wpt_ref->creation_time.toTime_t()) > frame) {
|
||||
warning(MYNAME ": No matching point found for image date %s!\n", qPrintable(str));
|
||||
if (exif_wpt_ref != NULL) {
|
||||
QString str = exif_time_str(exif_wpt_ref->creation_time.toTime_t());
|
||||
warning(MYNAME ": Best is from %s, %d second(s) away.\n",
|
||||
- qPrintable(str), abs(exif_time_ref - exif_wpt_ref->creation_time.toTime_t()));
|
||||
+ qPrintable(str), (int) qAbs(exif_time_ref - exif_wpt_ref->creation_time.toTime_t()));
|
||||
}
|
||||
exif_wpt_ref = NULL;
|
||||
}
|
11
astro/gpsbabel/files/patch-garmin__device__xml.cc
Normal file
11
astro/gpsbabel/files/patch-garmin__device__xml.cc
Normal file
@ -0,0 +1,11 @@
|
||||
--- garmin_device_xml.cc.orig 2018-04-11 18:10:39 UTC
|
||||
+++ garmin_device_xml.cc
|
||||
@@ -41,7 +41,7 @@ jmp_buf gdx_jmp_buf;
|
||||
|
||||
void type_s(xg_string args, const QXmlStreamAttributes*)
|
||||
{
|
||||
- type = args.compare("GPSData");
|
||||
+ type = args.compare(QLatin1String("GPSData"));
|
||||
}
|
||||
|
||||
void device_s(xg_string args, const QXmlStreamAttributes*)
|
50
astro/gpsbabel/files/patch-gpx.cc
Normal file
50
astro/gpsbabel/files/patch-gpx.cc
Normal file
@ -0,0 +1,50 @@
|
||||
--- gpx.cc.orig 2018-04-11 18:10:39 UTC
|
||||
+++ gpx.cc
|
||||
@@ -494,7 +494,7 @@
|
||||
{
|
||||
cache_descr_is_html = 0;
|
||||
if (attr.hasAttribute("html")) {
|
||||
- if (attr.value("html").toString().compare("True") == 0) {
|
||||
+ if (attr.value("html").compare(QLatin1String("True")) == 0) {
|
||||
cache_descr_is_html = 1;
|
||||
}
|
||||
}
|
||||
@@ -509,16 +509,16 @@
|
||||
gc_data->id = attr.value("id").toString().toInt();
|
||||
}
|
||||
if (attr.hasAttribute("available")) {
|
||||
- if (attr.value("available").toString().compare("True", Qt::CaseInsensitive) == 0) {
|
||||
+ if (attr.value("available").compare(QLatin1String("True"), Qt::CaseInsensitive) == 0) {
|
||||
gc_data->is_available = status_true;
|
||||
- } else if (attr.value("available").toString().compare("False", Qt::CaseInsensitive) == 0) {
|
||||
+ } else if (attr.value("available").compare(QLatin1String("False"), Qt::CaseInsensitive) == 0) {
|
||||
gc_data->is_available = status_false;
|
||||
}
|
||||
}
|
||||
if (attr.hasAttribute("archived")) {
|
||||
- if (attr.value("archived").toString().compare("True", Qt::CaseInsensitive) == 0) {
|
||||
+ if (attr.value("archived").compare(QLatin1String("True"), Qt::CaseInsensitive) == 0) {
|
||||
gc_data->is_archived = status_true;
|
||||
- } else if (attr.value("archived").toString().compare("False", Qt::CaseInsensitive) == 0) {
|
||||
+ } else if (attr.value("archived").compare(QLatin1String("False"), Qt::CaseInsensitive) == 0) {
|
||||
gc_data->is_archived = status_false;
|
||||
}
|
||||
}
|
||||
@@ -972,7 +972,7 @@
|
||||
* last date we saw in this log.
|
||||
*/
|
||||
case tt_cache_log_type:
|
||||
- if ((cdatastr.compare("Found it") == 0) &&
|
||||
+ if ((cdatastr.compare(QLatin1String("Found it")) == 0) &&
|
||||
(0 == wpt_tmp->gc_data->last_found.toTime_t())) {
|
||||
wpt_tmp->AllocGCData()->last_found = gc_log_date;
|
||||
}
|
||||
@@ -1423,7 +1423,7 @@
|
||||
fprint_xml_chain(tag->child, wpt);
|
||||
}
|
||||
if (wpt && wpt->gc_data->exported.isValid() &&
|
||||
- tag->tagname.compare("groundspeak:cache") == 0) {
|
||||
+ tag->tagname.compare(QLatin1String("groundspeak:cache")) == 0) {
|
||||
writer->writeTextElement("time",
|
||||
wpt->gc_data->exported.toPrettyString());
|
||||
}
|
11
astro/gpsbabel/files/patch-lowranceusr.cc
Normal file
11
astro/gpsbabel/files/patch-lowranceusr.cc
Normal file
@ -0,0 +1,11 @@
|
||||
--- lowranceusr.cc.orig 2018-04-11 18:16:00 UTC
|
||||
+++ lowranceusr.cc
|
||||
@@ -767,7 +767,7 @@ lowranceusr_waypt_disp(const Waypoint* w
|
||||
|
||||
gbfputint32(Time, file_out);
|
||||
|
||||
- if (get_cache_icon(wpt) && wpt->icon_descr.compare("Geocache Found") == 0) {
|
||||
+ if (get_cache_icon(wpt) && wpt->icon_descr.compare(QLatin1String("Geocache Found")) == 0) {
|
||||
SymbolId = lowranceusr_find_icon_number_from_desc(get_cache_icon(wpt));
|
||||
} else {
|
||||
SymbolId = lowranceusr_find_icon_number_from_desc(wpt->icon_descr);
|
17
astro/gpsbabel/files/patch-magproto.cc
Normal file
17
astro/gpsbabel/files/patch-magproto.cc
Normal file
@ -0,0 +1,17 @@
|
||||
--- magproto.cc.orig 2018-04-11 18:16:46 UTC
|
||||
+++ magproto.cc
|
||||
@@ -819,11 +819,11 @@ mag_rd_init_common(const QString& portna
|
||||
*/
|
||||
QString exten = QFileInfo(curfname).suffix();
|
||||
if (exten.length() > 0) {
|
||||
- if (0 == exten.compare("upt", Qt::CaseInsensitive)) {
|
||||
+ if (0 == exten.compare(QLatin1String("upt"), Qt::CaseInsensitive)) {
|
||||
extension_hint = WPTDATAMASK;
|
||||
- } else if (0 == exten.compare("log", Qt::CaseInsensitive)) {
|
||||
+ } else if (0 == exten.compare(QLatin1String("log"), Qt::CaseInsensitive)) {
|
||||
extension_hint = TRKDATAMASK;
|
||||
- } else if (0 == exten.compare("rte", Qt::CaseInsensitive)) {
|
||||
+ } else if (0 == exten.compare(QLatin1String("rte"), Qt::CaseInsensitive)) {
|
||||
extension_hint = RTEDATAMASK;
|
||||
}
|
||||
}
|
11
astro/gpsbabel/files/patch-psitrex.cc
Normal file
11
astro/gpsbabel/files/patch-psitrex.cc
Normal file
@ -0,0 +1,11 @@
|
||||
--- psitrex.cc.orig 2018-04-11 18:17:53 UTC
|
||||
+++ psitrex.cc
|
||||
@@ -363,7 +363,7 @@ psit_waypoint_w(gbfile* psit_file, const
|
||||
|
||||
icon = gt_find_icon_number_from_desc(wpt->icon_descr, PCX);
|
||||
|
||||
- if (get_cache_icon(wpt) && wpt->icon_descr.compare("Geocache Found") != 0) {
|
||||
+ if (get_cache_icon(wpt) && wpt->icon_descr.compare(QLatin1String("Geocache Found")) != 0) {
|
||||
icon = gt_find_icon_number_from_desc(get_cache_icon(wpt), PCX);
|
||||
}
|
||||
|
57
astro/gpsbabel/files/patch-tef_xml.cc
Normal file
57
astro/gpsbabel/files/patch-tef_xml.cc
Normal file
@ -0,0 +1,57 @@
|
||||
--- tef_xml.cc.orig 2018-04-11 18:10:39 UTC
|
||||
+++ tef_xml.cc
|
||||
@@ -72,11 +72,11 @@
|
||||
bool valid = false;
|
||||
|
||||
foreach(QXmlStreamAttribute attr, *attrv) {
|
||||
- if (attr.name().compare("Comment", Qt::CaseInsensitive) == 0) {
|
||||
- if (attr.value().compare("TourExchangeFormat", Qt::CaseInsensitive) == 0) {
|
||||
+ if (attr.name().compare(QLatin1String("Comment"), Qt::CaseInsensitive) == 0) {
|
||||
+ if (attr.value().compare(QLatin1String("TourExchangeFormat"), Qt::CaseInsensitive) == 0) {
|
||||
valid = true;
|
||||
}
|
||||
- } else if (attr.name().compare("Version", Qt::CaseInsensitive) == 0) {
|
||||
+ } else if (attr.name().compare(QLatin1String("Version"), Qt::CaseInsensitive) == 0) {
|
||||
version = attr.value().toString().toDouble();
|
||||
}
|
||||
}
|
||||
@@ -95,9 +95,9 @@
|
||||
{
|
||||
route = route_head_alloc();
|
||||
foreach(QXmlStreamAttribute attr, *attrv) {
|
||||
- if (attr.name().compare("Name", Qt::CaseInsensitive) == 0) {
|
||||
+ if (attr.name().compare(QLatin1String("Name"), Qt::CaseInsensitive) == 0) {
|
||||
route->rte_name = attr.value().toString().trimmed();
|
||||
- } else if (attr.name().compare("Software", Qt::CaseInsensitive) == 0) {
|
||||
+ } else if (attr.name().compare(QLatin1String("Software"), Qt::CaseInsensitive) == 0) {
|
||||
route->rte_desc = attr.value().toString().trimmed();
|
||||
}
|
||||
}
|
||||
@@ -248,20 +248,20 @@
|
||||
QString attrstr = attr.value().toString();
|
||||
QByteArray attrtext = attrstr.toUtf8();
|
||||
|
||||
- if (attr.name().compare("SegDescription", Qt::CaseInsensitive) == 0) {
|
||||
+ if (attr.name().compare(QLatin1String("SegDescription"), Qt::CaseInsensitive) == 0) {
|
||||
wpt_tmp->shortname = attrstr.trimmed();
|
||||
- } else if (attr.name().compare("PointDescription", Qt::CaseInsensitive) == 0) {
|
||||
+ } else if (attr.name().compare(QLatin1String("PointDescription"), Qt::CaseInsensitive) == 0) {
|
||||
wpt_tmp->description = attrstr.trimmed();
|
||||
- } else if (attr.name().compare("ViaStation", Qt::CaseInsensitive) == 0 &&
|
||||
- attr.value().compare("true", Qt::CaseInsensitive) == 0) {
|
||||
+ } else if (attr.name().compare(QLatin1String("ViaStation"), Qt::CaseInsensitive) == 0 &&
|
||||
+ attr.value().compare(QLatin1String("true"), Qt::CaseInsensitive) == 0) {
|
||||
wpt_tmp->wpt_flags.fmt_use = 1; /* only a flag */
|
||||
|
||||
/* new in TEF V2 */
|
||||
- } else if (attr.name().compare("Instruction", Qt::CaseInsensitive) == 0) {
|
||||
+ } else if (attr.name().compare(QLatin1String("Instruction"), Qt::CaseInsensitive) == 0) {
|
||||
wpt_tmp->description = attrstr.trimmed();
|
||||
- } else if (attr.name().compare("Altitude", Qt::CaseInsensitive) == 0) {
|
||||
+ } else if (attr.name().compare(QLatin1String("Altitude"), Qt::CaseInsensitive) == 0) {
|
||||
wpt_tmp->altitude = attrstr.toDouble();
|
||||
- } else if (attr.name().compare("TimeStamp", Qt::CaseInsensitive) == 0) {
|
||||
+ } else if (attr.name().compare(QLatin1String("TimeStamp"), Qt::CaseInsensitive) == 0) {
|
||||
/* nothing for the moment */
|
||||
}
|
||||
}
|
20
astro/gpsbabel/files/patch-unicsv.cc
Normal file
20
astro/gpsbabel/files/patch-unicsv.cc
Normal file
@ -0,0 +1,20 @@
|
||||
--- unicsv.cc.orig 2018-04-11 18:21:19 UTC
|
||||
+++ unicsv.cc
|
||||
@@ -430,13 +430,13 @@ unicsv_parse_time(const QString& str, in
|
||||
static status_type
|
||||
unicsv_parse_status(const QString& str)
|
||||
{
|
||||
- if (str.compare("true", Qt::CaseInsensitive) == 0 ||
|
||||
- str.compare("yes", Qt::CaseInsensitive) == 0 ||
|
||||
+ if (str.compare(QLatin1String("true"), Qt::CaseInsensitive) == 0 ||
|
||||
+ str.compare(QLatin1String("yes"), Qt::CaseInsensitive) == 0 ||
|
||||
str == "1") {
|
||||
return status_true;
|
||||
}
|
||||
- if (str.compare("false", Qt::CaseInsensitive) == 0 ||
|
||||
- str.compare("no", Qt::CaseInsensitive) == 0 ||
|
||||
+ if (str.compare(QLatin1String("false"), Qt::CaseInsensitive) == 0 ||
|
||||
+ str.compare(QLatin1String("no"), Qt::CaseInsensitive) == 0 ||
|
||||
str == "0") {
|
||||
return status_false;
|
||||
}
|
Loading…
Reference in New Issue
Block a user