git: 1a9d3bdee3d0 - main - cad/caneda: Prepare to Qwt 6.2.0

From: Loïc Bartoletti <lbartoletti_at_FreeBSD.org>
Date: Thu, 22 Feb 2024 08:14:05 UTC
The branch main has been updated by lbartoletti:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1a9d3bdee3d0896d043c363794a6f8a1ad6b1f4b

commit 1a9d3bdee3d0896d043c363794a6f8a1ad6b1f4b
Author:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
AuthorDate: 2022-03-24 04:57:11 +0000
Commit:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
CommitDate: 2024-02-22 08:13:59 +0000

    cad/caneda: Prepare to Qwt 6.2.0
---
 cad/caneda/Makefile                                 |  1 +
 cad/caneda/files/patch-src_chartview.cpp            | 10 ++++++++++
 cad/caneda/files/patch-src_fileformats.cpp          | 10 ++++++++++
 cad/caneda/files/patch-src_sidebarchartsbrowser.cpp | 10 ++++++++++
 4 files changed, 31 insertions(+)

diff --git a/cad/caneda/Makefile b/cad/caneda/Makefile
index 6f1303bbfb8b..75835ce7c5f8 100644
--- a/cad/caneda/Makefile
+++ b/cad/caneda/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	caneda
 DISTVERSION=	0.3.1
+PORTREVISION=	1
 CATEGORIES=	cad
 DIST_SUBDIR=	${PORTNAME}
 
diff --git a/cad/caneda/files/patch-src_chartview.cpp b/cad/caneda/files/patch-src_chartview.cpp
new file mode 100644
index 000000000000..5f8fd72f5e8d
--- /dev/null
+++ b/cad/caneda/files/patch-src_chartview.cpp
@@ -0,0 +1,10 @@
+--- src/chartview.cpp.orig	2022-03-24 04:41:36 UTC
++++ src/chartview.cpp
+@@ -35,6 +35,7 @@
+ #include <qwt_plot_renderer.h>
+ #include <qwt_plot_zoomer.h>
+ #include <qwt_scale_engine.h>
++#include <qwt_text.h>
+ 
+ namespace Caneda
+ {
diff --git a/cad/caneda/files/patch-src_fileformats.cpp b/cad/caneda/files/patch-src_fileformats.cpp
new file mode 100644
index 000000000000..908a12622d85
--- /dev/null
+++ b/cad/caneda/files/patch-src_fileformats.cpp
@@ -0,0 +1,10 @@
+--- src/fileformats.cpp.orig	2022-03-24 04:46:31 UTC
++++ src/fileformats.cpp
+@@ -36,6 +36,7 @@
+ #include <QDebug>
+ #include <QFile>
+ #include <QFileInfo>
++#include <QtMath>
+ #include <QMessageBox>
+ #include <QRegularExpression>
+ #include <QString>
diff --git a/cad/caneda/files/patch-src_sidebarchartsbrowser.cpp b/cad/caneda/files/patch-src_sidebarchartsbrowser.cpp
new file mode 100644
index 000000000000..4c570a30b3ca
--- /dev/null
+++ b/cad/caneda/files/patch-src_sidebarchartsbrowser.cpp
@@ -0,0 +1,10 @@
+--- src/sidebarchartsbrowser.cpp.orig	2022-03-24 04:51:12 UTC
++++ src/sidebarchartsbrowser.cpp
+@@ -34,6 +34,7 @@
+ #include <QVBoxLayout>
+ 
+ #include <qwt_plot_curve.h>
++#include <qwt_text.h>
+ 
+ namespace Caneda
+ {