git: a3185a46fe13 - main - graphics/partio: update the port to the latest version 1.19.2

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Tue, 02 Dec 2025 14:27:34 UTC
The branch main has been updated by danfe:

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

commit a3185a46fe134bd52000cf47f959a2e35683f689
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-12-02 14:26:36 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-12-02 14:26:36 +0000

    graphics/partio: update the port to the latest version 1.19.2
    
    Replace our SWIG interface patch with two ones from upstream:
    - Add typemaps to ensure that the std::map parameters work
      as expected
    - Add overloaded methods to avoid ambiguous parameter errors
      in newer versions of SWIG
    
    Reported by:    portscout
---
 graphics/partio/Makefile                          |  6 +++++-
 graphics/partio/distinfo                          | 10 +++++++---
 graphics/partio/files/patch-src_py_partio.i       | 13 -------------
 graphics/partio/files/patch-src_tools_partedit.py | 11 -----------
 graphics/partio/pkg-plist                         |  2 +-
 5 files changed, 13 insertions(+), 29 deletions(-)

diff --git a/graphics/partio/Makefile b/graphics/partio/Makefile
index ed1f0548b1e4..f6a57ab8ed62 100644
--- a/graphics/partio/Makefile
+++ b/graphics/partio/Makefile
@@ -1,8 +1,12 @@
 PORTNAME=	partio
-PORTVERSION=	1.19.0
+PORTVERSION=	1.19.2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	graphics math
 
+PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES=	73b02b28bf19b69756349441a24b97530cd9f06b.patch:-p1 \
+		47c81dbdc37e8dccedad9fd68c0edfc2dc8a73ab.patch:-p1
+
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	C++ library for particle I/O and manipulation
 WWW=		http://partio.us/
diff --git a/graphics/partio/distinfo b/graphics/partio/distinfo
index 643b18537308..5688814fa516 100644
--- a/graphics/partio/distinfo
+++ b/graphics/partio/distinfo
@@ -1,3 +1,7 @@
-TIMESTAMP = 1738104248
-SHA256 (wdas-partio-v1.19.0_GH0.tar.gz) = 128913266a88a0939aaa4bc951ae4d4da1c380408bcc0ea9e7f526556afeaad0
-SIZE (wdas-partio-v1.19.0_GH0.tar.gz) = 338754
+TIMESTAMP = 1740174738
+SHA256 (wdas-partio-v1.19.2_GH0.tar.gz) = b59fbc8e64561368f0e2f94ae2f3f2083babfc32ff7ae97e833ab15df4588ade
+SIZE (wdas-partio-v1.19.2_GH0.tar.gz) = 338761
+SHA256 (73b02b28bf19b69756349441a24b97530cd9f06b.patch) = 7bd098f37c5d959c62455e5238f62655d9297e98ce55764f3273f164f2eb3bf5
+SIZE (73b02b28bf19b69756349441a24b97530cd9f06b.patch) = 1320
+SHA256 (47c81dbdc37e8dccedad9fd68c0edfc2dc8a73ab.patch) = f452b778f69d8834fd871d16ec38a93bff2039d87abb5db2e37074f693095c82
+SIZE (47c81dbdc37e8dccedad9fd68c0edfc2dc8a73ab.patch) = 2658
diff --git a/graphics/partio/files/patch-src_py_partio.i b/graphics/partio/files/patch-src_py_partio.i
deleted file mode 100644
index d26257b1b007..000000000000
--- a/graphics/partio/files/patch-src_py_partio.i
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/py/partio.i.orig	2025-01-28 22:44:08 UTC
-+++ src/py/partio.i
-@@ -638,7 +638,9 @@ ParticlesDataMutable* cloneSchema(const ParticlesData&
- 
- %feature("autodoc");
- %feature("docstring","Clone a particle set");
--ParticlesDataMutable* clone(const ParticlesData& other, bool particles, const std::map<std::string, std::string>* attrNameMap=nullptr);
-+ParticlesDataMutable* clone(const ParticlesData& other, bool particles=true, const std::map<std::string, std::string>* attrNameMap=nullptr);
-+
-+%typedef std::map<std::string, std::string> _dummy; /* https://github.com/wdas/partio/issues/114 */
- 
- %feature("autodoc");
- %feature("docstring","Return string name of given attribute type");
diff --git a/graphics/partio/files/patch-src_tools_partedit.py b/graphics/partio/files/patch-src_tools_partedit.py
deleted file mode 100644
index b4839ac8f8e8..000000000000
--- a/graphics/partio/files/patch-src_tools_partedit.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/tools/partedit.py.orig	2025-01-28 22:44:08 UTC
-+++ src/tools/partedit.py
-@@ -1080,7 +1080,7 @@ class PartEdit(QMainWindow):
-     def dataDirtiedSlot(self, dirty):
-         """ Sets the window title with or without "*" for dirty state """
- 
--        title = self.data.filename
-+        title = self.data.filename or ''
-         if dirty:
-             title += '*'
-         self.setWindowTitle(title)
diff --git a/graphics/partio/pkg-plist b/graphics/partio/pkg-plist
index 426cd163c345..d83f0ddecb92 100644
--- a/graphics/partio/pkg-plist
+++ b/graphics/partio/pkg-plist
@@ -9,7 +9,7 @@ include/PartioIterator.h
 include/PartioVec3.h
 lib/libpartio.so
 lib/libpartio.so.1
-lib/libpartio.so.1.19.0
+lib/libpartio.so.1.19.2
 %%PYTHON_SITELIBDIR%%/_partio.so
 %%PYTHON_SITELIBDIR%%/partedit.py
 %%PYTHON_SITELIBDIR%%/partinspect.py