git: 5ccb9d0cb4ea - main - cad/freecad: update to 0.21.2

From: Christoph Moench-Tegeder <cmt_at_FreeBSD.org>
Date: Tue, 14 Nov 2023 18:23:26 UTC
The branch main has been updated by cmt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5ccb9d0cb4ea9274a5fbb8481cd02e8a32c7e78f

commit 5ccb9d0cb4ea9274a5fbb8481cd02e8a32c7e78f
Author:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2023-11-14 18:22:09 +0000
Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2023-11-14 18:22:09 +0000

    cad/freecad: update to 0.21.2
    
    Changes:
      https://github.com/FreeCAD/FreeCAD/compare/0.21.1...0.21.2
---
 cad/freecad/Makefile                               |  3 +-
 cad/freecad/distinfo                               |  6 ++--
 .../files/patch-src_Gui_SoFCCSysDragger.cpp        | 33 ++++++++++++++++++++++
 3 files changed, 37 insertions(+), 5 deletions(-)

diff --git a/cad/freecad/Makefile b/cad/freecad/Makefile
index 44a55d2e41dd..a7001a53b792 100644
--- a/cad/freecad/Makefile
+++ b/cad/freecad/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	FreeCAD
-DISTVERSION=	0.21.1
-PORTREVISION=	1
+DISTVERSION=	0.21.2
 CATEGORIES=	cad
 
 MAINTAINER=	cmt@FreeBSD.org
diff --git a/cad/freecad/distinfo b/cad/freecad/distinfo
index 4a4133ff9b92..c6583e97adc8 100644
--- a/cad/freecad/distinfo
+++ b/cad/freecad/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1693653721
-SHA256 (FreeCAD-FreeCAD-0.21.1_GH0.tar.gz) = e9b1fd0323f101268c7f3be52db42e4a29222f2e306ae6c4a6fc309cb418d35a
-SIZE (FreeCAD-FreeCAD-0.21.1_GH0.tar.gz) = 66119273
+TIMESTAMP = 1699978922
+SHA256 (FreeCAD-FreeCAD-0.21.2_GH0.tar.gz) = ceaf77cd12e8ad533d1535cc27ae4ca2a6e80778502dc9cdec906415d674b674
+SIZE (FreeCAD-FreeCAD-0.21.2_GH0.tar.gz) = 66124278
diff --git a/cad/freecad/files/patch-src_Gui_SoFCCSysDragger.cpp b/cad/freecad/files/patch-src_Gui_SoFCCSysDragger.cpp
new file mode 100644
index 000000000000..deb3f70ca42c
--- /dev/null
+++ b/cad/freecad/files/patch-src_Gui_SoFCCSysDragger.cpp
@@ -0,0 +1,33 @@
+diff --git src/Gui/SoFCCSysDragger.cpp src/Gui/SoFCCSysDragger.cpp
+index 0c47d086a7..cf07f7f010 100644
+--- src/Gui/SoFCCSysDragger.cpp
++++ src/Gui/SoFCCSysDragger.cpp
+@@ -90,7 +90,7 @@ TDragger::TDragger()
+ {
+     SO_KIT_CONSTRUCTOR(TDragger);
+ 
+-#if defined(Q_OS_MAC)
++#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD)
+     this->ref();
+ #endif
+ 
+@@ -379,7 +379,7 @@ RDragger::RDragger()
+ {
+     SO_KIT_CONSTRUCTOR(RDragger);
+ 
+-#if defined(Q_OS_MAC)
++#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD)
+     this->ref();
+ #endif
+ 
+@@ -674,6 +674,10 @@ SoFCCSysDragger::SoFCCSysDragger()
+ {
+     SO_KIT_CONSTRUCTOR(SoFCCSysDragger);
+ 
++#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD)
++    this->ref();
++#endif
++
+     SO_KIT_ADD_CATALOG_ENTRY(annotation, SoAnnotation, TRUE, geomSeparator, "", TRUE);
+     SO_KIT_ADD_CATALOG_ENTRY(scaleNode, SoScale, TRUE, annotation, "", TRUE);
+