aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2023-08-12 22:39:46 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-08-19 09:15:34 +0700
commitb23ddb604461448d0b5ed9b67e7ccefa0ff0d4d5 (patch)
treea7bfa3e5abb28ac2e237d8335d15537a8fc243e1 /misc
parent9f18a88cd130004b4cff6aadb534fdbb386e4a41 (diff)
misc/goldencheetah: Updated for version 3.6
Signed-off-by: Kyle Guinn <elyk03@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r--misc/goldencheetah/goldencheetah.SlackBuild38
-rw-r--r--misc/goldencheetah/goldencheetah.info6
-rw-r--r--misc/goldencheetah/patches/0001-Fix-Qwt-incompatibilities-with-Qt-5.15.0.patch114
-rw-r--r--misc/goldencheetah/patches/0001-SEGV-on-Overview-Chart.patch22
-rw-r--r--misc/goldencheetah/patches/0002-View-on-Strava.patch50
-rw-r--r--misc/goldencheetah/patches/0003-Compatible-with-Strava.patchbin4931 -> 0 bytes
-rw-r--r--misc/goldencheetah/patches/0004-Connect-with-Strava.patchbin8081 -> 0 bytes
-rw-r--r--misc/goldencheetah/patches/0005-3.5-BUILD-INCREMENT.patch29
8 files changed, 14 insertions, 245 deletions
diff --git a/misc/goldencheetah/goldencheetah.SlackBuild b/misc/goldencheetah/goldencheetah.SlackBuild
index 3d3c8545a8abc..c92061c31c0a7 100644
--- a/misc/goldencheetah/goldencheetah.SlackBuild
+++ b/misc/goldencheetah/goldencheetah.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for GoldenCheetah
-# Copyright 2018-2021 Kyle Guinn <elyk03@gmail.com>
+# Copyright 2018-2023 Kyle Guinn <elyk03@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=goldencheetah
SRCNAM=GoldenCheetah
-VERSION=${VERSION:-3.5}
-BUILD=${BUILD:-4}
+VERSION=${VERSION:-3.6}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -78,36 +75,21 @@ cd $SRCNAM-$VERSION
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
-# Fixes from release_3.5.0 branch. 0003 and 0004 contain images treated as
-# text since `patch` doesn't decode git binary patches. Comment them out if
-# they won't apply.
-patch -p1 < $CWD/patches/0001-SEGV-on-Overview-Chart.patch
-patch -p1 < $CWD/patches/0002-View-on-Strava.patch
-patch -p1 < $CWD/patches/0003-Compatible-with-Strava.patch
-patch -p1 < $CWD/patches/0004-Connect-with-Strava.patch
-patch -p1 < $CWD/patches/0005-3.5-BUILD-INCREMENT.patch
-
# GoldenCheetah statically links its own version of qwt, which is likely a fork
# from around version 6.1.0 or 6.1.1. The build system uses -L/-l flags to
# refer to the static lib, but due to other -L flags and symlinked directories,
# it might find the system qwt instead. Replace the flags with a filename.
sed -i 's|-L\(\$\${PWD}/\.\./qwt/lib\) -l\(qwtd\?\)|\1/lib\2.a|' src/src.pro
-# Fixes for qwt and Qt5 compatibility.
-patch -p1 < $CWD/patches/0001-Fix-Qwt-incompatibilities-with-Qt-5.15.0.patch
-
# Use the system levmar if available.
# Builtin copy is version 2.6 without lapack support.
# TODO: Replace other builtins (qzip?, qxt, lmfit).
if [ -f /usr/include/levmar/levmar.h ]; then
- sed -i 's|\.\./levmar[^ ]* *||g' src/src.pro
+ sed -i 's|\.\./contrib/levmar[^ ]* *||g' src/src.pro
echo "INCLUDEPATH += /usr/include/levmar" >> src/src.pro
echo "LIBS += -llevmar" >> src/src.pro
fi
-# We don't have a '-qt4' suffix on lrelease.
-sed -i 's|\(lrelease\)-qt4|\1|' src/src.pro
-
# Copy the default config files, then modify them below.
cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri
cp src/gcconfig.pri.in src/gcconfig.pri
@@ -125,7 +107,11 @@ sed -i 's|^#\(QMAKE_YACC = bison\)\>|\1|' src/gcconfig.pri
#echo "QMAKE_YACC_SOURCE = y.tab.cpp" >> src/gcconfig.pri
# But that breaks parallel builds (multiple build steps produce temporary files
# with the same y.tab.{h,cpp} names). Make the files available by both names.
-sed -i 's|^#\( QMAKE_MOVE =\).*|\1 ln -sf|' src/gcconfig.pri
+sed -i 's|^#\(QMAKE_MOVE =\) cp|\1 ln -sf|' src/gcconfig.pri
+
+# Required GSL support.
+echo "GSL_INCLUDES = $(pkg-config --cflags gsl)" >> src/gcconfig.pri
+echo "GSL_LIBS = $(pkg-config --libs gsl)" >> src/gcconfig.pri
# Enable optional dependencies found in stock Slackware.
sed -i 's|^#\(ICAL_INSTALL =\).*|\1 /usr|' src/gcconfig.pri
@@ -136,16 +122,14 @@ sed -i 's|^#\(CONFIG += link_pkgconfig\)\>|\1|' src/gcconfig.pri
sed -i 's|^#\(PKGCONFIG =\).*|\1|' src/gcconfig.pri
sed -i 's|^#\(LIBZ_INCLUDE =\).*|\1|' src/gcconfig.pri
sed -i 's|^#\(LIBZ_LIBS = -lz\)\>|\1|' src/gcconfig.pri
-sed -i 's|^#\(HTPATH = \.\./httpserver\)\>|\1|' src/gcconfig.pri
sed -i 's|^\(DEFINES += GC_VIDEO_NONE\)\>|#\1|' src/gcconfig.pri
sed -i 's|^#\(DEFINES += GC_VIDEO_QT5\)\>|\1|' src/gcconfig.pri
-sed -i 's|^#\(DEFINES += NOWEBKIT\)\>|\1|' src/gcconfig.pri
-# Python support. Regenerate the SIP files.
+# Optional Python support. Regenerate the SIP files.
echo "DEFINES += GC_WANT_PYTHON" >> src/gcconfig.pri
echo "PYTHONINCLUDES = $(pkg-config --cflags python3-embed)" >> src/gcconfig.pri
echo "PYTHONLIBS = $(pkg-config --libs python3-embed)" >> src/gcconfig.pri
-make -C src/Python/SIP -f Makefile.hack clean
+rm -f src/Python/SIP/sip*
make -C src/Python/SIP -f Makefile.hack
# Optional KML support.
diff --git a/misc/goldencheetah/goldencheetah.info b/misc/goldencheetah/goldencheetah.info
index 14062d371bec0..cf1039e7d4dd0 100644
--- a/misc/goldencheetah/goldencheetah.info
+++ b/misc/goldencheetah/goldencheetah.info
@@ -1,8 +1,8 @@
PRGNAM="goldencheetah"
-VERSION="3.5"
+VERSION="3.6"
HOMEPAGE="https://www.goldencheetah.org/"
-DOWNLOAD="https://github.com/GoldenCheetah/GoldenCheetah/archive/V3.5/GoldenCheetah-3.5.tar.gz"
-MD5SUM="ed25ef3dfb447b1c4d9cc7387da5d7e7"
+DOWNLOAD="https://github.com/GoldenCheetah/GoldenCheetah/archive/v3.6/GoldenCheetah-3.6.tar.gz"
+MD5SUM="f802f36e855bbac79cf44826e94576c2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="levmar"
diff --git a/misc/goldencheetah/patches/0001-Fix-Qwt-incompatibilities-with-Qt-5.15.0.patch b/misc/goldencheetah/patches/0001-Fix-Qwt-incompatibilities-with-Qt-5.15.0.patch
deleted file mode 100644
index d6cbec6e414f7..0000000000000
--- a/misc/goldencheetah/patches/0001-Fix-Qwt-incompatibilities-with-Qt-5.15.0.patch
+++ /dev/null
@@ -1,114 +0,0 @@
-From e1f9005cf5ebafbed6be4b0cae4bee59112ea780 Mon Sep 17 00:00:00 2001
-From: Ale Martinez <amtriathlon@gmail.com>
-Date: Thu, 11 Jun 2020 11:36:54 -0300
-Subject: Fix Qwt incompatibilities with Qt 5.15.0
-
-
-diff --git a/qwt/src/qwt_compass_rose.cpp b/qwt/src/qwt_compass_rose.cpp
-index 21a35f244..d67175940 100644
---- a/qwt/src/qwt_compass_rose.cpp
-+++ b/qwt/src/qwt_compass_rose.cpp
-@@ -11,6 +11,7 @@
- #include "qwt_point_polar.h"
- #include "qwt_painter.h"
- #include <qpainter.h>
-+#include <qpainterpath.h>
-
- static QPointF qwtIntersection(
- QPointF p11, QPointF p12, QPointF p21, QPointF p22 )
-diff --git a/qwt/src/qwt_dial_needle.cpp b/qwt/src/qwt_dial_needle.cpp
-index 1b53a3d5b..694f7f2bb 100644
---- a/qwt/src/qwt_dial_needle.cpp
-+++ b/qwt/src/qwt_dial_needle.cpp
-@@ -13,6 +13,7 @@
- #include "qwt_painter.h"
- #include <qapplication.h>
- #include <qpainter.h>
-+#include <qpainterpath.h>
-
- #if QT_VERSION < 0x040601
- #define qFastSin(x) qSin(x)
-diff --git a/qwt/src/qwt_null_paintdevice.cpp b/qwt/src/qwt_null_paintdevice.cpp
-index db1611da2..b9b5dafb6 100644
---- a/qwt/src/qwt_null_paintdevice.cpp
-+++ b/qwt/src/qwt_null_paintdevice.cpp
-@@ -9,6 +9,7 @@
-
- #include "qwt_null_paintdevice.h"
- #include <qpaintengine.h>
-+#include <qpainterpath.h>
- #include <qpixmap.h>
-
- class QwtNullPaintDevice::PrivateData
-diff --git a/qwt/src/qwt_painter.cpp b/qwt/src/qwt_painter.cpp
-index 0bbf258c5..07b217033 100644
---- a/qwt/src/qwt_painter.cpp
-+++ b/qwt/src/qwt_painter.cpp
-@@ -19,6 +19,7 @@
- #include <qpainter.h>
- #include <qpalette.h>
- #include <qpaintdevice.h>
-+#include <qpainterpath.h>
- #include <qpixmap.h>
- #include <qstyle.h>
- #include <qtextdocument.h>
-diff --git a/qwt/src/qwt_painter_command.h b/qwt/src/qwt_painter_command.h
-index 2da597a7f..4fafd555c 100644
---- a/qwt/src/qwt_painter_command.h
-+++ b/qwt/src/qwt_painter_command.h
-@@ -15,6 +15,7 @@
- #include <qpixmap.h>
- #include <qimage.h>
- #include <qpolygon.h>
-+#include <qpainterpath.h>
-
- class QPainterPath;
-
-diff --git a/qwt/src/qwt_plot_glcanvas.h b/qwt/src/qwt_plot_glcanvas.h
-index 2ff1cf2e3..89462bba9 100644
---- a/qwt/src/qwt_plot_glcanvas.h
-+++ b/qwt/src/qwt_plot_glcanvas.h
-@@ -13,6 +13,7 @@
- #include "qwt_global.h"
- #include <qframe.h>
- #include <qgl.h>
-+#include <qpainterpath.h>
-
- class QwtPlot;
-
-diff --git a/qwt/src/qwt_plot_panner.cpp b/qwt/src/qwt_plot_panner.cpp
-index 8ed3dbee9..44de4cbef 100644
---- a/qwt/src/qwt_plot_panner.cpp
-+++ b/qwt/src/qwt_plot_panner.cpp
-@@ -15,6 +15,7 @@
- #include <qbitmap.h>
- #include <qstyle.h>
- #include <qstyleoption.h>
-+#include <qpainterpath.h>
-
- static QBitmap qwtBorderMask( const QWidget *canvas, const QSize &size )
- {
-diff --git a/qwt/src/qwt_plot_renderer.cpp b/qwt/src/qwt_plot_renderer.cpp
-index 3cdcd8c0e..09a5c0a10 100644
---- a/qwt/src/qwt_plot_renderer.cpp
-+++ b/qwt/src/qwt_plot_renderer.cpp
-@@ -19,6 +19,7 @@
- #include "qwt_math.h"
- #include <qpainter.h>
- #include <qpaintengine.h>
-+#include <qpainterpath.h>
- #include <qtransform.h>
- #include <qprinter.h>
- #include <qprintdialog.h>
-diff --git a/qwt/src/qwt_widget_overlay.cpp b/qwt/src/qwt_widget_overlay.cpp
-index 07c6272e1..9a458277b 100644
---- a/qwt/src/qwt_widget_overlay.cpp
-+++ b/qwt/src/qwt_widget_overlay.cpp
-@@ -11,6 +11,7 @@
- #include "qwt_painter.h"
- #include <qpainter.h>
- #include <qpaintengine.h>
-+#include <qpainterpath.h>
- #include <qimage.h>
- #include <qevent.h>
-
diff --git a/misc/goldencheetah/patches/0001-SEGV-on-Overview-Chart.patch b/misc/goldencheetah/patches/0001-SEGV-on-Overview-Chart.patch
deleted file mode 100644
index da451e86c434d..0000000000000
--- a/misc/goldencheetah/patches/0001-SEGV-on-Overview-Chart.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 372dd5c14415885c8808c4ad4729cb39ae717db0 Mon Sep 17 00:00:00 2001
-From: Mark Liversedge <liversedge@gmail.com>
-Date: Mon, 13 Jan 2020 20:21:00 +0000
-Subject: SEGV on Overview Chart
-
-.. when no rides available on new user.
-
-Fixes #3295
-
-diff --git a/src/Charts/OverviewWindow.cpp b/src/Charts/OverviewWindow.cpp
-index bfbd31432..7aa0792df 100644
---- a/src/Charts/OverviewWindow.cpp
-+++ b/src/Charts/OverviewWindow.cpp
-@@ -558,6 +558,8 @@ static const QStringList timeInZonesWBAL = QStringList()
- void
- Card::setData(RideItem *item)
- {
-+ if (item == NULL || item->ride() == NULL) return;
-+
- // use ride colors in painting?
- ridecolor = item->color;
-
diff --git a/misc/goldencheetah/patches/0002-View-on-Strava.patch b/misc/goldencheetah/patches/0002-View-on-Strava.patch
deleted file mode 100644
index 454b44865d804..0000000000000
--- a/misc/goldencheetah/patches/0002-View-on-Strava.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From cc91520e76079555bee24360d42610b7cbc246b3 Mon Sep 17 00:00:00 2001
-From: Mark Liversedge <liversedge@gmail.com>
-Date: Fri, 17 Jan 2020 12:30:29 +0000
-Subject: View on Strava
-
-.. when data is downloaded from strava we now set the metadata
- tag "StravaID" to the id of the activity on Strava.
-
-.. On RideSummary a link is added at the bottom to view the activity
- on Strava if the "StravaID" is set.
-
-.. if the user clicks on the link the summary is replaced with the
- strava page for the ride:
- e.g. https://www.strava.com/activities/962515512
-
-.. this is part of a couple of updates to comply with the Strava
- guidelines for consumption of the Strava v3 API, see:
- https://developers.strava.com/guidelines/
-
-diff --git a/src/Charts/RideSummaryWindow.cpp b/src/Charts/RideSummaryWindow.cpp
-index 1906ef1f3..37de8244d 100644
---- a/src/Charts/RideSummaryWindow.cpp
-+++ b/src/Charts/RideSummaryWindow.cpp
-@@ -1517,6 +1517,12 @@ RideSummaryWindow::htmlSummary()
- summary += " <li>" + i.next();
- summary += "</ul>";
- }
-+
-+ // add link to view on Strava if was downloaded from there (StravaID will be set)
-+ if (ridesummary && rideItem && rideItem->ride() && rideItem->ride()->getTag("StravaID","") != "") {
-+ summary += "<a href=\"https://www.strava.com/activities/" + rideItem->ride()->getTag("StravaID","") + "\">View on Strava</a>";
-+ }
-+
- summary += "<br></center>";
-
- return summary;
-diff --git a/src/Cloud/Strava.cpp b/src/Cloud/Strava.cpp
-index 0b339ac98..fe03e9eba 100644
---- a/src/Cloud/Strava.cpp
-+++ b/src/Cloud/Strava.cpp
-@@ -859,6 +859,9 @@ Strava::prepareResponse(QByteArray* data)
- // 1s samples with start time
- RideFile *ride = new RideFile(starttime.toUTC(), 1.0f);
-
-+ // set strava id in metadata (to show where we got it from - to add View on Strava link in Summary view
-+ if (!each["id"].isNull()) ride->setTag("StravaID", QString("%1").arg(each["id"].toVariant().toULongLong()));
-+
- // what sport?
- if (!each["type"].isNull()) {
- QString stype = each["type"].toString();
diff --git a/misc/goldencheetah/patches/0003-Compatible-with-Strava.patch b/misc/goldencheetah/patches/0003-Compatible-with-Strava.patch
deleted file mode 100644
index 6b7eadad712f1..0000000000000
--- a/misc/goldencheetah/patches/0003-Compatible-with-Strava.patch
+++ /dev/null
Binary files differ
diff --git a/misc/goldencheetah/patches/0004-Connect-with-Strava.patch b/misc/goldencheetah/patches/0004-Connect-with-Strava.patch
deleted file mode 100644
index a52aa748dcec0..0000000000000
--- a/misc/goldencheetah/patches/0004-Connect-with-Strava.patch
+++ /dev/null
Binary files differ
diff --git a/misc/goldencheetah/patches/0005-3.5-BUILD-INCREMENT.patch b/misc/goldencheetah/patches/0005-3.5-BUILD-INCREMENT.patch
deleted file mode 100644
index eb8565ad13044..0000000000000
--- a/misc/goldencheetah/patches/0005-3.5-BUILD-INCREMENT.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 525fcb0a660f99a21250919fd1d8de78fe8cb90d Mon Sep 17 00:00:00 2001
-From: Mark Liversedge <liversedge@gmail.com>
-Date: Fri, 17 Jan 2020 20:15:28 +0000
-Subject: 3.5 BUILD INCREMENT
-
-.. re-issue of 3.5 binaries with Strava API guideline compliance, as
- part of the 'rate limit' requirements.
-
-diff --git a/src/Core/GcUpgrade.h b/src/Core/GcUpgrade.h
-index b6db40b07..8266c7cb4 100644
---- a/src/Core/GcUpgrade.h
-+++ b/src/Core/GcUpgrade.h
-@@ -98,6 +98,7 @@
- // 3981 - V3.5 RC2
- // 3982 - V3.5 RC2X
- // 3990 - V3.5 RELEASE (January 2020)
-+// 3991 - V3.5 RELEASE RE-ISSUE STRAVA RATE LIMIT (January 2020)
-
-
- #define VERSION3_BUILD 3010 // released
-@@ -114,7 +115,7 @@
- #define VERSION31_BUILD VERSION31_UPG
-
- // the next two will with each build/release
--#define VERSION_LATEST 3990
-+#define VERSION_LATEST 3991
- #define VERSION_STRING "V3.5"
-
- // default config for this release cycle